-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
111 changed files
with
22,518 additions
and
542 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
application/views/scripts/javascripts/vendor/tinymce/icons/default/icons.min.js
Large diffs are not rendered by default.
Oops, something went wrong.
92 changes: 91 additions & 1 deletion
92
application/views/scripts/javascripts/vendor/tinymce/jquery.tinymce.min.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,91 @@ | ||
!function(){var f,c,u,p,d,s=[];d="undefined"!=typeof global?global:window,p=d.jQuery;var v=function(){return d.tinymce};p.fn.tinymce=function(o){var e,t,i,l=this,r="";if(!l.length)return l;if(!o)return v()?v().get(l[0].id):null;l.css("visibility","hidden");var n=function(){var a=[],c=0;u||(m(),u=!0),l.each(function(e,t){var n,i=t.id,r=o.oninit;i||(t.id=i=v().DOM.uniqueId()),v().get(i)||(n=v().createEditor(i,o),a.push(n),n.on("init",function(){var e,t=r;l.css("visibility",""),r&&++c==a.length&&("string"==typeof t&&(e=-1===t.indexOf(".")?null:v().resolve(t.replace(/\.\w+$/,"")),t=v().resolve(t)),t.apply(e||v(),a))}))}),p.each(a,function(e,t){t.render()})};if(d.tinymce||c||!(e=o.script_url))1===c?s.push(n):n();else{c=1,t=e.substring(0,e.lastIndexOf("/")),-1!=e.indexOf(".min")&&(r=".min"),d.tinymce=d.tinyMCEPreInit||{base:t,suffix:r},-1!=e.indexOf("gzip")&&(i=o.language||"en",e=e+(/\?/.test(e)?"&":"?")+"js=true&core=true&suffix="+escape(r)+"&themes="+escape(o.theme||"modern")+"&plugins="+escape(o.plugins||"")+"&languages="+(i||""),d.tinyMCE_GZ||(d.tinyMCE_GZ={start:function(){var n=function(e){v().ScriptLoader.markDone(v().baseURI.toAbsolute(e))};n("langs/"+i+".js"),n("themes/"+o.theme+"/theme"+r+".js"),n("themes/"+o.theme+"/langs/"+i+".js"),p.each(o.plugins.split(","),function(e,t){t&&(n("plugins/"+t+"/plugin"+r+".js"),n("plugins/"+t+"/langs/"+i+".js"))})},end:function(){}}));var a=document.createElement("script");a.type="text/javascript",a.onload=a.onreadystatechange=function(e){e=e||window.event,2===c||"load"!=e.type&&!/complete|loaded/.test(a.readyState)||(v().dom.Event.domLoaded=1,c=2,o.script_loaded&&o.script_loaded(),n(),p.each(s,function(e,t){t()}))},a.src=e,document.body.appendChild(a)}return l},p.extend(p.expr[":"],{tinymce:function(e){var t;return!!(e.id&&"tinymce"in d&&(t=v().get(e.id))&&t.editorManager===v())}});var m=function(){var r=function(e){"remove"===e&&this.each(function(e,t){var n=l(t);n&&n.remove()}),this.find("span.mceEditor,div.mceEditor").each(function(e,t){var n=v().get(t.id.replace(/_parent$/,""));n&&n.remove()})},o=function(i){var e,t=this;if(null!=i)r.call(t),t.each(function(e,t){var n;(n=v().get(t.id))&&n.setContent(i)});else if(0<t.length&&(e=v().get(t[0].id)))return e.getContent()},l=function(e){var t=null;return e&&e.id&&d.tinymce&&(t=v().get(e.id)),t},u=function(e){return!!(e&&e.length&&d.tinymce&&e.is(":tinymce"))},s={};p.each(["text","html","val"],function(e,t){var a=s[t]=p.fn[t],c="text"===t;p.fn[t]=function(e){var t=this;if(!u(t))return a.apply(t,arguments);if(e!==f)return o.call(t.filter(":tinymce"),e),a.apply(t.not(":tinymce"),arguments),t;var i="",r=arguments;return(c?t:t.eq(0)).each(function(e,t){var n=l(t);i+=n?c?n.getContent().replace(/<(?:"[^"]*"|'[^']*'|[^'">])*>/g,""):n.getContent({save:!0}):a.apply(p(t),r)}),i}}),p.each(["append","prepend"],function(e,t){var n=s[t]=p.fn[t],r="prepend"===t;p.fn[t]=function(i){var e=this;return u(e)?i!==f?("string"==typeof i&&e.filter(":tinymce").each(function(e,t){var n=l(t);n&&n.setContent(r?i+n.getContent():n.getContent()+i)}),n.apply(e.not(":tinymce"),arguments),e):void 0:n.apply(e,arguments)}}),p.each(["remove","replaceWith","replaceAll","empty"],function(e,t){var n=s[t]=p.fn[t];p.fn[t]=function(){return r.call(this,t),n.apply(this,arguments)}}),s.attr=p.fn.attr,p.fn.attr=function(e,t){var n=this,i=arguments;if(!e||"value"!==e||!u(n))return s.attr.apply(n,i);if(t!==f)return o.call(n.filter(":tinymce"),t),s.attr.apply(n.not(":tinymce"),i),n;var r=n[0],a=l(r);return a?a.getContent({save:!0}):s.attr.apply(p(r),i)}}}(); | ||
/** | ||
* Copyright (c) Tiny Technologies, Inc. All rights reserved. | ||
* Licensed under the LGPL or a commercial license. | ||
* For LGPL see License.txt in the project root for license information. | ||
* For commercial licenses see https://www.tiny.cloud/ | ||
*/ | ||
/** | ||
* Jquery integration plugin. | ||
* | ||
* @class tinymce.core.JqueryIntegration | ||
* @private | ||
*/ | ||
!function(){function f(){ | ||
// Reference to tinymce needs to be lazily evaluated since tinymce | ||
// might be loaded through the compressor or other means | ||
return d.tinymce}var p,c,u,s=[],d="undefined"!=typeof global?global:window,m=d.jQuery;m.fn.tinymce=function(o){var e,t,i,n,l=this,r=""; | ||
// No match then just ignore the call | ||
return l.length? | ||
// Get editor instance | ||
o?(l.css("visibility","hidden"), | ||
// Load TinyMCE on demand, if we need to | ||
d.tinymce||c||!(e=o.script_url)? | ||
// Delay the init call until tinymce is loaded | ||
1===c?s.push(a):a():(c=1,t=e.substring(0,e.lastIndexOf("/")), | ||
// Check if it's a dev/src version they want to load then | ||
// make sure that all plugins, themes etc are loaded in source mode as well | ||
-1!=e.indexOf(".min")&&(r=".min"), | ||
// Setup tinyMCEPreInit object this will later be used by the TinyMCE | ||
// core script to locate other resources like CSS files, dialogs etc | ||
// You can also predefined a tinyMCEPreInit object and then it will use that instead | ||
d.tinymce=d.tinyMCEPreInit||{base:t,suffix:r}, | ||
// url contains gzip then we assume it's a compressor | ||
-1!=e.indexOf("gzip")&&(i=o.language||"en",e=e+(/\?/.test(e)?"&":"?")+"js=true&core=true&suffix="+escape(r)+"&themes="+escape(o.theme||"modern")+"&plugins="+escape(o.plugins||"")+"&languages="+(i||""), | ||
// Check if compressor script is already loaded otherwise setup a basic one | ||
d.tinyMCE_GZ||(d.tinyMCE_GZ={start:function(){function n(e){f().ScriptLoader.markDone(f().baseURI.toAbsolute(e))} | ||
// Add core languages | ||
n("langs/"+i+".js"), | ||
// Add themes with languages | ||
n("themes/"+o.theme+"/theme"+r+".js"),n("themes/"+o.theme+"/langs/"+i+".js"), | ||
// Add plugins with languages | ||
m.each(o.plugins.split(","),function(e,t){t&&(n("plugins/"+t+"/plugin"+r+".js"),n("plugins/"+t+"/langs/"+i+".js"))})},end:function(){}})),(n=document.createElement("script")).type="text/javascript",n.onload=n.onreadystatechange=function(e){e=e||window.event,2===c||"load"!=e.type&&!/complete|loaded/.test(n.readyState)||(f().dom.Event.domLoaded=1,c=2, | ||
// Execute callback after mainscript has been loaded and before the initialization occurs | ||
o.script_loaded&&o.script_loaded(),a(),m.each(s,function(e,t){t()}))},n.src=e,document.body.appendChild(n)),l):f()?f().get(l[0].id):null:l;function a(){var a=[],c=0; | ||
// Apply patches to the jQuery object, only once | ||
u||(v(),u=!0), | ||
// Create an editor instance for each matched node | ||
l.each(function(e,t){var n,i=t.id,r=o.oninit; | ||
// Generate unique id for target element if needed | ||
i||(t.id=i=f().DOM.uniqueId()), | ||
// Only init the editor once | ||
f().get(i)||( | ||
// Create editor instance and render it | ||
n=f().createEditor(i,o),a.push(n),n.on("init",function(){var e,t=r;l.css("visibility",""), | ||
// Run this if the oninit setting is defined | ||
// this logic will fire the oninit callback ones each | ||
// matched editor instance is initialized | ||
r&&++c==a.length&&("string"==typeof t&&(e=-1===t.indexOf(".")?null:f().resolve(t.replace(/\.\w+$/,"")),t=f().resolve(t)), | ||
// Call the oninit function with the object | ||
t.apply(e||f(),a))}))}), | ||
// Render the editor instances in a separate loop since we | ||
// need to have the full editors array used in the onInit calls | ||
m.each(a,function(e,t){t.render()})}}, | ||
// Add :tinymce pseudo selector this will select elements that has been converted into editor instances | ||
// it's now possible to use things like $('*:tinymce') to get all TinyMCE bound elements. | ||
m.extend(m.expr[":"],{tinymce:function(e){var t;return!!(e.id&&"tinymce"in d&&(t=f().get(e.id))&&t.editorManager===f())}}); | ||
// This function patches internal jQuery functions so that if | ||
// you for example remove an div element containing an editor it's | ||
// automatically destroyed by the TinyMCE API | ||
var v=function(){function r(e){ | ||
// If the function is remove | ||
"remove"===e&&this.each(function(e,t){var n=u(t);n&&n.remove()}),this.find("span.mceEditor,div.mceEditor").each(function(e,t){var n=f().get(t.id.replace(/_parent$/,""));n&&n.remove()})}function o(i){var e,t=this; | ||
// Handle set value | ||
/*jshint eqnull:true */if(null!=i)r.call(t), | ||
// Saves the contents before get/set value of textarea/div | ||
t.each(function(e,t){var n;(n=f().get(t.id))&&n.setContent(i)});else if(0<t.length&&(e=f().get(t[0].id)))return e.getContent()}function l(e){return e&&e.length&&d.tinymce&&e.is(":tinymce")} | ||
// Removes any child editor instances by looking for editor wrapper elements | ||
var u=function(e){var t=null;return e&&e.id&&d.tinymce?f().get(e.id):t},s={}; | ||
// Loads or saves contents from/to textarea if the value | ||
// argument is defined it will set the TinyMCE internal contents | ||
// Patch some setter/getter functions these will | ||
// now be able to set/get the contents of editor instances for | ||
// example $('#editorid').html('Content'); will update the TinyMCE iframe instance | ||
m.each(["text","html","val"],function(e,t){var a=s[t]=m.fn[t],c="text"===t;m.fn[t]=function(e){var t=this;if(!l(t))return a.apply(t,arguments);if(e!==p)return o.call(t.filter(":tinymce"),e),a.apply(t.not(":tinymce"),arguments),t;// return original set for chaining | ||
var i="",r=arguments;return(c?t:t.eq(0)).each(function(e,t){var n=u(t);i+=n?c?n.getContent().replace(/<(?:"[^"]*"|'[^']*'|[^'">])*>/g,""):n.getContent({save:!0}):a.apply(m(t),r)}),i}}), | ||
// Makes it possible to use $('#id').append("content"); to append contents to the TinyMCE editor iframe | ||
m.each(["append","prepend"],function(e,t){var n=s[t]=m.fn[t],r="prepend"===t;m.fn[t]=function(i){var e=this;return l(e)?i!==p?("string"==typeof i&&e.filter(":tinymce").each(function(e,t){var n=u(t);n&&n.setContent(r?i+n.getContent():n.getContent()+i)}),n.apply(e.not(":tinymce"),arguments),e):void 0:n.apply(e,arguments)}}), | ||
// Makes sure that the editor instance gets properly destroyed when the parent element is removed | ||
m.each(["remove","replaceWith","replaceAll","empty"],function(e,t){var n=s[t]=m.fn[t];m.fn[t]=function(){return r.call(this,t),n.apply(this,arguments)}}),s.attr=m.fn.attr, | ||
// Makes sure that $('#tinymce_id').attr('value') gets the editors current HTML contents | ||
m.fn.attr=function(e,t){var n=this,i=arguments;if(!e||"value"!==e||!l(n))return s.attr.apply(n,i);if(t!==p)return o.call(n.filter(":tinymce"),t),s.attr.apply(n.not(":tinymce"),i),n;// return original set for chaining | ||
var r=n[0],a=u(r);return a?a.getContent({save:!0}):s.attr.apply(m(r),i)}}}(); |
File renamed without changes.
10 changes: 9 additions & 1 deletion
10
application/views/scripts/javascripts/vendor/tinymce/plugins/advlist/plugin.min.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
10 changes: 9 additions & 1 deletion
10
application/views/scripts/javascripts/vendor/tinymce/plugins/anchor/plugin.min.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.