new tinymce mod tingy
This commit is contained in:
parent
69707bc2b5
commit
af28425f1d
@ -215,21 +215,21 @@ function init_tinymce(){
|
|||||||
// Example content CSS (should be your site CSS)
|
// Example content CSS (should be your site CSS)
|
||||||
content_css : "../../page/index.css"*/
|
content_css : "../../page/index.css"*/
|
||||||
// General options
|
// General options
|
||||||
mode : "textareas",
|
/* mode : "textareas",
|
||||||
//theme : "advanced",
|
//theme : "advanced",
|
||||||
theme : "modern",
|
theme : "modern",
|
||||||
plugins : "autolink,lists,pagebreak,layer,table,save,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,template,code",
|
plugins : "autolink,lists,pagebreak,layer,table,save,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,template,code",*/
|
||||||
//xhtmlxtras,emotions,advimage,advlink,iespell,inlinepopups,advhr,style,spellchecker,
|
//xhtmlxtras,emotions,advimage,advlink,iespell,inlinepopups,advhr,style,spellchecker,
|
||||||
|
|
||||||
// Theme options
|
// Theme options
|
||||||
theme_modern_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect",
|
/*theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect",
|
||||||
theme_modern_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",
|
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",
|
||||||
theme_modern_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
|
theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
|
||||||
theme_modern_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,spellchecker,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,blockquote,pagebreak,|,insertfile,insertimage",
|
theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,spellchecker,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,blockquote,pagebreak,|,insertfile,insertimage",
|
||||||
theme_modern_toolbar_location : "top",
|
theme_advanced_toolbar_location : "top",
|
||||||
theme_modern_toolbar_align : "left",
|
theme_advanced_toolbar_align : "left",
|
||||||
theme_modern_statusbar_location : "bottom",
|
theme_advanced_statusbar_location : "bottom",
|
||||||
theme_modern_resizing : true,
|
theme_advanced_resizing : true,*/
|
||||||
|
|
||||||
// Skin options
|
// Skin options
|
||||||
//skin : "o2k7",
|
//skin : "o2k7",
|
||||||
@ -242,7 +242,7 @@ function init_tinymce(){
|
|||||||
//content_css : "../../page/index.css"
|
//content_css : "../../page/index.css"
|
||||||
|
|
||||||
// Drop lists for link/image/media/template dialogs
|
// Drop lists for link/image/media/template dialogs
|
||||||
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",
|
||||||
@ -254,6 +254,22 @@ function init_tinymce(){
|
|||||||
template_replace_values : {
|
template_replace_values : {
|
||||||
username : "Some User",
|
username : "Some User",
|
||||||
staffid : "991234"
|
staffid : "991234"
|
||||||
}
|
}*/
|
||||||
|
|
||||||
|
selector: "textarea",
|
||||||
|
theme: "modern",
|
||||||
|
plugins: [
|
||||||
|
"advlist autolink lists link image charmap print preview hr anchor pagebreak",
|
||||||
|
"searchreplace wordcount visualblocks visualchars code fullscreen",
|
||||||
|
"insertdatetime media nonbreaking save table contextmenu directionality",
|
||||||
|
"emoticons template paste textcolor"
|
||||||
|
],
|
||||||
|
toolbar1: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image",
|
||||||
|
toolbar2: "print preview media | forecolor backcolor emoticons",
|
||||||
|
image_advtab: true,
|
||||||
|
templates: [
|
||||||
|
{title: 'Test template 1', content: 'Test 1'},
|
||||||
|
{title: 'Test template 2', content: 'Test 2'}
|
||||||
|
]
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user