summaryrefslogtreecommitdiffstats
path: root/askbot/skins/default/media/js/tinymce/plugins/style/editor_plugin.js
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2012-09-19 19:30:09 -0400
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2012-09-19 19:30:09 -0400
commit8818c44dbdf306683d403ea8fa3d7a2d02a3a509 (patch)
tree6719b8803b68f259a54d0a0e440cba829736484d /askbot/skins/default/media/js/tinymce/plugins/style/editor_plugin.js
parent88df9c59a6bf6d929b09a0ceb4487c1a1780142b (diff)
downloadaskbot-8818c44dbdf306683d403ea8fa3d7a2d02a3a509.tar.gz
askbot-8818c44dbdf306683d403ea8fa3d7a2d02a3a509.tar.bz2
askbot-8818c44dbdf306683d403ea8fa3d7a2d02a3a509.zip
completely emptied the "common" skin directory
Diffstat (limited to 'askbot/skins/default/media/js/tinymce/plugins/style/editor_plugin.js')
-rw-r--r--askbot/skins/default/media/js/tinymce/plugins/style/editor_plugin.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/askbot/skins/default/media/js/tinymce/plugins/style/editor_plugin.js b/askbot/skins/default/media/js/tinymce/plugins/style/editor_plugin.js
new file mode 100644
index 00000000..dda9f928
--- /dev/null
+++ b/askbot/skins/default/media/js/tinymce/plugins/style/editor_plugin.js
@@ -0,0 +1 @@
+(function(){tinymce.create("tinymce.plugins.StylePlugin",{init:function(a,b){a.addCommand("mceStyleProps",function(){var c=false;var f=a.selection.getSelectedBlocks();var d=[];if(f.length===1){d.push(a.selection.getNode().style.cssText)}else{tinymce.each(f,function(g){d.push(a.dom.getAttrib(g,"style"))});c=true}a.windowManager.open({file:b+"/props.htm",width:480+parseInt(a.getLang("style.delta_width",0)),height:340+parseInt(a.getLang("style.delta_height",0)),inline:1},{applyStyleToBlocks:c,plugin_url:b,styles:d})});a.addCommand("mceSetElementStyle",function(d,c){if(e=a.selection.getNode()){a.dom.setAttrib(e,"style",c);a.execCommand("mceRepaint")}});a.onNodeChange.add(function(d,c,f){c.setDisabled("styleprops",f.nodeName==="BODY")});a.addButton("styleprops",{title:"style.desc",cmd:"mceStyleProps"})},getInfo:function(){return{longname:"Style",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/style",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("style",tinymce.plugins.StylePlugin)})(); \ No newline at end of file