mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-28 17:39:57 +02:00
simplify plaintext example
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
|
||||
import { Editor, Plain } from '../..'
|
||||
import React from 'react'
|
||||
import initialState from './state.json'
|
||||
|
||||
/**
|
||||
* The plain text example.
|
||||
@@ -18,7 +17,7 @@ class PlainText extends React.Component {
|
||||
*/
|
||||
|
||||
state = {
|
||||
state: Plain.deserialize(initialState)
|
||||
state: Plain.deserialize('This is editable plain text, just like a <textarea>!')
|
||||
};
|
||||
|
||||
/**
|
||||
|
@@ -1 +0,0 @@
|
||||
"This is editable plain text, just like a <textarea>!"
|
Reference in New Issue
Block a user