From c8cd5ca5b2253b6c1d3e7f44bf1f13f2ff733d02 Mon Sep 17 00:00:00 2001 From: chris <kokosias@yahoo.gr> Date: Fri, 30 Aug 2019 14:25:31 +0300 Subject: [PATCH] editoria js --- editors/editoria/src/Editoria.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/editors/editoria/src/Editoria.js b/editors/editoria/src/Editoria.js index 121d0ee25..6d3908bad 100644 --- a/editors/editoria/src/Editoria.js +++ b/editors/editoria/src/Editoria.js @@ -98,7 +98,7 @@ const user = { userId: "1234", username: "demo" }; - +// USE FOR TRACK TEST const text = `<ul><li><p class="paragraph">this is the li content</p></li><li><p class="paragraph">And another</p></li></ul><h1>this is a title</h1><p class="paragraph" data-track="[{"type":"block_change","user":"editor.user.id","username":"editor.user.username","date":26069447,"before":{"type":"author","attrs":{"class":"author"}}}]">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p><p class="author">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>`; class Editoria extends Component { @@ -114,8 +114,7 @@ class Editoria extends Component { layout="editoria" fileUpload={file => renderImage(file)} debug - TrackChange - value={text} + value="" user={user} > {({ editor, view, ...props }) => ( -- GitLab