Skip to content

Commit

Permalink
update story for linkify editor
Browse files Browse the repository at this point in the history
  • Loading branch information
juliankrispel committed Nov 7, 2017
1 parent a65ca94 commit 8c06628
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stories/Linkify/SimpleLinkifyEditor/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { Component } from 'react';
import { EditorState } from 'draft-js';
import { EditorState, ContentState } from 'draft-js';
import Editor from 'draft-js-plugins-editor';
import createLinkifyPlugin from 'draft-js-linkify-plugin';
import editorStyles from './editorStyles.css';
Expand All @@ -10,7 +10,7 @@ const plugins = [linkifyPlugin];
export default class SimpleMentionEditor extends Component {

state = {
editorState: EditorState.createEmpty(),
editorState: EditorState.createWithContent(ContentState.createFromText('Hello there google.com')),
};

onChange = (editorState) => {
Expand Down

0 comments on commit 8c06628

Please sign in to comment.