tinymce.create("tinymce.plugins.StylePlugin",{init:function(t,n){t.addCommand("mceStyleProps",(function(){var e=!1,i=t.selection.getSelectedBlocks(),o=[];1===i.length?o.push(t.selection.getNode().style.cssText):(tinymce.each(i,(function(e){o.push(t.dom.getAttrib(e,"style"))})),e=!0),t.windowManager.open({file:n+"/props.htm",width:480+parseInt(t.getLang("style.delta_width",0)),height:340+parseInt(t.getLang("style.delta_height",0)),inline:1},{applyStyleToBlocks:e,plugin_url:n,styles:o})})),t.addCommand("mceSetElementStyle",(function(n,i){(e=t.selection.getNode())&&(t.dom.setAttrib(e,"style",i),t.execCommand("mceRepaint"))})),t.onNodeChange.add((function(e,t,n){t.setDisabled("styleprops","BODY"===n.nodeName)})),t.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);
