mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
ENHANCEMENT Loading of tinymce_ssbuttons plugin via relative paths in HtmlEditorConfig rather than using the plugin name as a path spec (see r94060)
API CHANGE Changed cms/javascript/tinymce_ssbuttons plugin name to "ssbuttons" (see r94060) API CHANGE Changed cms/javascript/tinymce_ssmacron plugin name to "ssmacron" (see r94060) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@94062 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
429de60890
commit
a8fdcbd967
@ -42,7 +42,8 @@ HtmlEditorConfig::get('cms')->setOptions(array(
|
||||
));
|
||||
|
||||
|
||||
HtmlEditorConfig::get('cms')->enablePlugins('media', '../../../../cms/javascript/tinymce_ssbuttons', 'fullscreen');
|
||||
HtmlEditorConfig::get('cms')->enablePlugins('media', 'fullscreen');
|
||||
HtmlEditorConfig::get('cms')->enablePlugins(array('ssbuttons' => '../../../cms/javascript/tinymce_ssbuttons/editor_plugin_src.js'));
|
||||
|
||||
HtmlEditorConfig::get('cms')->insertButtonsBefore('formatselect', 'styleselect');
|
||||
HtmlEditorConfig::get('cms')->insertButtonsBefore('advcode', 'ssimage', 'ssflash', 'sslink', 'unlink', 'anchor', 'separator' );
|
||||
|
@ -1,5 +1,5 @@
|
||||
(function() {
|
||||
tinymce.PluginManager.requireLangPack("../../../../cms/javascript/tinymce_ssbuttons");
|
||||
tinymce.PluginManager.requireLangPack("ssbuttons");
|
||||
var each = tinymce.each;
|
||||
|
||||
tinymce.create('tinymce.plugins.SSButtons', {
|
||||
@ -109,5 +109,5 @@
|
||||
|
||||
|
||||
// Adds the plugin class to the list of available TinyMCE plugins
|
||||
tinymce.PluginManager.add("../../../../cms/javascript/tinymce_ssbuttons", tinymce.plugins.SSButtons);
|
||||
tinymce.PluginManager.add("ssbuttons", tinymce.plugins.SSButtons);
|
||||
})();
|
@ -1,6 +1,9 @@
|
||||
(function() {
|
||||
var each = tinymce.each;
|
||||
|
||||
/**
|
||||
* Load via: HtmlEditorConfig::get('cms')->enablePlugins(array('ssmacron', '../../../../cms/javascript/tinymce_ssmacron'))
|
||||
*/
|
||||
tinymce.create('tinymce.plugins.InsertMacron', {
|
||||
getInfo : function() {
|
||||
return {
|
||||
@ -36,5 +39,5 @@
|
||||
});
|
||||
|
||||
// Adds the plugin class to the list of available TinyMCE plugins
|
||||
tinymce.PluginManager.add("../../../../cms/javascript/tinymce_ssmacron", tinymce.plugins.InsertMacron);
|
||||
tinymce.PluginManager.add("ssmacron", tinymce.plugins.InsertMacron);
|
||||
})();
|
||||
|
Loading…
Reference in New Issue
Block a user