bedrock_sass 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/assets/_vendor/tinymce/plugins/advlist/index.js +7 -0
- data/assets/_vendor/tinymce/plugins/advlist/plugin.js +428 -0
- data/assets/_vendor/tinymce/plugins/advlist/plugin.min.js +1 -0
- data/assets/_vendor/tinymce/plugins/anchor/index.js +7 -0
- data/assets/_vendor/tinymce/plugins/anchor/plugin.js +338 -0
- data/assets/_vendor/tinymce/plugins/anchor/plugin.min.js +1 -0
- data/assets/_vendor/tinymce/plugins/autolink/index.js +7 -0
- data/assets/_vendor/tinymce/plugins/autolink/plugin.js +404 -0
- data/assets/_vendor/tinymce/plugins/autolink/plugin.min.js +1 -0
- data/assets/_vendor/tinymce/plugins/autoresize/index.js +7 -0
- data/assets/_vendor/tinymce/plugins/autoresize/plugin.js +451 -0
- data/assets/_vendor/tinymce/plugins/autoresize/plugin.min.js +1 -0
- data/assets/_vendor/tinymce/plugins/autosave/index.js +7 -0
- data/assets/_vendor/tinymce/plugins/autosave/plugin.js +608 -0
- data/assets/_vendor/tinymce/plugins/autosave/plugin.min.js +1 -0
- data/assets/_vendor/tinymce/plugins/bbcode/index.js +7 -0
- data/assets/_vendor/tinymce/plugins/bbcode/plugin.js +264 -0
- data/assets/_vendor/tinymce/plugins/bbcode/plugin.min.js +1 -0
- data/assets/_vendor/tinymce/plugins/charmap/index.js +7 -0
- data/assets/_vendor/tinymce/plugins/charmap/plugin.js +850 -0
- data/assets/_vendor/tinymce/plugins/charmap/plugin.min.js +1 -0
- data/assets/_vendor/tinymce/plugins/code/index.js +7 -0
- data/assets/_vendor/tinymce/plugins/code/plugin.js +338 -0
- data/assets/_vendor/tinymce/plugins/code/plugin.min.js +1 -0
- data/assets/_vendor/tinymce/plugins/codesample/css/prism.css +138 -0
- data/assets/_vendor/tinymce/plugins/codesample/index.js +7 -0
- data/assets/_vendor/tinymce/plugins/codesample/plugin.js +1582 -0
- data/assets/_vendor/tinymce/plugins/codesample/plugin.min.js +1 -0
- data/assets/_vendor/tinymce/plugins/colorpicker/index.js +7 -0
- data/assets/_vendor/tinymce/plugins/colorpicker/plugin.js +272 -0
- data/assets/_vendor/tinymce/plugins/colorpicker/plugin.min.js +1 -0
- data/assets/_vendor/tinymce/plugins/contextmenu/index.js +7 -0
- data/assets/_vendor/tinymce/plugins/contextmenu/plugin.js +496 -0
- data/assets/_vendor/tinymce/plugins/contextmenu/plugin.min.js +1 -0
- data/assets/_vendor/tinymce/plugins/directionality/index.js +7 -0
- data/assets/_vendor/tinymce/plugins/directionality/plugin.js +270 -0
- data/assets/_vendor/tinymce/plugins/directionality/plugin.min.js +1 -0
- data/assets/_vendor/tinymce/plugins/emoticons/img/smiley-cool.gif +0 -0
- data/assets/_vendor/tinymce/plugins/emoticons/img/smiley-cry.gif +0 -0
- data/assets/_vendor/tinymce/plugins/emoticons/img/smiley-embarassed.gif +0 -0
- data/assets/_vendor/tinymce/plugins/emoticons/img/smiley-foot-in-mouth.gif +0 -0
- data/assets/_vendor/tinymce/plugins/emoticons/img/smiley-frown.gif +0 -0
- data/assets/_vendor/tinymce/plugins/emoticons/img/smiley-innocent.gif +0 -0
- data/assets/_vendor/tinymce/plugins/emoticons/img/smiley-kiss.gif +0 -0
- data/assets/_vendor/tinymce/plugins/emoticons/img/smiley-laughing.gif +0 -0
- data/assets/_vendor/tinymce/plugins/emoticons/img/smiley-money-mouth.gif +0 -0
- data/assets/_vendor/tinymce/plugins/emoticons/img/smiley-sealed.gif +0 -0
- data/assets/_vendor/tinymce/plugins/emoticons/img/smiley-smile.gif +0 -0
- data/assets/_vendor/tinymce/plugins/emoticons/img/smiley-surprised.gif +0 -0
- data/assets/_vendor/tinymce/plugins/emoticons/img/smiley-tongue-out.gif +0 -0
- data/assets/_vendor/tinymce/plugins/emoticons/img/smiley-undecided.gif +0 -0
- data/assets/_vendor/tinymce/plugins/emoticons/img/smiley-wink.gif +0 -0
- data/assets/_vendor/tinymce/plugins/emoticons/img/smiley-yell.gif +0 -0
- data/assets/_vendor/tinymce/plugins/emoticons/index.js +7 -0
- data/assets/_vendor/tinymce/plugins/emoticons/plugin.js +256 -0
- data/assets/_vendor/tinymce/plugins/emoticons/plugin.min.js +1 -0
- data/assets/_vendor/tinymce/plugins/fullpage/index.js +7 -0
- data/assets/_vendor/tinymce/plugins/fullpage/plugin.js +962 -0
- data/assets/_vendor/tinymce/plugins/fullpage/plugin.min.js +1 -0
- data/assets/_vendor/tinymce/plugins/fullscreen/index.js +7 -0
- data/assets/_vendor/tinymce/plugins/fullscreen/plugin.js +455 -0
- data/assets/_vendor/tinymce/plugins/fullscreen/plugin.min.js +1 -0
- data/assets/_vendor/tinymce/plugins/help/img/logo.png +0 -0
- data/assets/_vendor/tinymce/plugins/help/index.js +7 -0
- data/assets/_vendor/tinymce/plugins/help/plugin.js +1527 -0
- data/assets/_vendor/tinymce/plugins/help/plugin.min.js +1 -0
- data/assets/_vendor/tinymce/plugins/hr/index.js +7 -0
- data/assets/_vendor/tinymce/plugins/hr/plugin.js +195 -0
- data/assets/_vendor/tinymce/plugins/hr/plugin.min.js +1 -0
- data/assets/_vendor/tinymce/plugins/image/index.js +7 -0
- data/assets/_vendor/tinymce/plugins/image/plugin.js +1572 -0
- data/assets/_vendor/tinymce/plugins/image/plugin.min.js +1 -0
- data/assets/_vendor/tinymce/plugins/imagetools/index.js +7 -0
- data/assets/_vendor/tinymce/plugins/imagetools/plugin.js +4444 -0
- data/assets/_vendor/tinymce/plugins/imagetools/plugin.min.js +2 -0
- data/assets/_vendor/tinymce/plugins/importcss/index.js +7 -0
- data/assets/_vendor/tinymce/plugins/importcss/plugin.js +577 -0
- data/assets/_vendor/tinymce/plugins/importcss/plugin.min.js +1 -0
- data/assets/_vendor/tinymce/plugins/insertdatetime/index.js +7 -0
- data/assets/_vendor/tinymce/plugins/insertdatetime/plugin.js +482 -0
- data/assets/_vendor/tinymce/plugins/insertdatetime/plugin.min.js +1 -0
- data/assets/_vendor/tinymce/plugins/legacyoutput/index.js +7 -0
- data/assets/_vendor/tinymce/plugins/legacyoutput/plugin.js +395 -0
- data/assets/_vendor/tinymce/plugins/legacyoutput/plugin.min.js +1 -0
- data/assets/_vendor/tinymce/plugins/link/index.js +7 -0
- data/assets/_vendor/tinymce/plugins/link/plugin.js +1231 -0
- data/assets/_vendor/tinymce/plugins/link/plugin.min.js +1 -0
- data/assets/_vendor/tinymce/plugins/lists/index.js +7 -0
- data/assets/_vendor/tinymce/plugins/lists/plugin.js +1985 -0
- data/assets/_vendor/tinymce/plugins/lists/plugin.min.js +1 -0
- data/assets/_vendor/tinymce/plugins/media/index.js +7 -0
- data/assets/_vendor/tinymce/plugins/media/plugin.js +2026 -0
- data/assets/_vendor/tinymce/plugins/media/plugin.min.js +1 -0
- data/assets/_vendor/tinymce/plugins/nonbreaking/index.js +7 -0
- data/assets/_vendor/tinymce/plugins/nonbreaking/plugin.js +313 -0
- data/assets/_vendor/tinymce/plugins/nonbreaking/plugin.min.js +1 -0
- data/assets/_vendor/tinymce/plugins/noneditable/index.js +7 -0
- data/assets/_vendor/tinymce/plugins/noneditable/plugin.js +316 -0
- data/assets/_vendor/tinymce/plugins/noneditable/plugin.min.js +1 -0
- data/assets/_vendor/tinymce/plugins/pagebreak/index.js +7 -0
- data/assets/_vendor/tinymce/plugins/pagebreak/plugin.js +354 -0
- data/assets/_vendor/tinymce/plugins/pagebreak/plugin.min.js +1 -0
- data/assets/_vendor/tinymce/plugins/paste/index.js +7 -0
- data/assets/_vendor/tinymce/plugins/paste/plugin.js +2935 -0
- data/assets/_vendor/tinymce/plugins/paste/plugin.min.js +1 -0
- data/assets/_vendor/tinymce/plugins/preview/index.js +7 -0
- data/assets/_vendor/tinymce/plugins/preview/plugin.js +410 -0
- data/assets/_vendor/tinymce/plugins/preview/plugin.min.js +1 -0
- data/assets/_vendor/tinymce/plugins/print/index.js +7 -0
- data/assets/_vendor/tinymce/plugins/print/plugin.js +194 -0
- data/assets/_vendor/tinymce/plugins/print/plugin.min.js +1 -0
- data/assets/_vendor/tinymce/plugins/save/index.js +7 -0
- data/assets/_vendor/tinymce/plugins/save/plugin.js +370 -0
- data/assets/_vendor/tinymce/plugins/save/plugin.min.js +1 -0
- data/assets/_vendor/tinymce/plugins/searchreplace/index.js +7 -0
- data/assets/_vendor/tinymce/plugins/searchreplace/plugin.js +977 -0
- data/assets/_vendor/tinymce/plugins/searchreplace/plugin.min.js +1 -0
- data/assets/_vendor/tinymce/plugins/spellchecker/index.js +7 -0
- data/assets/_vendor/tinymce/plugins/spellchecker/plugin.js +1419 -0
- data/assets/_vendor/tinymce/plugins/spellchecker/plugin.min.js +1 -0
- data/assets/_vendor/tinymce/plugins/tabfocus/index.js +7 -0
- data/assets/_vendor/tinymce/plugins/tabfocus/plugin.js +419 -0
- data/assets/_vendor/tinymce/plugins/tabfocus/plugin.min.js +1 -0
- data/assets/_vendor/tinymce/plugins/table/index.js +7 -0
- data/assets/_vendor/tinymce/plugins/table/plugin.js +15527 -0
- data/assets/_vendor/tinymce/plugins/table/plugin.min.js +5 -0
- data/assets/_vendor/tinymce/plugins/template/index.js +7 -0
- data/assets/_vendor/tinymce/plugins/template/plugin.js +807 -0
- data/assets/_vendor/tinymce/plugins/template/plugin.min.js +1 -0
- data/assets/_vendor/tinymce/plugins/textcolor/index.js +7 -0
- data/assets/_vendor/tinymce/plugins/textcolor/plugin.js +619 -0
- data/assets/_vendor/tinymce/plugins/textcolor/plugin.min.js +1 -0
- data/assets/_vendor/tinymce/plugins/textpattern/index.js +7 -0
- data/assets/_vendor/tinymce/plugins/textpattern/plugin.js +718 -0
- data/assets/_vendor/tinymce/plugins/textpattern/plugin.min.js +1 -0
- data/assets/_vendor/tinymce/plugins/toc/index.js +7 -0
- data/assets/_vendor/tinymce/plugins/toc/plugin.js +559 -0
- data/assets/_vendor/tinymce/plugins/toc/plugin.min.js +1 -0
- data/assets/_vendor/tinymce/plugins/visualblocks/css/visualblocks.css +154 -0
- data/assets/_vendor/tinymce/plugins/visualblocks/index.js +7 -0
- data/assets/_vendor/tinymce/plugins/visualblocks/plugin.js +459 -0
- data/assets/_vendor/tinymce/plugins/visualblocks/plugin.min.js +1 -0
- data/assets/_vendor/tinymce/plugins/visualchars/index.js +7 -0
- data/assets/_vendor/tinymce/plugins/visualchars/plugin.js +1325 -0
- data/assets/_vendor/tinymce/plugins/visualchars/plugin.min.js +1 -0
- data/assets/_vendor/tinymce/plugins/wordcount/index.js +7 -0
- data/assets/_vendor/tinymce/plugins/wordcount/plugin.js +735 -0
- data/assets/_vendor/tinymce/plugins/wordcount/plugin.min.js +1 -0
- data/assets/_vendor/tinymce/skins/lightgray/content.inline.min.css +1 -0
- data/assets/_vendor/tinymce/skins/lightgray/content.min.css +1 -0
- data/assets/_vendor/tinymce/skins/lightgray/content.mobile.min.css +1 -0
- data/assets/_vendor/tinymce/skins/lightgray/fonts/tinymce-mobile.woff +0 -0
- data/assets/_vendor/tinymce/skins/lightgray/fonts/tinymce-small.eot +0 -0
- data/assets/_vendor/tinymce/skins/lightgray/fonts/tinymce-small.svg +63 -0
- data/assets/_vendor/tinymce/skins/lightgray/fonts/tinymce-small.ttf +0 -0
- data/assets/_vendor/tinymce/skins/lightgray/fonts/tinymce-small.woff +0 -0
- data/assets/_vendor/tinymce/skins/lightgray/fonts/tinymce.eot +0 -0
- data/assets/_vendor/tinymce/skins/lightgray/fonts/tinymce.svg +131 -0
- data/assets/_vendor/tinymce/skins/lightgray/fonts/tinymce.ttf +0 -0
- data/assets/_vendor/tinymce/skins/lightgray/fonts/tinymce.woff +0 -0
- data/assets/_vendor/tinymce/skins/lightgray/img/anchor.gif +0 -0
- data/assets/_vendor/tinymce/skins/lightgray/img/loader.gif +0 -0
- data/assets/_vendor/tinymce/skins/lightgray/img/object.gif +0 -0
- data/assets/_vendor/tinymce/skins/lightgray/img/trans.gif +0 -0
- data/assets/_vendor/tinymce/skins/lightgray/skin.min.css +1 -0
- data/assets/_vendor/tinymce/skins/lightgray/skin.mobile.min.css +2 -0
- data/assets/_vendor/tinymce/themes/inlite/index.js +7 -0
- data/assets/_vendor/tinymce/themes/inlite/theme.js +18787 -0
- data/assets/_vendor/tinymce/themes/inlite/theme.min.js +5 -0
- data/assets/_vendor/tinymce/themes/mobile/index.js +7 -0
- data/assets/_vendor/tinymce/themes/mobile/theme.js +23384 -0
- data/assets/_vendor/tinymce/themes/mobile/theme.min.js +8 -0
- data/assets/_vendor/tinymce/themes/modern/index.js +7 -0
- data/assets/_vendor/tinymce/themes/modern/theme.js +18311 -0
- data/assets/_vendor/tinymce/themes/modern/theme.min.js +5 -0
- data/assets/_vendor/tinymce/tinymce.js +44399 -0
- data/assets/bedrock/js/bedrock.js +16587 -6193
- data/assets/bedrock/scss/_bedrock-components.scss +16 -0
- data/assets/bedrock/scss/_bedrock-settings.scss +15 -0
- data/assets/bedrock/scss/components/attachments-grid.scss +138 -0
- data/assets/bedrock/scss/components/dropzone-upload.scss +158 -0
- data/assets/bedrock/scss/components/global.scss +16 -8
- data/assets/bedrock/scss/components/helper-classes.scss +59 -0
- data/assets/bedrock/scss/components/inline-edit-box.scss +80 -0
- data/assets/bedrock/scss/components/login-box.scss +48 -0
- data/assets/bedrock/scss/components/no-content.scss +31 -0
- data/assets/bedrock/scss/components/off-canvas-menu.scss +1 -1
- data/assets/bedrock/scss/components/page-content.scss +51 -0
- data/assets/bedrock/scss/components/reveal-panel.scss +89 -0
- data/assets/bedrock/scss/components/select-box.scss +332 -0
- data/assets/bedrock/scss/components/tiny-mce-editor.scss +14 -7
- data/lib/bedrock_sass.rb +6 -0
- data/lib/bedrock_sass/engine.rb +8 -0
- data/lib/bedrock_sass/version.rb +1 -1
- data/lib/tasks/before_assets_precompile.rake +11 -0
- metadata +188 -2
@@ -0,0 +1 @@
|
|
1
|
+
!function(){var a={},b=function(b){for(var c=a[b],e=c.deps,f=c.defn,g=e.length,h=new Array(g),i=0;i<g;++i)h[i]=d(e[i]);var j=f.apply(null,h);if(void 0===j)throw"module ["+b+"] returned undefined";c.instance=j},c=function(b,c,d){if("string"!=typeof b)throw"module id must be a string";if(void 0===c)throw"no dependencies for "+b;if(void 0===d)throw"no definition function for "+b;a[b]={deps:c,defn:d,instance:void 0}},d=function(c){var d=a[c];if(void 0===d)throw"module ["+c+"] was undefined";return void 0===d.instance&&b(c),d.instance},e=function(a,b){for(var c=a.length,e=new Array(c),f=0;f<c;++f)e[f]=d(a[f]);b.apply(null,e)},f={};f.bolt={module:{api:{define:c,require:e,demand:d}}};var g=c,h=function(a,b){g(a,[],function(){return b})};g("1",[],function(){var a=function(b){var c=b,d=function(){return c},e=function(a){c=a},f=function(){return a(d())};return{get:d,set:e,clone:f}};return a}),h("6",tinymce.util.Tools.resolve),g("2",["6"],function(a){return a("tinymce.PluginManager")}),g("8",["6"],function(a){return a("tinymce.util.Tools")}),g("c",["6"],function(a){return a("tinymce.html.DomParser")}),g("d",["6"],function(a){return a("tinymce.html.Node")}),g("e",["6"],function(a){return a("tinymce.html.Serializer")}),g("9",[],function(){var a=function(a){return a.getParam("fullpage_hide_in_source_view")},b=function(a){return a.getParam("fullpage_default_xml_pi")},c=function(a){return a.getParam("fullpage_default_encoding")},d=function(a){return a.getParam("fullpage_default_font_family")},e=function(a){return a.getParam("fullpage_default_font_size")},f=function(a){return a.getParam("fullpage_default_text_color")},g=function(a){return a.getParam("fullpage_default_title")},h=function(a){return a.getParam("fullpage_default_doctype","<!DOCTYPE html>")};return{shouldHideInSourceView:a,getDefaultXmlPi:b,getDefaultEncoding:c,getDefaultFontFamily:d,getDefaultFontSize:e,getDefaultTextColor:f,getDefaultTitle:g,getDefaultDocType:h}}),g("a",["c","d","e","8","9"],function(a,b,c,d,e){var f=function(b){return new a({validate:!1,root_name:"#document"}).parse(b)},g=function(a,b){function c(a,b){var c=a.attr(b);return c||""}var g,h,i=f(b),j={};return j.fontface=e.getDefaultFontFamily(a),j.fontsize=e.getDefaultFontSize(a),g=i.firstChild,7===g.type&&(j.xml_pi=!0,h=/encoding="([^"]+)"/.exec(g.value),h&&(j.docencoding=h[1])),g=i.getAll("#doctype")[0],g&&(j.doctype="<!DOCTYPE"+g.value+">"),g=i.getAll("title")[0],g&&g.firstChild&&(j.title=g.firstChild.value),d.each(i.getAll("meta"),function(a){var b,c=a.attr("name"),d=a.attr("http-equiv");c?j[c.toLowerCase()]=a.attr("content"):"Content-Type"===d&&(b=/charset\s*=\s*(.*)\s*/gi.exec(a.attr("content")),b&&(j.docencoding=b[1]))}),g=i.getAll("html")[0],g&&(j.langcode=c(g,"lang")||c(g,"xml:lang")),j.stylesheets=[],d.each(i.getAll("link"),function(a){"stylesheet"===a.attr("rel")&&j.stylesheets.push(a.attr("href"))}),g=i.getAll("body")[0],g&&(j.langdir=c(g,"dir"),j.style=c(g,"style"),j.visited_color=c(g,"vlink"),j.link_color=c(g,"link"),j.active_color=c(g,"alink")),j},h=function(a,e,g){function h(a,b,c){a.attr(b,c?c:void 0)}function i(a){k.firstChild?k.insert(a,k.firstChild):k.append(a)}var j,k,l,m,n,o=a.dom;j=f(g),k=j.getAll("head")[0],k||(m=j.getAll("html")[0],k=new b("head",1),m.firstChild?m.insert(k,m.firstChild,!0):m.append(k)),m=j.firstChild,e.xml_pi?(n='version="1.0"',e.docencoding&&(n+=' encoding="'+e.docencoding+'"'),7!==m.type&&(m=new b("xml",7),j.insert(m,j.firstChild,!0)),m.value=n):m&&7===m.type&&m.remove(),m=j.getAll("#doctype")[0],e.doctype?(m||(m=new b("#doctype",10),e.xml_pi?j.insert(m,j.firstChild):i(m)),m.value=e.doctype.substring(9,e.doctype.length-1)):m&&m.remove(),m=null,d.each(j.getAll("meta"),function(a){"Content-Type"===a.attr("http-equiv")&&(m=a)}),e.docencoding?(m||(m=new b("meta",1),m.attr("http-equiv","Content-Type"),m.shortEnded=!0,i(m)),m.attr("content","text/html; charset="+e.docencoding)):m&&m.remove(),m=j.getAll("title")[0],e.title?(m?m.empty():(m=new b("title",1),i(m)),m.append(new b("#text",3)).value=e.title):m&&m.remove(),d.each("keywords,description,author,copyright,robots".split(","),function(a){var c,d,f=j.getAll("meta"),g=e[a];for(c=0;c<f.length;c++)if(d=f[c],d.attr("name")===a)return void(g?d.attr("content",g):d.remove());g&&(m=new b("meta",1),m.attr("name",a),m.attr("content",g),m.shortEnded=!0,i(m))});var p={};return d.each(j.getAll("link"),function(a){"stylesheet"===a.attr("rel")&&(p[a.attr("href")]=a)}),d.each(e.stylesheets,function(a){p[a]||(m=new b("link",1),m.attr({rel:"stylesheet",text:"text/css",href:a}),m.shortEnded=!0,i(m)),delete p[a]}),d.each(p,function(a){a.remove()}),m=j.getAll("body")[0],m&&(h(m,"dir",e.langdir),h(m,"style",e.style),h(m,"vlink",e.visited_color),h(m,"link",e.link_color),h(m,"alink",e.active_color),o.setAttribs(a.getBody(),{style:e.style,dir:e.dir,vLink:e.visited_color,link:e.link_color,aLink:e.active_color})),m=j.getAll("html")[0],m&&(h(m,"lang",e.langcode),h(m,"xml:lang",e.langcode)),k.firstChild||k.remove(),l=new c({validate:!1,indent:!0,apply_source_formatting:!0,indent_before:"head,html,body,meta,title,script,link,style",indent_after:"head,html,body,meta,title,script,link,style"}).serialize(j),l.substring(0,l.indexOf("</body>"))};return{parseHeader:f,htmlToData:g,dataToHtml:h}}),g("7",["8","a"],function(a,b){var c=function(c,d){var e=b.htmlToData(c,d.get());c.windowManager.open({title:"Document properties",data:e,defaults:{type:"textbox",size:40},body:[{name:"title",label:"Title"},{name:"keywords",label:"Keywords"},{name:"description",label:"Description"},{name:"robots",label:"Robots"},{name:"author",label:"Author"},{name:"docencoding",label:"Encoding"}],onSubmit:function(f){var g=b.dataToHtml(c,a.extend(e,f.data),d.get());d.set(g)}})};return{open:c}}),g("3",["7"],function(a){var b=function(b,c){b.addCommand("mceFullPageProperties",function(){a.open(b,c)})};return{register:b}}),g("b",["8"],function(a){var b=function(b,c){return a.each(b,function(a){c=c.replace(a,function(a){return"<!--mce:protected "+escape(a)+"-->"})}),c},c=function(a){return a.replace(/<!--mce:protected ([\s\S]*?)-->/g,function(a,b){return unescape(b)})};return{protectHtml:b,unprotectHtml:c}}),g("4",["8","9","a","b"],function(a,b,c,d){var e=a.each,f=function(a){return a.replace(/<\/?[A-Z]+/g,function(a){return a.toLowerCase()})},g=function(g,i,j,k){var l,m,n,o,p,q="",r=g.dom;if(!(k.selection||(n=d.protectHtml(g.settings.protect,k.content),"raw"===k.format&&i.get()||k.source_view&&b.shouldHideInSourceView(g)))){0!==n.length||k.source_view||(n=a.trim(i.get())+"\n"+a.trim(n)+"\n"+a.trim(j.get())),n=n.replace(/<(\/?)BODY/gi,"<$1body"),l=n.indexOf("<body"),l!==-1?(l=n.indexOf(">",l),i.set(f(n.substring(0,l+1))),m=n.indexOf("</body",l),m===-1&&(m=n.length),k.content=a.trim(n.substring(l+1,m)),j.set(f(n.substring(m)))):(i.set(h(g)),j.set("\n</body>\n</html>")),o=c.parseHeader(i.get()),e(o.getAll("style"),function(a){a.firstChild&&(q+=a.firstChild.value)}),p=o.getAll("body")[0],p&&r.setAttribs(g.getBody(),{style:p.attr("style")||"",dir:p.attr("dir")||"",vLink:p.attr("vlink")||"",link:p.attr("link")||"",aLink:p.attr("alink")||""}),r.remove("fullpage_styles");var s=g.getDoc().getElementsByTagName("head")[0];q&&(r.add(s,"style",{id:"fullpage_styles"},q),p=r.get("fullpage_styles"),p.styleSheet&&(p.styleSheet.cssText=q));var t={};a.each(s.getElementsByTagName("link"),function(a){"stylesheet"===a.rel&&a.getAttribute("data-mce-fullpage")&&(t[a.href]=a)}),a.each(o.getAll("link"),function(a){var b=a.attr("href");return!b||(t[b]||"stylesheet"!==a.attr("rel")||r.add(s,"link",{rel:"stylesheet",text:"text/css",href:b,"data-mce-fullpage":"1"}),void delete t[b])}),a.each(t,function(a){a.parentNode.removeChild(a)})}},h=function(a){var c,d="",e="";if(b.getDefaultXmlPi(a)){var f=b.getDefaultEncoding(a);d+='<?xml version="1.0" encoding="'+(f?f:"ISO-8859-1")+'" ?>\n'}return d+=b.getDefaultDocType(a),d+="\n<html>\n<head>\n",(c=b.getDefaultTitle(a))&&(d+="<title>"+c+"</title>\n"),(c=b.getDefaultEncoding(a))&&(d+='<meta http-equiv="Content-Type" content="text/html; charset='+c+'" />\n'),(c=b.getDefaultFontFamily(a))&&(e+="font-family: "+c+";"),(c=b.getDefaultFontSize(a))&&(e+="font-size: "+c+";"),(c=b.getDefaultTextColor(a))&&(e+="color: "+c+";"),d+="</head>\n<body"+(e?' style="'+e+'"':"")+">\n"},i=function(c,e,f,g){g.selection||g.source_view&&b.shouldHideInSourceView(c)||(g.content=d.unprotectHtml(a.trim(e)+"\n"+a.trim(g.content)+"\n"+a.trim(f)))},j=function(a,b,c){a.on("BeforeSetContent",function(d){g(a,b,c,d)}),a.on("GetContent",function(d){i(a,b.get(),c.get(),d)})};return{setup:j}}),g("5",[],function(){var a=function(a){a.addButton("fullpage",{title:"Document properties",cmd:"mceFullPageProperties"}),a.addMenuItem("fullpage",{text:"Document properties",cmd:"mceFullPageProperties",context:"file"})};return{register:a}}),g("0",["1","2","3","4","5"],function(a,b,c,d,e){return b.add("fullpage",function(b){var f=a(""),g=a("");c.register(b,f),e.register(b),d.setup(b,f,g)}),function(){}}),d("0")()}();
|
@@ -0,0 +1,455 @@
|
|
1
|
+
(function () {
|
2
|
+
|
3
|
+
var defs = {}; // id -> {dependencies, definition, instance (possibly undefined)}
|
4
|
+
|
5
|
+
// Used when there is no 'main' module.
|
6
|
+
// The name is probably (hopefully) unique so minification removes for releases.
|
7
|
+
var register_3795 = function (id) {
|
8
|
+
var module = dem(id);
|
9
|
+
var fragments = id.split('.');
|
10
|
+
var target = Function('return this;')();
|
11
|
+
for (var i = 0; i < fragments.length - 1; ++i) {
|
12
|
+
if (target[fragments[i]] === undefined)
|
13
|
+
target[fragments[i]] = {};
|
14
|
+
target = target[fragments[i]];
|
15
|
+
}
|
16
|
+
target[fragments[fragments.length - 1]] = module;
|
17
|
+
};
|
18
|
+
|
19
|
+
var instantiate = function (id) {
|
20
|
+
var actual = defs[id];
|
21
|
+
var dependencies = actual.deps;
|
22
|
+
var definition = actual.defn;
|
23
|
+
var len = dependencies.length;
|
24
|
+
var instances = new Array(len);
|
25
|
+
for (var i = 0; i < len; ++i)
|
26
|
+
instances[i] = dem(dependencies[i]);
|
27
|
+
var defResult = definition.apply(null, instances);
|
28
|
+
if (defResult === undefined)
|
29
|
+
throw 'module [' + id + '] returned undefined';
|
30
|
+
actual.instance = defResult;
|
31
|
+
};
|
32
|
+
|
33
|
+
var def = function (id, dependencies, definition) {
|
34
|
+
if (typeof id !== 'string')
|
35
|
+
throw 'module id must be a string';
|
36
|
+
else if (dependencies === undefined)
|
37
|
+
throw 'no dependencies for ' + id;
|
38
|
+
else if (definition === undefined)
|
39
|
+
throw 'no definition function for ' + id;
|
40
|
+
defs[id] = {
|
41
|
+
deps: dependencies,
|
42
|
+
defn: definition,
|
43
|
+
instance: undefined
|
44
|
+
};
|
45
|
+
};
|
46
|
+
|
47
|
+
var dem = function (id) {
|
48
|
+
var actual = defs[id];
|
49
|
+
if (actual === undefined)
|
50
|
+
throw 'module [' + id + '] was undefined';
|
51
|
+
else if (actual.instance === undefined)
|
52
|
+
instantiate(id);
|
53
|
+
return actual.instance;
|
54
|
+
};
|
55
|
+
|
56
|
+
var req = function (ids, callback) {
|
57
|
+
var len = ids.length;
|
58
|
+
var instances = new Array(len);
|
59
|
+
for (var i = 0; i < len; ++i)
|
60
|
+
instances[i] = dem(ids[i]);
|
61
|
+
callback.apply(null, instances);
|
62
|
+
};
|
63
|
+
|
64
|
+
var ephox = {};
|
65
|
+
|
66
|
+
ephox.bolt = {
|
67
|
+
module: {
|
68
|
+
api: {
|
69
|
+
define: def,
|
70
|
+
require: req,
|
71
|
+
demand: dem
|
72
|
+
}
|
73
|
+
}
|
74
|
+
};
|
75
|
+
|
76
|
+
var define = def;
|
77
|
+
var require = req;
|
78
|
+
var demand = dem;
|
79
|
+
// this helps with minification when using a lot of global references
|
80
|
+
var defineGlobal = function (id, ref) {
|
81
|
+
define(id, [], function () { return ref; });
|
82
|
+
};
|
83
|
+
/*jsc
|
84
|
+
["tinymce.plugins.fullscreen.Plugin","ephox.katamari.api.Cell","tinymce.core.PluginManager","tinymce.plugins.fullscreen.api.Api","tinymce.plugins.fullscreen.api.Commands","tinymce.plugins.fullscreen.ui.Buttons","global!tinymce.util.Tools.resolve","tinymce.plugins.fullscreen.core.Actions","global!document","global!window","tinymce.core.dom.DOMUtils","tinymce.plugins.fullscreen.api.Events"]
|
85
|
+
jsc*/
|
86
|
+
define(
|
87
|
+
'ephox.katamari.api.Cell',
|
88
|
+
|
89
|
+
[
|
90
|
+
],
|
91
|
+
|
92
|
+
function () {
|
93
|
+
var Cell = function (initial) {
|
94
|
+
var value = initial;
|
95
|
+
|
96
|
+
var get = function () {
|
97
|
+
return value;
|
98
|
+
};
|
99
|
+
|
100
|
+
var set = function (v) {
|
101
|
+
value = v;
|
102
|
+
};
|
103
|
+
|
104
|
+
var clone = function () {
|
105
|
+
return Cell(get());
|
106
|
+
};
|
107
|
+
|
108
|
+
return {
|
109
|
+
get: get,
|
110
|
+
set: set,
|
111
|
+
clone: clone
|
112
|
+
};
|
113
|
+
};
|
114
|
+
|
115
|
+
return Cell;
|
116
|
+
}
|
117
|
+
);
|
118
|
+
|
119
|
+
defineGlobal("global!tinymce.util.Tools.resolve", tinymce.util.Tools.resolve);
|
120
|
+
/**
|
121
|
+
* ResolveGlobal.js
|
122
|
+
*
|
123
|
+
* Released under LGPL License.
|
124
|
+
* Copyright (c) 1999-2017 Ephox Corp. All rights reserved
|
125
|
+
*
|
126
|
+
* License: http://www.tinymce.com/license
|
127
|
+
* Contributing: http://www.tinymce.com/contributing
|
128
|
+
*/
|
129
|
+
|
130
|
+
define(
|
131
|
+
'tinymce.core.PluginManager',
|
132
|
+
[
|
133
|
+
'global!tinymce.util.Tools.resolve'
|
134
|
+
],
|
135
|
+
function (resolve) {
|
136
|
+
return resolve('tinymce.PluginManager');
|
137
|
+
}
|
138
|
+
);
|
139
|
+
|
140
|
+
/**
|
141
|
+
* Api.js
|
142
|
+
*
|
143
|
+
* Released under LGPL License.
|
144
|
+
* Copyright (c) 1999-2017 Ephox Corp. All rights reserved
|
145
|
+
*
|
146
|
+
* License: http://www.tinymce.com/license
|
147
|
+
* Contributing: http://www.tinymce.com/contributing
|
148
|
+
*/
|
149
|
+
|
150
|
+
define(
|
151
|
+
'tinymce.plugins.fullscreen.api.Api',
|
152
|
+
[
|
153
|
+
],
|
154
|
+
function () {
|
155
|
+
var get = function (fullscreenState) {
|
156
|
+
return {
|
157
|
+
isFullscreen: function () {
|
158
|
+
return fullscreenState.get() !== null;
|
159
|
+
}
|
160
|
+
};
|
161
|
+
};
|
162
|
+
|
163
|
+
return {
|
164
|
+
get: get
|
165
|
+
};
|
166
|
+
}
|
167
|
+
);
|
168
|
+
|
169
|
+
defineGlobal("global!document", document);
|
170
|
+
defineGlobal("global!window", window);
|
171
|
+
/**
|
172
|
+
* ResolveGlobal.js
|
173
|
+
*
|
174
|
+
* Released under LGPL License.
|
175
|
+
* Copyright (c) 1999-2017 Ephox Corp. All rights reserved
|
176
|
+
*
|
177
|
+
* License: http://www.tinymce.com/license
|
178
|
+
* Contributing: http://www.tinymce.com/contributing
|
179
|
+
*/
|
180
|
+
|
181
|
+
define(
|
182
|
+
'tinymce.core.dom.DOMUtils',
|
183
|
+
[
|
184
|
+
'global!tinymce.util.Tools.resolve'
|
185
|
+
],
|
186
|
+
function (resolve) {
|
187
|
+
return resolve('tinymce.dom.DOMUtils');
|
188
|
+
}
|
189
|
+
);
|
190
|
+
|
191
|
+
/**
|
192
|
+
* Events.js
|
193
|
+
*
|
194
|
+
* Released under LGPL License.
|
195
|
+
* Copyright (c) 1999-2017 Ephox Corp. All rights reserved
|
196
|
+
*
|
197
|
+
* License: http://www.tinymce.com/license
|
198
|
+
* Contributing: http://www.tinymce.com/contributing
|
199
|
+
*/
|
200
|
+
|
201
|
+
define(
|
202
|
+
'tinymce.plugins.fullscreen.api.Events',
|
203
|
+
[
|
204
|
+
],
|
205
|
+
function () {
|
206
|
+
var fireFullscreenStateChanged = function (editor, state) {
|
207
|
+
editor.fire('FullscreenStateChanged', { state: state });
|
208
|
+
};
|
209
|
+
|
210
|
+
return {
|
211
|
+
fireFullscreenStateChanged: fireFullscreenStateChanged
|
212
|
+
};
|
213
|
+
}
|
214
|
+
);
|
215
|
+
|
216
|
+
/**
|
217
|
+
* Actions.js
|
218
|
+
*
|
219
|
+
* Released under LGPL License.
|
220
|
+
* Copyright (c) 1999-2017 Ephox Corp. All rights reserved
|
221
|
+
*
|
222
|
+
* License: http://www.tinymce.com/license
|
223
|
+
* Contributing: http://www.tinymce.com/contributing
|
224
|
+
*/
|
225
|
+
|
226
|
+
define(
|
227
|
+
'tinymce.plugins.fullscreen.core.Actions',
|
228
|
+
[
|
229
|
+
'global!document',
|
230
|
+
'global!window',
|
231
|
+
'tinymce.core.dom.DOMUtils',
|
232
|
+
'tinymce.plugins.fullscreen.api.Events'
|
233
|
+
],
|
234
|
+
function (document, window, DOMUtils, Events) {
|
235
|
+
var DOM = DOMUtils.DOM;
|
236
|
+
|
237
|
+
var getWindowSize = function () {
|
238
|
+
var w, h, win = window, doc = document;
|
239
|
+
var body = doc.body;
|
240
|
+
|
241
|
+
// Old IE
|
242
|
+
if (body.offsetWidth) {
|
243
|
+
w = body.offsetWidth;
|
244
|
+
h = body.offsetHeight;
|
245
|
+
}
|
246
|
+
|
247
|
+
// Modern browsers
|
248
|
+
if (win.innerWidth && win.innerHeight) {
|
249
|
+
w = win.innerWidth;
|
250
|
+
h = win.innerHeight;
|
251
|
+
}
|
252
|
+
|
253
|
+
return { w: w, h: h };
|
254
|
+
};
|
255
|
+
|
256
|
+
var getScrollPos = function () {
|
257
|
+
var vp = DOM.getViewPort();
|
258
|
+
|
259
|
+
return {
|
260
|
+
x: vp.x,
|
261
|
+
y: vp.y
|
262
|
+
};
|
263
|
+
};
|
264
|
+
|
265
|
+
var setScrollPos = function (pos) {
|
266
|
+
window.scrollTo(pos.x, pos.y);
|
267
|
+
};
|
268
|
+
|
269
|
+
var toggleFullscreen = function (editor, fullscreenState) {
|
270
|
+
var body = document.body, documentElement = document.documentElement, editorContainerStyle;
|
271
|
+
var editorContainer, iframe, iframeStyle;
|
272
|
+
var fullscreenInfo = fullscreenState.get();
|
273
|
+
|
274
|
+
var resize = function () {
|
275
|
+
DOM.setStyle(iframe, 'height', getWindowSize().h - (editorContainer.clientHeight - iframe.clientHeight));
|
276
|
+
};
|
277
|
+
|
278
|
+
var removeResize = function () {
|
279
|
+
DOM.unbind(window, 'resize', resize);
|
280
|
+
};
|
281
|
+
|
282
|
+
editorContainer = editor.getContainer();
|
283
|
+
editorContainerStyle = editorContainer.style;
|
284
|
+
iframe = editor.getContentAreaContainer().firstChild;
|
285
|
+
iframeStyle = iframe.style;
|
286
|
+
|
287
|
+
if (!fullscreenInfo) {
|
288
|
+
var newFullScreenInfo = {
|
289
|
+
scrollPos: getScrollPos(),
|
290
|
+
containerWidth: editorContainerStyle.width,
|
291
|
+
containerHeight: editorContainerStyle.height,
|
292
|
+
iframeWidth: iframeStyle.width,
|
293
|
+
iframeHeight: iframeStyle.height,
|
294
|
+
resizeHandler: resize,
|
295
|
+
removeHandler: removeResize
|
296
|
+
};
|
297
|
+
|
298
|
+
iframeStyle.width = iframeStyle.height = '100%';
|
299
|
+
editorContainerStyle.width = editorContainerStyle.height = '';
|
300
|
+
|
301
|
+
DOM.addClass(body, 'mce-fullscreen');
|
302
|
+
DOM.addClass(documentElement, 'mce-fullscreen');
|
303
|
+
DOM.addClass(editorContainer, 'mce-fullscreen');
|
304
|
+
|
305
|
+
DOM.bind(window, 'resize', resize);
|
306
|
+
editor.on('remove', removeResize);
|
307
|
+
|
308
|
+
resize();
|
309
|
+
|
310
|
+
fullscreenState.set(newFullScreenInfo);
|
311
|
+
Events.fireFullscreenStateChanged(editor, true);
|
312
|
+
} else {
|
313
|
+
iframeStyle.width = fullscreenInfo.iframeWidth;
|
314
|
+
iframeStyle.height = fullscreenInfo.iframeHeight;
|
315
|
+
|
316
|
+
if (fullscreenInfo.containerWidth) {
|
317
|
+
editorContainerStyle.width = fullscreenInfo.containerWidth;
|
318
|
+
}
|
319
|
+
|
320
|
+
if (fullscreenInfo.containerHeight) {
|
321
|
+
editorContainerStyle.height = fullscreenInfo.containerHeight;
|
322
|
+
}
|
323
|
+
|
324
|
+
DOM.removeClass(body, 'mce-fullscreen');
|
325
|
+
DOM.removeClass(documentElement, 'mce-fullscreen');
|
326
|
+
DOM.removeClass(editorContainer, 'mce-fullscreen');
|
327
|
+
setScrollPos(fullscreenInfo.scrollPos);
|
328
|
+
|
329
|
+
DOM.unbind(window, 'resize', fullscreenInfo.resizeHandler);
|
330
|
+
editor.off('remove', fullscreenInfo.removeHandler);
|
331
|
+
|
332
|
+
fullscreenState.set(null);
|
333
|
+
Events.fireFullscreenStateChanged(editor, false);
|
334
|
+
}
|
335
|
+
};
|
336
|
+
|
337
|
+
return {
|
338
|
+
toggleFullscreen: toggleFullscreen
|
339
|
+
};
|
340
|
+
}
|
341
|
+
);
|
342
|
+
|
343
|
+
/**
|
344
|
+
* Commands.js
|
345
|
+
*
|
346
|
+
* Released under LGPL License.
|
347
|
+
* Copyright (c) 1999-2017 Ephox Corp. All rights reserved
|
348
|
+
*
|
349
|
+
* License: http://www.tinymce.com/license
|
350
|
+
* Contributing: http://www.tinymce.com/contributing
|
351
|
+
*/
|
352
|
+
|
353
|
+
define(
|
354
|
+
'tinymce.plugins.fullscreen.api.Commands',
|
355
|
+
[
|
356
|
+
'tinymce.plugins.fullscreen.core.Actions'
|
357
|
+
],
|
358
|
+
function (Actions) {
|
359
|
+
var register = function (editor, fullscreenState) {
|
360
|
+
editor.addCommand('mceFullScreen', function () {
|
361
|
+
Actions.toggleFullscreen(editor, fullscreenState);
|
362
|
+
});
|
363
|
+
};
|
364
|
+
|
365
|
+
return {
|
366
|
+
register: register
|
367
|
+
};
|
368
|
+
}
|
369
|
+
);
|
370
|
+
|
371
|
+
/**
|
372
|
+
* Buttons.js
|
373
|
+
*
|
374
|
+
* Released under LGPL License.
|
375
|
+
* Copyright (c) 1999-2017 Ephox Corp. All rights reserved
|
376
|
+
*
|
377
|
+
* License: http://www.tinymce.com/license
|
378
|
+
* Contributing: http://www.tinymce.com/contributing
|
379
|
+
*/
|
380
|
+
|
381
|
+
define(
|
382
|
+
'tinymce.plugins.fullscreen.ui.Buttons',
|
383
|
+
[
|
384
|
+
],
|
385
|
+
function () {
|
386
|
+
var postRender = function (editor) {
|
387
|
+
return function (e) {
|
388
|
+
var ctrl = e.control;
|
389
|
+
|
390
|
+
editor.on('FullscreenStateChanged', function (e) {
|
391
|
+
ctrl.active(e.state);
|
392
|
+
});
|
393
|
+
};
|
394
|
+
};
|
395
|
+
|
396
|
+
var register = function (editor) {
|
397
|
+
editor.addMenuItem('fullscreen', {
|
398
|
+
text: 'Fullscreen',
|
399
|
+
shortcut: 'Ctrl+Shift+F',
|
400
|
+
selectable: true,
|
401
|
+
cmd: 'mceFullScreen',
|
402
|
+
onPostRender: postRender(editor),
|
403
|
+
context: 'view'
|
404
|
+
});
|
405
|
+
|
406
|
+
editor.addButton('fullscreen', {
|
407
|
+
active: false,
|
408
|
+
tooltip: 'Fullscreen',
|
409
|
+
cmd: 'mceFullScreen',
|
410
|
+
onPostRender: postRender(editor)
|
411
|
+
});
|
412
|
+
};
|
413
|
+
|
414
|
+
return {
|
415
|
+
register: register
|
416
|
+
};
|
417
|
+
}
|
418
|
+
);
|
419
|
+
|
420
|
+
/**
|
421
|
+
* Plugin.js
|
422
|
+
*
|
423
|
+
* Released under LGPL License.
|
424
|
+
* Copyright (c) 1999-2017 Ephox Corp. All rights reserved
|
425
|
+
*
|
426
|
+
* License: http://www.tinymce.com/license
|
427
|
+
* Contributing: http://www.tinymce.com/contributing
|
428
|
+
*/
|
429
|
+
|
430
|
+
define(
|
431
|
+
'tinymce.plugins.fullscreen.Plugin',
|
432
|
+
[
|
433
|
+
'ephox.katamari.api.Cell',
|
434
|
+
'tinymce.core.PluginManager',
|
435
|
+
'tinymce.plugins.fullscreen.api.Api',
|
436
|
+
'tinymce.plugins.fullscreen.api.Commands',
|
437
|
+
'tinymce.plugins.fullscreen.ui.Buttons'
|
438
|
+
],
|
439
|
+
function (Cell, PluginManager, Api, Commands, Buttons) {
|
440
|
+
PluginManager.add('fullscreen', function (editor) {
|
441
|
+
var fullscreenState = Cell(null);
|
442
|
+
|
443
|
+
Commands.register(editor, fullscreenState);
|
444
|
+
Buttons.register(editor);
|
445
|
+
|
446
|
+
editor.addShortcut('Ctrl+Shift+F', '', 'mceFullScreen');
|
447
|
+
|
448
|
+
return Api.get(fullscreenState);
|
449
|
+
});
|
450
|
+
|
451
|
+
return function () { };
|
452
|
+
}
|
453
|
+
);
|
454
|
+
dem('tinymce.plugins.fullscreen.Plugin')();
|
455
|
+
})();
|