messagesFromMarkup.call($('#crm-container'));
}
- // Hide CiviCRM menubar when editor is fullscreen
- if (window.CKEDITOR) {
- CKEDITOR.on('instanceCreated', function (e) {
- e.editor.on('maximize', function (e) {
- $('#civicrm-menu').toggle(e.data === 2);
- });
- });
- }
-
$('body')
// bind the event for image popup
.on('click', 'a.crm-image-popup', function(e) {
editor.on('pasteState', function() {
$(item).trigger("paste");
});
+ // Hide CiviCRM menubar when editor is fullscreen
+ editor.on('maximize', function (e) {
+ $('#civicrm-menu').toggle(e.data === 2);
+ });
}
};
CRM.wysiwyg.destroy = function(item) {