diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-03-15 15:05:42 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-03-15 15:05:42 -0300 |
commit | 82ca8e9f8839b98a5770a90027adcecbe603d06f (patch) | |
tree | 0f8e599218b8bcf1bb84d1defdeb8b5dd31b8a14 /mod/ckeditor/vendors/ckeditor/samples/sample.js | |
parent | ed3335df218dca6aa14f1686454b3e265339b729 (diff) | |
parent | 20f9884f9a52e810d7e3cdbdd92eabc64812e097 (diff) | |
download | elgg-82ca8e9f8839b98a5770a90027adcecbe603d06f.tar.gz elgg-82ca8e9f8839b98a5770a90027adcecbe603d06f.tar.bz2 |
Merge commit '20f9884f9a52e810d7e3cdbdd92eabc64812e097' as 'mod/ckeditor'
Diffstat (limited to 'mod/ckeditor/vendors/ckeditor/samples/sample.js')
-rw-r--r-- | mod/ckeditor/vendors/ckeditor/samples/sample.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mod/ckeditor/vendors/ckeditor/samples/sample.js b/mod/ckeditor/vendors/ckeditor/samples/sample.js new file mode 100644 index 000000000..621de3259 --- /dev/null +++ b/mod/ckeditor/vendors/ckeditor/samples/sample.js @@ -0,0 +1,5 @@ +/* + Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. + For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +(function(){CKEDITOR.on("instanceReady",function(b){var b=b.editor,a=CKEDITOR.document.$.getElementsByName("ckeditor-sample-required-plugins"),a=a.length?CKEDITOR.dom.element.get(a[0]).getAttribute("content").split(","):[],c=[];if(a.length){for(var d=0;d<a.length;d++)b.plugins[a[d]]||c.push("<code>"+a[d]+"</code>");c.length&&CKEDITOR.dom.element.createFromHtml('<div class="warning"><span>To fully experience this demo, the '+c.join(", ")+" plugin"+(1<c.length?"s are":" is")+" required.</span></div>").insertBefore(b.container)}})})();
\ No newline at end of file |