From 5ca65465d2285fa7bfcc058e45dfba44390d61a6 Mon Sep 17 00:00:00 2001 From: chris <kokosias@yahoo.gr> Date: Tue, 12 Nov 2019 21:14:15 +0200 Subject: [PATCH] move sample text --- editors/editoria/src/Editoria.js | 4 ++-- editors/editoria/src/text.js | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 editors/editoria/src/text.js diff --git a/editors/editoria/src/Editoria.js b/editors/editoria/src/Editoria.js index 782c70b96..ba2af0646 100644 --- a/editors/editoria/src/Editoria.js +++ b/editors/editoria/src/Editoria.js @@ -10,6 +10,8 @@ import "wax-prosemirror-layouts/vars/wax-editoria-vars.css"; import { schema, keys, plugins, rules } from "./EditorConfig"; +import text from "./text"; + const options = { schema, plugins, @@ -49,8 +51,6 @@ 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 { render() { diff --git a/editors/editoria/src/text.js b/editors/editoria/src/text.js new file mode 100644 index 000000000..e59a3f729 --- /dev/null +++ b/editors/editoria/src/text.js @@ -0,0 +1,8 @@ +// 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>`; + +export default text; -- GitLab