Commit 2e1559e6 authored by chris's avatar chris

disable linktooltip plugin

parent 2739950d
......@@ -60,7 +60,7 @@ const schema = new CreateSchema(EditoriaSchema);
const plugins = [
columnResizing(),
tableEditing(),
LinkToolTipPlugin,
// LinkToolTipPlugin,
invisibles([hardBreak()])
];
......@@ -112,14 +112,15 @@ class Editoria extends Component {
placeholder="Type Something..."
theme="editoria"
layout="editoria"
fileUpload={file => {
let reader = new FileReader()
fileUpload={file => {
let reader = new FileReader();
return new Promise((accept, fail) => {
reader.onload = () => accept(reader.result)
reader.onerror = () => fail(reader.error)
reader.onload = () => accept(reader.result);
reader.onerror = () => fail(reader.error);
// Some extra delay to make the asynchronicity visible
setTimeout(() => reader.readAsDataURL(file), 1500)
})}}
setTimeout(() => reader.readAsDataURL(file), 1500);
});
}}
value="<p>hello</p>
<ul><li>listItem 1</li><li>listItem 2</li><li>listItem 3</li></ul>
<table>
......@@ -143,14 +144,4 @@ class Editoria extends Component {
}
}
/*
<p>hello</p>
<ul><li>listItem 1</li><li>listItem 2</li><li>listItem 3</li></ul>
<table>
<tr> <th>Firstname</th> <th>Lastname</th> <th>Age</th></tr>
<tr><td>Jill</td><td>Smith</td><td>50</td></tr>
<tr><td>Eve</td><td>Jackson</td><td>94</td></tr>
</table>
*/
export default Editoria;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment