Index: lams_central/web/ckeditor/plugins/editorplaceholder/plugin.js =================================================================== diff -u --- lams_central/web/ckeditor/plugins/editorplaceholder/plugin.js (revision 0) +++ lams_central/web/ckeditor/plugins/editorplaceholder/plugin.js (revision c794efa404cbbeb22ec188c60877b26a0d9d31d0) @@ -0,0 +1 @@ +!function(){CKEDITOR.plugins.add("editorplaceholder",{isSupportedEnvironment:function(){return!CKEDITOR.env.ie||CKEDITOR.env.version>=9},onLoad:function(){CKEDITOR.addCss(CKEDITOR.plugins.editorplaceholder.styles)},init:function(e){this.isSupportedEnvironment()&&e.config.editorplaceholder&&function(e,t){CKEDITOR.tools.array.forEach(t,function(t){e.on(t,o,null,{editor:e})})}(e,["contentDom","focus","blur","change"])}});var e="data-cke-editorplaceholder";function o(o){var t=o.listenerData.editor,n=t.focusManager.hasFocus,i=t.editable(),r=t.config.editorplaceholder;if(!function(e){var o=e.config.fullPage,t=e.getData();if(o){var n=t.match(/((?:.|[\n\r])*?)<\/body>/i);n&&n.length>1&&(t=n[1])}return 0===t.length}(t)||n)return i.removeAttribute(e);i.setAttribute(e,r)}CKEDITOR.plugins.editorplaceholder={styles:"["+e+"]::before {position: absolute;opacity: .8;color: #aaa;content: attr( "+e+" );}.cke_wysiwyg_div["+e+"]::before {margin-top: 1em;}"},CKEDITOR.config.editorplaceholder=""}(); \ No newline at end of file