tinymce-rails4 4.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +17 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +29 -0
- data/Rakefile +1 -0
- data/app/assets/javascripts/langs/readme.md +3 -0
- data/app/assets/javascripts/license.txt +504 -0
- data/app/assets/javascripts/plugins/advlist/plugin.min.js +1 -0
- data/app/assets/javascripts/plugins/anchor/plugin.min.js +1 -0
- data/app/assets/javascripts/plugins/autolink/plugin.min.js +1 -0
- data/app/assets/javascripts/plugins/autoresize/plugin.min.js +1 -0
- data/app/assets/javascripts/plugins/autosave/plugin.min.js +1 -0
- data/app/assets/javascripts/plugins/bbcode/plugin.min.js +1 -0
- data/app/assets/javascripts/plugins/charmap/plugin.min.js +1 -0
- data/app/assets/javascripts/plugins/code/plugin.min.js +1 -0
- data/app/assets/javascripts/plugins/contextmenu/plugin.min.js +1 -0
- data/app/assets/javascripts/plugins/directionality/plugin.min.js +1 -0
- data/app/assets/javascripts/plugins/emoticons/img/smiley-cool.gif +0 -0
- data/app/assets/javascripts/plugins/emoticons/img/smiley-cry.gif +0 -0
- data/app/assets/javascripts/plugins/emoticons/img/smiley-embarassed.gif +0 -0
- data/app/assets/javascripts/plugins/emoticons/img/smiley-foot-in-mouth.gif +0 -0
- data/app/assets/javascripts/plugins/emoticons/img/smiley-frown.gif +0 -0
- data/app/assets/javascripts/plugins/emoticons/img/smiley-innocent.gif +0 -0
- data/app/assets/javascripts/plugins/emoticons/img/smiley-kiss.gif +0 -0
- data/app/assets/javascripts/plugins/emoticons/img/smiley-laughing.gif +0 -0
- data/app/assets/javascripts/plugins/emoticons/img/smiley-money-mouth.gif +0 -0
- data/app/assets/javascripts/plugins/emoticons/img/smiley-sealed.gif +0 -0
- data/app/assets/javascripts/plugins/emoticons/img/smiley-smile.gif +0 -0
- data/app/assets/javascripts/plugins/emoticons/img/smiley-surprised.gif +0 -0
- data/app/assets/javascripts/plugins/emoticons/img/smiley-tongue-out.gif +0 -0
- data/app/assets/javascripts/plugins/emoticons/img/smiley-undecided.gif +0 -0
- data/app/assets/javascripts/plugins/emoticons/img/smiley-wink.gif +0 -0
- data/app/assets/javascripts/plugins/emoticons/img/smiley-yell.gif +0 -0
- data/app/assets/javascripts/plugins/emoticons/plugin.min.js +1 -0
- data/app/assets/javascripts/plugins/example/plugin.min.js +1 -0
- data/app/assets/javascripts/plugins/example_dependency/plugin.min.js +1 -0
- data/app/assets/javascripts/plugins/fullpage/plugin.min.js +1 -0
- data/app/assets/javascripts/plugins/fullscreen/plugin.min.js +1 -0
- data/app/assets/javascripts/plugins/hr/plugin.min.js +1 -0
- data/app/assets/javascripts/plugins/image/plugin.min.js +1 -0
- data/app/assets/javascripts/plugins/importcss/plugin.min.js +1 -0
- data/app/assets/javascripts/plugins/insertdatetime/plugin.min.js +1 -0
- data/app/assets/javascripts/plugins/layer/plugin.min.js +1 -0
- data/app/assets/javascripts/plugins/legacyoutput/plugin.min.js +1 -0
- data/app/assets/javascripts/plugins/link/plugin.min.js +1 -0
- data/app/assets/javascripts/plugins/lists/plugin.min.js +1 -0
- data/app/assets/javascripts/plugins/media/moxieplayer.swf +0 -0
- data/app/assets/javascripts/plugins/media/plugin.min.js +1 -0
- data/app/assets/javascripts/plugins/nonbreaking/plugin.min.js +1 -0
- data/app/assets/javascripts/plugins/noneditable/plugin.min.js +1 -0
- data/app/assets/javascripts/plugins/pagebreak/plugin.min.js +1 -0
- data/app/assets/javascripts/plugins/paste/plugin.min.js +1 -0
- data/app/assets/javascripts/plugins/preview/plugin.min.js +1 -0
- data/app/assets/javascripts/plugins/print/plugin.min.js +1 -0
- data/app/assets/javascripts/plugins/save/plugin.min.js +1 -0
- data/app/assets/javascripts/plugins/searchreplace/plugin.min.js +1 -0
- data/app/assets/javascripts/plugins/spellchecker/plugin.min.js +1 -0
- data/app/assets/javascripts/plugins/tabfocus/plugin.min.js +1 -0
- data/app/assets/javascripts/plugins/table/plugin.min.js +1 -0
- data/app/assets/javascripts/plugins/template/plugin.min.js +1 -0
- data/app/assets/javascripts/plugins/textcolor/plugin.min.js +1 -0
- data/app/assets/javascripts/plugins/visualblocks/css/visualblocks.css +128 -0
- data/app/assets/javascripts/plugins/visualblocks/plugin.min.js +1 -0
- data/app/assets/javascripts/plugins/visualchars/plugin.min.js +1 -0
- data/app/assets/javascripts/plugins/wordcount/plugin.min.js +1 -0
- data/app/assets/javascripts/skins/lightgray/content.inline.min.css +1 -0
- data/app/assets/javascripts/skins/lightgray/content.min.css +1 -0
- data/app/assets/javascripts/skins/lightgray/fonts/icomoon-small.eot +0 -0
- data/app/assets/javascripts/skins/lightgray/fonts/icomoon-small.svg +175 -0
- data/app/assets/javascripts/skins/lightgray/fonts/icomoon-small.ttf +0 -0
- data/app/assets/javascripts/skins/lightgray/fonts/icomoon-small.woff +0 -0
- data/app/assets/javascripts/skins/lightgray/fonts/icomoon.eot +0 -0
- data/app/assets/javascripts/skins/lightgray/fonts/icomoon.svg +153 -0
- data/app/assets/javascripts/skins/lightgray/fonts/icomoon.ttf +0 -0
- data/app/assets/javascripts/skins/lightgray/fonts/icomoon.woff +0 -0
- data/app/assets/javascripts/skins/lightgray/fonts/readme.md +1 -0
- data/app/assets/javascripts/skins/lightgray/img/anchor.gif +0 -0
- data/app/assets/javascripts/skins/lightgray/img/loader.gif +0 -0
- data/app/assets/javascripts/skins/lightgray/img/object.gif +0 -0
- data/app/assets/javascripts/skins/lightgray/img/trans.gif +0 -0
- data/app/assets/javascripts/skins/lightgray/img/wline.gif +0 -0
- data/app/assets/javascripts/skins/lightgray/skin.ie7.min.css +1 -0
- data/app/assets/javascripts/skins/lightgray/skin.min.css +1 -0
- data/app/assets/javascripts/themes/modern/theme.min.js +1 -0
- data/app/assets/javascripts/tinymce.min.js +10 -0
- data/lib/generators/tinymce/install/install_generator.rb +13 -0
- data/lib/tinymce/rails4/version.rb +5 -0
- data/lib/tinymce/rails4.rb +8 -0
- data/tinymce-rails4.gemspec +24 -0
- metadata +187 -0
@@ -0,0 +1 @@
|
|
1
|
+
tinymce.ThemeManager.add("modern",function(e){function t(){function t(t){var i,o=[];if(t)return d(t.split(/[ ,]/),function(t){function n(){var n=e.selection;"bullist"==r&&n.selectorChanged("ul > li",function(e,n){for(var i,o=n.parents.length;o--&&(i=n.parents[o].nodeName,"OL"!=i&&"UL"!=i););t.active(e&&"UL"==i)}),"numlist"==r&&n.selectorChanged("ol > li",function(e,n){for(var i,o=n.parents.length;o--&&(i=n.parents[o].nodeName,"OL"!=i&&"UL"!=i););t.active(e&&"OL"==i)}),t.settings.stateSelector&&n.selectorChanged(t.settings.stateSelector,function(e){t.active(e)},!0),t.settings.disabledStateSelector&&n.selectorChanged(t.settings.disabledStateSelector,function(e){t.disabled(e)})}var r;"|"==t?i=null:c.has(t)?(t={type:t},u.toolbar_items_size&&(t.size=u.toolbar_items_size),o.push(t),i=null):(i||(i={type:"buttongroup",items:[]},o.push(i)),e.buttons[t]&&(r=t,t=e.buttons[r],"function"==typeof t&&(t=t()),t.type=t.type||"button",u.toolbar_items_size&&(t.size=u.toolbar_items_size),t=c.create(t),i.items.push(t),e.initialized?n():e.on("init",n)))}),n.push({type:"toolbar",layout:"flow",items:o}),!0}for(var n=[],i=1;10>i&&t(u["toolbar"+i]);i++);return n.length||t(u.toolbar||f),n}function n(){function t(t){var n;return"|"==t?{text:"|"}:n=e.menuItems[t]}function n(n){var i,o,r,a,s;if(s=tinymce.makeMap((u.removed_menuitems||"").split(/[ ,]/)),u.menu?(o=u.menu[n],a=!0):o=h[n],o){i={text:o.title},r=[],d((o.items||"").split(/[ ,]/),function(e){var n=t(e);n&&!s[e]&&r.push(t(e))}),a||d(e.menuItems,function(e){e.context==n&&("before"==e.separator&&r.push({text:"|"}),e.prependToContext?r.unshift(e):r.push(e),"after"==e.separator&&r.push({text:"|"}))});for(var l=0;l<r.length;l++)"|"==r[l].text&&(0===l||l==r.length-1)&&r.splice(l,1);if(i.menu=r,!i.menu.length)return null}return i}var i,o=[],r=[];if(u.menu)for(i in u.menu)r.push(i);else for(i in h)r.push(i);for(var a=u.menubar?u.menubar.split(/[ ,]/):r,s=0;s<a.length;s++){var l=a[s];l=n(l),l&&o.push(l)}return o}function i(t){function n(e){var n=t.find(e)[0];n&&n.focus()}e.shortcuts.add("Alt+F9","",function(){n("menubar")}),e.shortcuts.add("Alt+F10","",function(){n("toolbar")}),e.shortcuts.add("Alt+F11","",function(){n("elementpath")}),t.on("cancel",function(){e.focus()})}function o(t,n){function i(e){return{width:e.clientWidth,height:e.clientHeight}}var o,r,a,s;o=e.getContainer(),r=e.getContentAreaContainer().firstChild,a=i(o),s=i(r),null!==t&&(t=Math.max(u.min_width||100,t),t=Math.min(u.max_width||65535,t),m.css(o,"width",t+(a.width-s.width)),m.css(r,"width",t)),n=Math.max(u.min_height||100,n),n=Math.min(u.max_height||65535,n),m.css(r,"height",n),e.fire("ResizeEditor")}function r(t,n){var i=e.getContentAreaContainer();l.resizeTo(i.clientWidth+t,i.clientHeight+n)}function a(){function o(){if(d&&d.moveRel&&d.visible()&&!d._fixed){var t=e.selection.getScrollContainer(),n=e.getBody(),i=0,o=0;if(t){var r=m.getPos(n),a=m.getPos(t);i=Math.max(0,a.x-r.x),o=Math.max(0,a.y-r.y)}d.fixed(!1).moveRel(n,["tl-bl","bl-tl"]).moveBy(i,o)}}function r(){d&&(d.show(),o(),m.addClass(e.getBody(),"mce-edit-focus"))}function a(){d&&(d.hide(),m.removeClass(e.getBody(),"mce-edit-focus"))}function s(){return d?(d.visible()||r(),void 0):(d=l.panel=c.create({type:h?"panel":"floatpanel",classes:"tinymce tinymce-inline",layout:"flex",direction:"column",autohide:!1,autofix:!0,fixed:!!h,border:1,items:[u.menubar===!1?null:{type:"menubar",border:"0 0 1 0",items:n()},u.toolbar===!1?null:{type:"panel",name:"toolbar",layout:"stack",items:t()}]}),d.renderTo(h||document.body).reflow(),i(d),r(),e.on("nodeChange",o),e.on("activate",r),e.on("deactivate",a),void 0)}var d,h;return u.fixed_toolbar_container&&(h=m.select(u.fixed_toolbar_container)[0]),u.content_editable=!0,e.on("focus",s),e.on("blur",a),e.on("remove",function(){d&&(d.remove(),d=null)}),{}}function s(r){var a,s,d;return a=l.panel=c.create({type:"panel",classes:"tinymce",style:"visibility: hidden",layout:"stack",border:1,items:[u.menubar===!1?null:{type:"menubar",border:"0 0 1 0",items:n()},u.toolbar===!1?null:{type:"panel",layout:"stack",items:t()},{type:"panel",name:"iframe",layout:"stack",classes:"edit-area",html:"",border:"1 0 0 0"}]}),u.resize!==!1&&(s={type:"resizehandle",direction:u.resize,onResizeStart:function(){var t=e.getContentAreaContainer().firstChild;d={width:t.clientWidth,height:t.clientHeight}},onResize:function(e){"both"==u.resize?o(d.width+e.deltaX,d.height+e.deltaY):o(null,d.height+e.deltaY)}}),u.statusbar!==!1&&a.add({type:"panel",name:"statusbar",classes:"statusbar",layout:"flow",border:"1 0 0 0",items:[{type:"elementpath"},s]}),a.renderBefore(r.targetNode).reflow(),u.width&&tinymce.DOM.setStyle(a.getEl(),"width",u.width),e.on("remove",function(){a.remove(),a=null}),i(a),{iframeContainer:a.find("#iframe")[0].getEl(),editorContainer:a.getEl()}}var l=this,u=e.settings,c=tinymce.ui.Factory,d=tinymce.each,m=tinymce.DOM,h={file:{title:"File",items:"newdocument"},edit:{title:"Edit",items:"undo redo | cut copy paste pastetext | selectall"},insert:{title:"Insert",items:"|"},view:{title:"View",items:"visualaid |"},format:{title:"Format",items:"bold italic underline strikethrough superscript subscript | formats | removeformat"},table:{title:"Table"},tools:{title:"Tools"}},f="undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image";l.renderUI=function(t){var n=u.skin!==!1?u.skin||"lightgray":!1;if(n){var i=u.skin_url;i=i?e.documentBaseURI.toAbsolute(i):tinymce.baseURL+"/skins/"+n,tinymce.Env.documentMode<=7?tinymce.DOM.loadCSS(i+"/skin.ie7.min.css"):tinymce.DOM.loadCSS(i+"/skin.min.css"),e.contentCSS.push(i+"/content"+(e.inline?".inline":"")+".min.css")}return e.on("ProgressState",function(e){l.throbber=l.throbber||new tinymce.ui.Throbber(l.panel.getEl("body")),e.state?l.throbber.show(e.time):l.throbber.hide()}),u.inline?a(t):s(t)},l.resizeTo=o,l.resizeBy=r});
|