diff --git a/bin/Editor.js b/bin/Editor.js index 63a3b148fd29bc74e4768d1600412a2947a05630..e9100cdec7e7b0d3ae9ef764868e63aea7a8dcd7 100644 --- a/bin/Editor.js +++ b/bin/Editor.js @@ -210,25 +210,27 @@ define('package/quiqqer/ckeditor4/bin/Editor', [ }); } + data.cssFiles.push( + URL_OPT_DIR +'quiqqer/ckeditor4/bin/defaultWysiwyg.css' + ); + window.CKEDITOR.replace(instance, { + customConfig : '', language : Locale.getCurrent(), baseHref : URL_DIR, basePath : URL_DIR, height : height, width : width, toolbar : toolbar, - allowedContent : true, extraAllowedContent : 'div(*)[*]{*}, iframe(*)[*]{*}', - stylesSet : styles, - contentsCss : data.cssFiles || false, + contentsCss : data.cssFiles || [], bodyClass : data.bodyClass, // templates_files : [URL_OPT_DIR +'base/bin/pcsgEditorPlugins/templates.php'], baseFloatZIndex : zIndex, extraPlugins : 'abbr' }); - }, /** diff --git a/bin/defaultWysiwyg.css b/bin/defaultWysiwyg.css new file mode 100644 index 0000000000000000000000000000000000000000..2eb06656374267ad838bbc1afd9dc7901f9afc75 --- /dev/null +++ b/bin/defaultWysiwyg.css @@ -0,0 +1,11 @@ + +h1, +h2, +h3, +h4, +h5, +p { + float: none !important; + width: auto !important; +} +