From 15bc022772760c5c4b616b6d4ea2c48bb4764e0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20HUBSCHER?= Date: Tue, 18 Jul 2017 09:59:36 +0200 Subject: [PATCH] Use DIV instead of P. Fixes #127 --- src/sidebar/panel.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/sidebar/panel.js b/src/sidebar/panel.js index c0f2dc849..3ff1c177e 100644 --- a/src/sidebar/panel.js +++ b/src/sidebar/panel.js @@ -50,6 +50,10 @@ const bindings = { } }; +const Block = Quill.import('blots/block'); +Block.tagName = 'DIV'; +Quill.register(Block, true); + const fontSizeStyle = Quill.import('attributors/style/size'); fontSizeStyle.whitelist = ['12px', '14px', '16px', '18px', '20px']; Quill.register(fontSizeStyle, true);