From c583d920435ef945e89602bc744aac89c1b143ca Mon Sep 17 00:00:00 2001 From: Alexander Obuhovich Date: Mon, 17 Oct 2016 13:26:44 +0300 Subject: [PATCH] Support for "bodyClass" and "bodyId" settings in Styles dropdown --- plugins/panel/plugin.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/panel/plugin.js b/plugins/panel/plugin.js index 0f4346aa3ed..2ce8f2c3c81 100644 --- a/plugins/panel/plugin.js +++ b/plugins/panel/plugin.js @@ -75,7 +75,7 @@ var frameDocTpl = CKEDITOR.addTemplate( 'panel-frame-inner', '' + '' + '{css}' + - '' + '<\/html>' ); @@ -113,6 +113,8 @@ doc.write( frameDocTpl.output( CKEDITOR.tools.extend( { css: CKEDITOR.tools.buildStyleHtml( this.css ), + bodyClass: editor.config.bodyClass || '', + bodyIdAttr: editor.config.bodyId ? 'id="' + editor.config.bodyId + '"', onload: 'window.parent.CKEDITOR.tools.callFunction(' + onLoad + ');' }, data ) ) );