CRM-18257: fullPage configuration option
authorJKingsnorth <john@johnkingsnorth.co.uk>
Thu, 17 Mar 2016 15:53:50 +0000 (15:53 +0000)
committerJKingsnorth <john@johnkingsnorth.co.uk>
Thu, 17 Mar 2016 15:53:50 +0000 (15:53 +0000)
ang/crmMailing/BodyHtml.html
js/wysiwyg/crm.ckeditor.js

index c8400c60bc04d82cf38245f4ac302a249ffffefb..730beecdd866af18145d8cc06ef6dd4d0702cdc8 100644 (file)
@@ -14,6 +14,7 @@ Required vars: mailing
         crm-ui-insert-rx="insert:body_html"
         ng-model="mailing.body_html"
         ng-blur="checkTokens(mailing, 'body_html', 'insert:body_html')"
+        class="crm-wysiwyg-fullpage"
         ></textarea>
       <span ng-model="body_html_tokens" crm-ui-validate="hasAllTokens(mailing, 'body_html')"></span>
       <div ng-show="htmlForm.$error.crmUiValidate" class="crmMailing-error-link">
index 5130121f84574f52fffde179e27faf11b8166976..c50b5b53bb6bc95dab990260b33a89bd0f08226f 100644 (file)
 
       $(item).addClass('crm-wysiwyg-enabled');
 
+      var isFullPage = false;
+      if ($(item).hasClass('crm-wysiwyg-fullpage')) {
+        isFullPage = true;
+      }
+
       CKEDITOR.replace($(item)[0], {
         filebrowserBrowseUrl: browseUrl + '&type=files',
         filebrowserImageBrowseUrl: browseUrl + '&type=images',
@@ -76,6 +81,7 @@
         filebrowserImageUploadUrl: uploadUrl + '&type=images',
         filebrowserFlashUploadUrl: uploadUrl + '&type=flash',
         allowedContent: true, // For CiviMail!
+        fullPage: isFullPage,
         customConfig: CRM.config.CKEditorCustomConfig,
         on: {
           instanceReady: onReady