X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=js%2Fckeditor%2Fsamples%2Fold%2Fsample.js;fp=js%2Fckeditor%2Fsamples%2Fold%2Fsample.js;h=59b64eee2fc50b87215d2befeea84c94a08a0c57;hb=53593baa211863fbf66540cf1bcc36c8fb37257f;hp=0000000000000000000000000000000000000000;hpb=deb4d2dbb676d7d6f69dfe7815d6e0cb09bd4a44;p=kivitendo-erp.git
diff --git a/js/ckeditor/samples/old/sample.js b/js/ckeditor/samples/old/sample.js
new file mode 100644
index 000000000..59b64eee2
--- /dev/null
+++ b/js/ckeditor/samples/old/sample.js
@@ -0,0 +1,50 @@
+/**
+ * Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
+ * For licensing, see LICENSE.md or http://ckeditor.com/license
+ */
+
+// Tool scripts for the sample pages.
+// This file can be ignored and is not required to make use of CKEditor.
+
+( function() {
+ CKEDITOR.on( 'instanceReady', function( ev ) {
+ // Check for sample compliance.
+ var editor = ev.editor,
+ meta = CKEDITOR.document.$.getElementsByName( 'ckeditor-sample-required-plugins' ),
+ requires = meta.length ? CKEDITOR.dom.element.get( meta[ 0 ] ).getAttribute( 'content' ).split( ',' ) : [],
+ missing = [],
+ i;
+
+ if ( requires.length ) {
+ for ( i = 0; i < requires.length; i++ ) {
+ if ( !editor.plugins[ requires[ i ] ] )
+ missing.push( '' + requires[ i ] + '
' );
+ }
+
+ if ( missing.length ) {
+ var warn = CKEDITOR.dom.element.createFromHtml(
+ '