Built motion from commit 1038d87.|0.0.141
[motion.git] / public / assets / plugins / ckeditor / samples / old / sample.js
index cad4f0f..ebc077f 100644 (file)
@@ -1,50 +1,50 @@
-\feff/**
- * Copyright (c) 2003-2016, 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( '<code>' + requires[ i ] + '</code>' );
-                       }
-
-                       if ( missing.length ) {
-                               var warn = CKEDITOR.dom.element.createFromHtml(
-                                       '<div class="warning">' +
-                                               '<span>To fully experience this demo, the ' + missing.join( ', ' ) + ' plugin' + ( missing.length > 1 ? 's are' : ' is' ) + ' required.</span>' +
-                                       '</div>'
-                               );
-                               warn.insertBefore( editor.container );
-                       }
-               }
-
-               // Set icons.
-               var doc = new CKEDITOR.dom.document( document ),
-                       icons = doc.find( '.button_icon' );
-
-               for ( i = 0; i < icons.count(); i++ ) {
-                       var icon = icons.getItem( i ),
-                               name = icon.getAttribute( 'data-icon' ),
-                               style = CKEDITOR.skin.getIconStyle( name, ( CKEDITOR.lang.dir == 'rtl' ) );
-
-                       icon.addClass( 'cke_button_icon' );
-                       icon.addClass( 'cke_button__' + name + '_icon' );
-                       icon.setAttribute( 'style', style );
-                       icon.setStyle( 'float', 'none' );
-
-               }
-       } );
-} )();
+\feff/**\r
+ * Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.\r
+ * For licensing, see LICENSE.md or http://ckeditor.com/license\r
+ */\r
+\r
+// Tool scripts for the sample pages.\r
+// This file can be ignored and is not required to make use of CKEditor.\r
+\r
+( function() {\r
+       CKEDITOR.on( 'instanceReady', function( ev ) {\r
+               // Check for sample compliance.\r
+               var editor = ev.editor,\r
+                       meta = CKEDITOR.document.$.getElementsByName( 'ckeditor-sample-required-plugins' ),\r
+                       requires = meta.length ? CKEDITOR.dom.element.get( meta[ 0 ] ).getAttribute( 'content' ).split( ',' ) : [],\r
+                       missing = [],\r
+                       i;\r
+\r
+               if ( requires.length ) {\r
+                       for ( i = 0; i < requires.length; i++ ) {\r
+                               if ( !editor.plugins[ requires[ i ] ] )\r
+                                       missing.push( '<code>' + requires[ i ] + '</code>' );\r
+                       }\r
+\r
+                       if ( missing.length ) {\r
+                               var warn = CKEDITOR.dom.element.createFromHtml(\r
+                                       '<div class="warning">' +\r
+                                               '<span>To fully experience this demo, the ' + missing.join( ', ' ) + ' plugin' + ( missing.length > 1 ? 's are' : ' is' ) + ' required.</span>' +\r
+                                       '</div>'\r
+                               );\r
+                               warn.insertBefore( editor.container );\r
+                       }\r
+               }\r
+\r
+               // Set icons.\r
+               var doc = new CKEDITOR.dom.document( document ),\r
+                       icons = doc.find( '.button_icon' );\r
+\r
+               for ( i = 0; i < icons.count(); i++ ) {\r
+                       var icon = icons.getItem( i ),\r
+                               name = icon.getAttribute( 'data-icon' ),\r
+                               style = CKEDITOR.skin.getIconStyle( name, ( CKEDITOR.lang.dir == 'rtl' ) );\r
+\r
+                       icon.addClass( 'cke_button_icon' );\r
+                       icon.addClass( 'cke_button__' + name + '_icon' );\r
+                       icon.setAttribute( 'style', style );\r
+                       icon.setStyle( 'float', 'none' );\r
+\r
+               }\r
+       } );\r
+} )();\r