annotate media/js/tiny_mce/plugins/emotions/editor_plugin_src.js @ 199:217119c87a06

Fix #72: update to 1.1.7 of the MarkItUp! editor.
author Brian Neal <bgneal@gmail.com>
date Sun, 11 Apr 2010 18:56:30 +0000
parents 149c3567fec1
children
rev   line source
bgneal@45 1 /**
bgneal@183 2 * editor_plugin_src.js
bgneal@45 3 *
bgneal@183 4 * Copyright 2009, Moxiecode Systems AB
bgneal@183 5 * Released under LGPL License.
bgneal@183 6 *
bgneal@183 7 * License: http://tinymce.moxiecode.com/license
bgneal@183 8 * Contributing: http://tinymce.moxiecode.com/contributing
bgneal@45 9 */
bgneal@45 10
bgneal@183 11 (function(tinymce) {
bgneal@45 12 tinymce.create('tinymce.plugins.EmotionsPlugin', {
bgneal@45 13 init : function(ed, url) {
bgneal@45 14 // Register commands
bgneal@45 15 ed.addCommand('mceEmotion', function() {
bgneal@45 16 ed.windowManager.open({
bgneal@45 17 file : url + '/emotions.htm',
bgneal@45 18 width : 250 + parseInt(ed.getLang('emotions.delta_width', 0)),
bgneal@45 19 height : 160 + parseInt(ed.getLang('emotions.delta_height', 0)),
bgneal@45 20 inline : 1
bgneal@45 21 }, {
bgneal@45 22 plugin_url : url
bgneal@45 23 });
bgneal@45 24 });
bgneal@45 25
bgneal@45 26 // Register buttons
bgneal@45 27 ed.addButton('emotions', {title : 'emotions.emotions_desc', cmd : 'mceEmotion'});
bgneal@45 28 },
bgneal@45 29
bgneal@45 30 getInfo : function() {
bgneal@45 31 return {
bgneal@45 32 longname : 'Emotions',
bgneal@45 33 author : 'Moxiecode Systems AB',
bgneal@45 34 authorurl : 'http://tinymce.moxiecode.com',
bgneal@45 35 infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/emotions',
bgneal@45 36 version : tinymce.majorVersion + "." + tinymce.minorVersion
bgneal@45 37 };
bgneal@45 38 }
bgneal@45 39 });
bgneal@45 40
bgneal@45 41 // Register plugin
bgneal@45 42 tinymce.PluginManager.add('emotions', tinymce.plugins.EmotionsPlugin);
bgneal@183 43 })(tinymce);