From 52c005f22d3ec4d25ce2137c4ab297f110a0c6de Mon Sep 17 00:00:00 2001 From: iseulde Date: Thu, 23 Feb 2017 10:42:34 +0100 Subject: [PATCH] Add extra config settings so TinyMCE demoresembles pure contenteditable field. Pull in nightly. --- tinymce/index.html | 10 +++++----- tinymce/tinymce-config.js | 14 ++++++++++++++ 2 files changed, 19 insertions(+), 5 deletions(-) create mode 100644 tinymce/tinymce-config.js diff --git a/tinymce/index.html b/tinymce/index.html index 0412e538e4f690..b0e737d9519f28 100644 --- a/tinymce/index.html +++ b/tinymce/index.html @@ -1,16 +1,16 @@ + + TinyMCE Formatting Demo - - - - -
+

Many entrepreneurs idolize Steve Jobs. He’s such a perfectionist, they say. Nothing leaves the doors of 1 Infinite Loop in Cupertino without a polish and finish that makes geeks everywhere drool. No compromise!

+ + diff --git a/tinymce/tinymce-config.js b/tinymce/tinymce-config.js new file mode 100644 index 00000000000000..0ae1fe163427de --- /dev/null +++ b/tinymce/tinymce-config.js @@ -0,0 +1,14 @@ +window.tinymce.init( { + browser_spellcheck: true, + // Enter twice in a nested block creates a fresh paragraph. + end_container_on_empty_block: true, + inline: true, + // Enter creates a fresh paragraph. + keep_styles: false, + menubar: false, + object_resizing: false, + schema: 'html5-strict', + selector: 'section', + theme: false, + toolbar: false +} );