Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
  • Loading branch information...
commit c2403fc8c995c1b11db05fdee984527c54ae1517 1 parent 1c66833
Sean Harvey halkyon authored
3  _config.php
View
@@ -42,7 +42,8 @@
));
-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' );
4 javascript/tinymce_ssbuttons/editor_plugin_src.js
View
@@ -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);
})();
5 javascript/tinymce_ssmacron/editor_plugin_src.js
View
@@ -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);
})();
Please sign in to comment.
Something went wrong with that request. Please try again.