Index: magnolia-editor-fckeditor/src/main/java/info/magnolia/module/fckeditor/dialogs/FckEditorDialog.java =================================================================== --- magnolia-editor-fckeditor/src/main/java/info/magnolia/module/fckeditor/dialogs/FckEditorDialog.java (revision 14752) +++ magnolia-editor-fckeditor/src/main/java/info/magnolia/module/fckeditor/dialogs/FckEditorDialog.java (working copy) @@ -163,6 +163,10 @@ public static final String PARAM_CSS = "css"; //$NON-NLS-1$ + public static final String PARAM_BODYCLASS = "bodyClass"; //$NON-NLS-1$ + + public static final String PARAM_BODYID = "bodyId"; //$NON-NLS-1$ + public static final String PARAM_HEIGHT = "height"; //$NON-NLS-1$ public static final String PARAM_WIDTH = "width"; //$NON-NLS-1$ @@ -196,6 +200,10 @@ public static final String PARAM_CSS_DEFAULT = "/.resources/fckeditor/custom/css/magnoliaStandard.css"; //$NON-NLS-1$ + public static final String PARAM_BODYCLASS_DEFAULT = ""; //$NON-NLS-1$ + + public static final String PARAM_BODYID_DEFAULT = ""; //$NON-NLS-1$ + public static final String PARAM_HEIGHT_DEFAULT = ""; //$NON-NLS-1$ public static final String PARAM_WIDTH_DEFAULT = ""; //$NON-NLS-1$ @@ -335,6 +343,8 @@ private void writeMgnlFCKConfig(Writer out, String id) throws IOException { String css = this.getConfigValue(PARAM_CSS, PARAM_CSS_DEFAULT); + String bodyClass = this.getConfigValue(PARAM_BODYCLASS, PARAM_BODYCLASS_DEFAULT); + String bodyId = this.getConfigValue(PARAM_BODYID, PARAM_BODYID_DEFAULT); String fonts = this.getConfigValue(PARAM_FONTS, PARAM_FONTS_DEFAULT); String fontSizes = this.getConfigValue(PARAM_FONT_SIZES, PARAM_FONT_SIZES_DEFAULT); String colors = this.getConfigValue(PARAM_COLORS, PARAM_COLORS_DEFAULT); @@ -368,6 +378,8 @@ out.write("MgnlFCKConfigs." + id + ".node = '" + getTopParent().getConfigValue("node") + "';\n"); out.write("MgnlFCKConfigs." + id + ".css = '" + css + "';\n"); + out.write("MgnlFCKConfigs." + id + ".bodyClass = '" + bodyClass + "';\n"); + out.write("MgnlFCKConfigs." + id + ".bodyId = '" + bodyId + "';\n"); out.write("MgnlFCKConfigs." + id + ".fonts = '" + fonts + "';\n"); out.write("MgnlFCKConfigs." + id + ".fontSizes = '" + fontSizes + "';\n"); out.write("MgnlFCKConfigs." + id + ".colors = '" + colors + "';\n"); Index: magnolia-editor-fckeditor/src/main/resources/mgnl-resources/fckeditor/custom/config/magnoliaStandard.js =================================================================== --- magnolia-editor-fckeditor/src/main/resources/mgnl-resources/fckeditor/custom/config/magnoliaStandard.js (revision 14752) +++ magnolia-editor-fckeditor/src/main/resources/mgnl-resources/fckeditor/custom/config/magnoliaStandard.js (working copy) @@ -6,6 +6,8 @@ // set the css to use in the editor FCKConfig.EditorAreaCSS = MgnlFCKConfig.contextPath + MgnlFCKConfig.css; +FCKConfig.BodyClass = MgnlFCKConfig.bodyClass; +FCKConfig.BodyId = MgnlFCKConfig.bodyId; // our skin FCKConfig.SkinPath = MgnlFCKConfig.contextPath + "/.resources/fckeditor/custom/skin/";