Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Moodle Tinymce plugin - MDL-23356 convert tabs to spaces.

  • Loading branch information...
commit 2481a0466d59a19f74e7e6c2d72bafe1d32c987c 1 parent 6528fe6
@danmarsden danmarsden authored
View
78 lib/editor/tinymce/tiny_mce/3.3.8/plugins/moodlemedia/editor_plugin.js
@@ -4,50 +4,50 @@
*/
(function() {
- var each = tinymce.each;
-
- tinymce.PluginManager.requireLangPack('moodlemedia');
-
- tinymce.create('tinymce.plugins.MoodlemediaPlugin', {
- init : function(ed, url) {
- var t = this;
-
- t.editor = ed;
- t.url = url;
-
- // Register commands
- ed.addCommand('mceMoodleMedia', function() {
- ed.windowManager.open({
- file : url + '/moodlemedia.htm',
- width : 430 + parseInt(ed.getLang('media.delta_width', 0)),
- height : 470 + parseInt(ed.getLang('media.delta_height', 0)),
- inline : 1
- }, {
- plugin_url : url
- });
- });
-
- // Register buttons
- ed.addButton('moodlemedia', {
+ var each = tinymce.each;
+
+ tinymce.PluginManager.requireLangPack('moodlemedia');
+
+ tinymce.create('tinymce.plugins.MoodlemediaPlugin', {
+ init : function(ed, url) {
+ var t = this;
+
+ t.editor = ed;
+ t.url = url;
+
+ // Register commands
+ ed.addCommand('mceMoodleMedia', function() {
+ ed.windowManager.open({
+ file : url + '/moodlemedia.htm',
+ width : 430 + parseInt(ed.getLang('media.delta_width', 0)),
+ height : 470 + parseInt(ed.getLang('media.delta_height', 0)),
+ inline : 1
+ }, {
+ plugin_url : url
+ });
+ });
+
+ // Register buttons
+ ed.addButton('moodlemedia', {
title : 'Moodle Media',
image : url + '/img/icon.gif',
cmd : 'mceMoodleMedia'});
- },
+ },
- _parse : function(s) {
- return tinymce.util.JSON.parse('{' + s + '}');
- },
+ _parse : function(s) {
+ return tinymce.util.JSON.parse('{' + s + '}');
+ },
- getInfo : function() {
- return {
- longname : 'Moodle media',
- author : 'Dongsheng Cai <dongsheng@moodle.com>',
- version : "1.0"
- };
- }
- });
+ getInfo : function() {
+ return {
+ longname : 'Moodle media',
+ author : 'Dongsheng Cai <dongsheng@moodle.com>',
+ version : "1.0"
+ };
+ }
+ });
- // Register plugin
- tinymce.PluginManager.add('moodlemedia', tinymce.plugins.MoodlemediaPlugin);
+ // Register plugin
+ tinymce.PluginManager.add('moodlemedia', tinymce.plugins.MoodlemediaPlugin);
})();
Please sign in to comment.
Something went wrong with that request. Please try again.