From 93582382579e299ae3f76654a37b3ea432ca8462 Mon Sep 17 00:00:00 2001 From: jensp Date: Tue, 15 Jul 2014 11:25:31 +0000 Subject: [PATCH] Fixing width of Xinha editor in content-center git-svn-id: https://svn.libreccm.org/ccm/trunk@2758 8810af33-2d31-482b-a856-94f89814c4df --- ccm-cms/src/com/arsdigita/cms/ui/authoring/TextAssetBody.java | 2 +- ccm-core/web/assets/xinha/CCMcmsXinhaConfig.js | 1 + .../web/themes/mandalay/includes/bebop/bebopEditors.xsl | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ccm-cms/src/com/arsdigita/cms/ui/authoring/TextAssetBody.java b/ccm-cms/src/com/arsdigita/cms/ui/authoring/TextAssetBody.java index 773ecbb25..b6d898281 100755 --- a/ccm-cms/src/com/arsdigita/cms/ui/authoring/TextAssetBody.java +++ b/ccm-cms/src/com/arsdigita/cms/ui/authoring/TextAssetBody.java @@ -661,7 +661,7 @@ public abstract class TextAssetBody extends SecurityPropertyEditor c.m_textWidget = new CMSDHTMLEditor(PageTextForm.TEXT_ENTRY); c.m_textWidget.setRows(25); - c.m_textWidget.setCols(70); + c.m_textWidget.setCols(40); // cg - sets FCKEditor size - closer to actual published page // width, and similar size as htmlarea. // could be configurable - unset means default 100% x 400px diff --git a/ccm-core/web/assets/xinha/CCMcmsXinhaConfig.js b/ccm-core/web/assets/xinha/CCMcmsXinhaConfig.js index 98e39ec0f..5f369cdf9 100644 --- a/ccm-core/web/assets/xinha/CCMcmsXinhaConfig.js +++ b/ccm-core/web/assets/xinha/CCMcmsXinhaConfig.js @@ -43,6 +43,7 @@ xinha_config.formatblock = }; xinha_config.pageStyleSheets=[_editor_url+"examples/full_example.css"]; +xinha_config.width="90%"; xinha_editors=Xinha.makeEditors(xinha_editors,xinha_config,xinha_plugins); Xinha.startEditors(xinha_editors); }; diff --git a/ccm-sci-bundle/web/themes/mandalay/includes/bebop/bebopEditors.xsl b/ccm-sci-bundle/web/themes/mandalay/includes/bebop/bebopEditors.xsl index 3b4b2ef01..9e1dd6aa7 100644 --- a/ccm-sci-bundle/web/themes/mandalay/includes/bebop/bebopEditors.xsl +++ b/ccm-sci-bundle/web/themes/mandalay/includes/bebop/bebopEditors.xsl @@ -314,7 +314,7 @@ -