Commit for the bug 0010245, also some plugins has been removed in order to improve performance and fix some css loading issues
This commit is contained in:
@@ -84,10 +84,10 @@ class XmlForm_Field_WYSIWYG_EDITOR extends XmlForm_Field
|
|||||||
var formProcessID = document.getElementById("form[pro_uid]").value;
|
var formProcessID = document.getElementById("form[pro_uid]").value;
|
||||||
tinyMCE.init({
|
tinyMCE.init({
|
||||||
theme : "advanced",
|
theme : "advanced",
|
||||||
plugins : "advhr,advimage,advlink,advlist,autolink,autoresize,autosave,contextmenu,directionality,emotions,example,example_dependency,fullpage,fullscreen,iespell,inlinepopups,insertdatetime,layer,legacyoutput,lists,media,nonbreaking,noneditable,pagebreak,paste,preview,print,save,searchreplace,spellchecker,style,tabfocus,table,template,visualblocks,visualchars,wordcount,xhtmlxtras,pmSimpleUploader,pmVariablePicker,style",
|
plugins : "advhr,advimage,advlink,advlist,autolink,autoresize,contextmenu,directionality,emotions,example,example_dependency,fullpage,fullscreen,iespell,inlinepopups,insertdatetime,layer,legacyoutput,lists,media,nonbreaking,noneditable,pagebreak,paste,preview,print,save,searchreplace,style,tabfocus,table,template,visualblocks,visualchars,wordcount,xhtmlxtras,pmSimpleUploader,pmVariablePicker,style",
|
||||||
mode : "specific_textareas",
|
mode : "specific_textareas",
|
||||||
editor_selector : "tmceEditor",
|
editor_selector : "tmceEditor",
|
||||||
width : 760,
|
width : "760",
|
||||||
height : "'.$this->height.'",
|
height : "'.$this->height.'",
|
||||||
|
|
||||||
theme_advanced_buttons1 : "pmSimpleUploader,|,pmVariablePicker,|,bold,italic,underline,|,justifyleft,justifycenter,justifyright,justifyfull,|,fontselect,fontsizeselect,|,cut,copy,paste,|,bullist,numlist,|,outdent,indent,blockquote",
|
theme_advanced_buttons1 : "pmSimpleUploader,|,pmVariablePicker,|,bold,italic,underline,|,justifyleft,justifycenter,justifyright,justifyfull,|,fontselect,fontsizeselect,|,cut,copy,paste,|,bullist,numlist,|,outdent,indent,blockquote",
|
||||||
@@ -119,7 +119,7 @@ class XmlForm_Field_WYSIWYG_EDITOR extends XmlForm_Field
|
|||||||
var formProcessID = document.getElementById("form[PRO_UID]").value;
|
var formProcessID = document.getElementById("form[PRO_UID]").value;
|
||||||
tinyMCE.init({
|
tinyMCE.init({
|
||||||
theme : "advanced",
|
theme : "advanced",
|
||||||
plugins : "advhr,advimage,advlink,advlist,autolink,autoresize,autosave,contextmenu,directionality,emotions,example,example_dependency,fullpage,fullscreen,iespell,inlinepopups,insertdatetime,layer,legacyoutput,lists,media,nonbreaking,noneditable,pagebreak,paste,preview,print,save,searchreplace,spellchecker,style,tabfocus,table,template,visualblocks,visualchars,wordcount,xhtmlxtras,pmSimpleUploader,pmVariablePicker,pmGrids,style",
|
plugins : "advhr,advimage,advlink,advlist,autolink,autoresize,contextmenu,directionality,emotions,example,example_dependency,fullpage,fullscreen,iespell,inlinepopups,insertdatetime,layer,legacyoutput,lists,media,nonbreaking,noneditable,pagebreak,paste,preview,print,save,searchreplace,style,tabfocus,table,template,visualblocks,visualchars,wordcount,xhtmlxtras,pmSimpleUploader,pmVariablePicker,pmGrids,style",
|
||||||
mode : "specific_textareas",
|
mode : "specific_textareas",
|
||||||
editor_selector : "tmceEditor",
|
editor_selector : "tmceEditor",
|
||||||
width : "770",
|
width : "770",
|
||||||
@@ -148,24 +148,24 @@ class XmlForm_Field_WYSIWYG_EDITOR extends XmlForm_Field
|
|||||||
var formDynaformID = document.getElementById("form[DYN_UID]").value;
|
var formDynaformID = document.getElementById("form[DYN_UID]").value;
|
||||||
tinyMCE.init({
|
tinyMCE.init({
|
||||||
theme : "advanced",
|
theme : "advanced",
|
||||||
plugins : "advhr,advimage,advlink,advlist,autolink,autoresize,contextmenu,directionality,emotions,example,example_dependency,fullpage,fullscreen,iespell,inlinepopups,insertdatetime,layer,legacyoutput,lists,media,nonbreaking,noneditable,pagebreak,paste,preview,print,save,searchreplace,spellchecker,style,tabfocus,table,template,visualblocks,visualchars,wordcount,xhtmlxtras,style,table,noneditable,pmFieldPicker",
|
plugins : "advhr,advimage,advlink,advlist,autolink,autoresize,contextmenu,directionality,emotions,example,example_dependency,fullpage,fullscreen,iespell,inlinepopups,insertdatetime,layer,legacyoutput,lists,media,nonbreaking,noneditable,pagebreak,paste,preview,print,save,searchreplace,style,tabfocus,table,template,visualblocks,visualchars,wordcount,xhtmlxtras,style,table,noneditable,pmFieldPicker",
|
||||||
mode : "specific_textareas",
|
mode : "specific_textareas",
|
||||||
//apply_source_formatting : true,
|
//apply_source_formatting : true,
|
||||||
//remove_linebreaks: false,
|
//remove_linebreaks: false,
|
||||||
editor_selector : "tmceEditor",
|
editor_selector : "tmceEditor",
|
||||||
width : \'100%\',
|
width : \'100%\',
|
||||||
height : 300,
|
height : \'300\',
|
||||||
theme_advanced_buttons1 : "bold,italic,underline,|,justifyleft,justifycenter,justifyright,justifyfull,|,fontselect,fontsizeselect,|,cut,copy,paste,|,bullist,numlist,|,pmFieldPicker",
|
theme_advanced_buttons1 : "bold,italic,underline,|,justifyleft,justifycenter,justifyright,justifyfull,|,fontselect,fontsizeselect,|,cut,copy,paste,|,bullist,numlist,|,pmFieldPicker",
|
||||||
theme_advanced_buttons2 : "tablecontrols,|outdent,indent,blockquote,|,undo,redo,|,link,unlink,image,|,forecolor,backcolor,styleprops,|,hr,removeformat,visualaid,|,sub,sup,|,ltr,rtl,|,code",
|
theme_advanced_buttons2 : "tablecontrols,|outdent,indent,blockquote,|,undo,redo,|,link,unlink,image,|,forecolor,backcolor,styleprops,|,hr,removeformat,visualaid,|,sub,sup,|,ltr,rtl,|,code",
|
||||||
popup_css : "/js/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/dialog.css",
|
popup_css : "/js/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/dialog.css",
|
||||||
skin : "o2k7",
|
skin : "o2k7",
|
||||||
skin_variant : "silver",
|
skin_variant : "silver",
|
||||||
content_css : "/css/'.SYS_SKIN.'.css",
|
content_css : "/css/classic.css",
|
||||||
template_external_list_url : "js/template_list.js",
|
template_external_list_url : "js/template_list.js",
|
||||||
external_link_list_url : "js/link_list.js",
|
external_link_list_url : "js/link_list.js",
|
||||||
external_image_list_url : "js/image_list.js",
|
external_image_list_url : "js/image_list.js",
|
||||||
media_external_list_url : "js/media_list.js",
|
media_external_list_url : "js/media_list.js",
|
||||||
extended_valid_elements : "div[*]",
|
extended_valid_elements : "div[*],script[language|type|src]",
|
||||||
// noneditable_regexp: /[^"|^:|^\']{(.*?)}/g,
|
// noneditable_regexp: /[^"|^:|^\']{(.*?)}/g,
|
||||||
template_replace_values : {
|
template_replace_values : {
|
||||||
username : "Some User",
|
username : "Some User",
|
||||||
@@ -189,20 +189,22 @@ class XmlForm_Field_WYSIWYG_EDITOR extends XmlForm_Field
|
|||||||
default:
|
default:
|
||||||
$editorDefinition.= '
|
$editorDefinition.= '
|
||||||
tinyMCE.init({
|
tinyMCE.init({
|
||||||
theme : "advanced",
|
// General options
|
||||||
plugins : "fullpage",
|
mode : "textareas",
|
||||||
mode : "specific_textareas",
|
theme : "advanced",
|
||||||
editor_selector : "tmceEditor",
|
plugins : "autolink,lists,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,imagemanager,filemanager",
|
||||||
width : "'. $this->width. '",
|
|
||||||
height : "'. $this->height. '",
|
// Theme options
|
||||||
theme_advanced_buttons3_add : "fullpage",
|
theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect",
|
||||||
popup_css : "/js/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/dialog.css",
|
theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
|
||||||
handle_event_callback : function(e) {
|
theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
|
||||||
if(this.isDirty()) {
|
theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,spellchecker,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,blockquote,pagebreak,|,insertfile,insertimage",
|
||||||
this.save();
|
theme_advanced_toolbar_location : "top",
|
||||||
}
|
theme_advanced_toolbar_align : "left",
|
||||||
return true;
|
theme_advanced_statusbar_location : "bottom",
|
||||||
}
|
theme_advanced_resizing : true,
|
||||||
|
width: "100%",
|
||||||
|
height: "400"
|
||||||
});
|
});
|
||||||
';
|
';
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user