X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fceph%2Fsrc%2Fpybind%2Fmgr%2Fdashboard%2Fstatic%2FAdminLTE-2.3.7%2Fplugins%2Fckeditor%2Fsamples%2Fjs%2Fsample.js;fp=src%2Fceph%2Fsrc%2Fpybind%2Fmgr%2Fdashboard%2Fstatic%2FAdminLTE-2.3.7%2Fplugins%2Fckeditor%2Fsamples%2Fjs%2Fsample.js;h=0000000000000000000000000000000000000000;hb=7da45d65be36d36b880cc55c5036e96c24b53f00;hp=80f1c2b89d944fadcfdcaf4e05179c1efa2709af;hpb=691462d09d0987b47e112d6ee8740375df3c51b2;p=stor4nfv.git diff --git a/src/ceph/src/pybind/mgr/dashboard/static/AdminLTE-2.3.7/plugins/ckeditor/samples/js/sample.js b/src/ceph/src/pybind/mgr/dashboard/static/AdminLTE-2.3.7/plugins/ckeditor/samples/js/sample.js deleted file mode 100644 index 80f1c2b..0000000 --- a/src/ceph/src/pybind/mgr/dashboard/static/AdminLTE-2.3.7/plugins/ckeditor/samples/js/sample.js +++ /dev/null @@ -1,53 +0,0 @@ -/** - * Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. - * For licensing, see LICENSE.md or http://ckeditor.com/license - */ - -/* exported initSample */ - -if ( CKEDITOR.env.ie && CKEDITOR.env.version < 9 ) - CKEDITOR.tools.enableHtml5Elements( document ); - -// The trick to keep the editor in the sample quite small -// unless user specified own height. -CKEDITOR.config.height = 150; -CKEDITOR.config.width = 'auto'; - -var initSample = ( function() { - var wysiwygareaAvailable = isWysiwygareaAvailable(), - isBBCodeBuiltIn = !!CKEDITOR.plugins.get( 'bbcode' ); - - return function() { - var editorElement = CKEDITOR.document.getById( 'editor' ); - - // :((( - if ( isBBCodeBuiltIn ) { - editorElement.setHtml( - 'Hello world!\n\n' + - 'I\'m an instance of [url=http://ckeditor.com]CKEditor[/url].' - ); - } - - // Depending on the wysiwygare plugin availability initialize classic or inline editor. - if ( wysiwygareaAvailable ) { - CKEDITOR.replace( 'editor' ); - } else { - editorElement.setAttribute( 'contenteditable', 'true' ); - CKEDITOR.inline( 'editor' ); - - // TODO we can consider displaying some info box that - // without wysiwygarea the classic editor may not work. - } - }; - - function isWysiwygareaAvailable() { - // If in development mode, then the wysiwygarea must be available. - // Split REV into two strings so builder does not replace it :D. - if ( CKEDITOR.revision == ( '%RE' + 'V%' ) ) { - return true; - } - - return !!CKEDITOR.plugins.get( 'wysiwygarea' ); - } -} )(); -