mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 06:05:56 +00:00
FEATURE: Update to TinyMCE 3.2 - CMS changes
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@64758 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
2795dae693
commit
9f4ad4b2cc
@ -134,10 +134,12 @@
|
|||||||
.right form textarea.htmleditor {
|
.right form textarea.htmleditor {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
.right form .mceEditor {
|
.right form .mceEditor {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
border: 1px solid #a7a7a7;
|
border: 1px solid #a7a7a7;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
.right form input.checkbox,
|
.right form input.checkbox,
|
||||||
.right form .optionset input,
|
.right form .optionset input,
|
||||||
|
@ -123,10 +123,8 @@ CMSForm.prototype = {
|
|||||||
for(var i=0;i<tabs.length;i++) if(tabs[i].tagName) initTabstrip(tabs[i]);
|
for(var i=0;i<tabs.length;i++) if(tabs[i].tagName) initTabstrip(tabs[i]);
|
||||||
} catch(er) { /*alert('b: '+ er.message + '\n' + er.line);*/ }
|
} catch(er) { /*alert('b: '+ er.message + '\n' + er.line);*/ }
|
||||||
|
|
||||||
if((typeof tinyMCE != 'undefined') && tinyMCE.instances) {
|
if((typeof tinymce != 'undefined') && tinymce.EditorManager) {
|
||||||
tinyMCE.instances = [];
|
tinymce.EditorManager.editors = [];
|
||||||
tinyMCE.isLoaded = false;
|
|
||||||
tinyMCE.onLoad();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// We assume that an evaluated response is generated by FormResponse
|
// We assume that an evaluated response is generated by FormResponse
|
||||||
|
@ -9,11 +9,10 @@ function nullConverter(url) {
|
|||||||
// Prevents "Error: 'tinyMCE' is undefined" error in IE7 on Newsletter Recipient import.
|
// Prevents "Error: 'tinyMCE' is undefined" error in IE7 on Newsletter Recipient import.
|
||||||
if((typeof tinyMCE != 'undefined')) {
|
if((typeof tinyMCE != 'undefined')) {
|
||||||
tinyMCE.init({
|
tinyMCE.init({
|
||||||
mode : "specific_textareas",
|
mode : "none",
|
||||||
language: "$Lang",
|
language: "$Lang",
|
||||||
textarea_trigger : "tinymce",
|
width: "100%",
|
||||||
width: -1,
|
/*height: "300",*/
|
||||||
height: -1,
|
|
||||||
auto_resize : true,
|
auto_resize : true,
|
||||||
theme : "advanced",
|
theme : "advanced",
|
||||||
content_css : "$ContentCSS",
|
content_css : "$ContentCSS",
|
||||||
@ -23,20 +22,17 @@ if((typeof tinyMCE != 'undefined')) {
|
|||||||
setupcontent_callback : "sapphiremce_setupcontent",
|
setupcontent_callback : "sapphiremce_setupcontent",
|
||||||
cleanup_callback : "sapphiremce_cleanup",
|
cleanup_callback : "sapphiremce_cleanup",
|
||||||
|
|
||||||
Theme_Advanced_Layout_manager : "SimpleLayout",
|
theme_advanced_layout_manager: "SimpleLayout",
|
||||||
theme_advanced_toolbar_location : "manually_placed",
|
theme_advanced_toolbar_location : "top",
|
||||||
theme_advanced_toolbar_align : "left",
|
theme_advanced_toolbar_align : "left",
|
||||||
theme_advanced_toolbar_parent : "right",
|
theme_advanced_toolbar_parent : "right",
|
||||||
plugins : "contextmenu,table,emotions,flash,paste",
|
plugins : "advcode,contextmenu,table,emotions,../../ssbuttons,paste",
|
||||||
table_inline_editing : true,
|
table_inline_editing : true,
|
||||||
theme_advanced_buttons1 : "italic,underline,strikethrough,separator,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,separator,bullist,numlist,outdent,indent,hr,charmap",
|
theme_advanced_buttons1 : "bold,italic,underline,strikethrough,separator,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,separator,bullist,numlist,outdent,indent,hr,charmap",
|
||||||
theme_advanced_buttons2 : "undo,redo,separator,cut,copy,paste,separator,search,replace,separator,flash",
|
theme_advanced_buttons2 : "undo,redo,separator,cut,copy,paste,pastetext,pasteword,separator,ssimage,ssflash,sslink,unlink,anchor,separator,code,separator,search,replace,selectall,visualaid,separator,tablecontrols",
|
||||||
theme_advanced_buttons3 : "",
|
theme_advanced_buttons3 : "",
|
||||||
theme_advanced_buttons3_add : "emotions",
|
theme_advanced_buttons3_add : "emotions",
|
||||||
/*
|
|
||||||
theme_advanced_buttons1 : "bold,italic,underline,strikethrough,separator,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,separator,bullist,numlist,outdent,indent,hr,charmap",
|
|
||||||
theme_advanced_buttons2 : "undo,redo,separator,cut,copy,paste,separator,search,replace,separator,link,unlink,anchor,image,separator,cleanup,removeformat,visualaid,code,separator,tablecontrols",
|
|
||||||
*/
|
|
||||||
safari_warning : false,
|
safari_warning : false,
|
||||||
relative_urls : true,
|
relative_urls : true,
|
||||||
verify_html : true,
|
verify_html : true,
|
||||||
@ -44,3 +40,11 @@ if((typeof tinyMCE != 'undefined')) {
|
|||||||
extended_valid_elements : "img[class|src|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],script[src|type]"
|
extended_valid_elements : "img[class|src|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],script[src|type]"
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Behaviour.register({
|
||||||
|
'textarea.htmleditor' : {
|
||||||
|
initialize : function() {
|
||||||
|
tinyMCE.execCommand("mceAddControl", true, this.id);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
@ -1,6 +1,3 @@
|
|||||||
|
|
||||||
<% include Editor_toolbar %>
|
|
||||||
|
|
||||||
<span id="Translating_Message" class="translatingMessage <% if EditingLang %><% else %>nonTranslating<% end_if %>"></span>
|
<span id="Translating_Message" class="translatingMessage <% if EditingLang %><% else %>nonTranslating<% end_if %>"></span>
|
||||||
|
|
||||||
<div id="form_actions_right" class="ajaxActions">
|
<div id="form_actions_right" class="ajaxActions">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user