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) (from r94062)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@95642 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sean Harvey 2009-12-16 05:54:10 +00:00
parent 1c66833747
commit c2403fc8c9
3 changed files with 8 additions and 4 deletions

View File

@ -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' );

View File

@ -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', {
@ -113,5 +113,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);
})();

View File

@ -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);
})();