%PDF- %PDF-
Direktori : /home/opti/workflow/src/public/app-assets/js/scripts/editors/ |
Current File : /home/opti/workflow/src/public/app-assets/js/scripts/editors/editor-ckeditor.min.js |
/*! * stack-admin-theme (https://pixinvent.com/bootstrap-admin-template/stack) * Copyright 2018 PIXINVENT * Licensed under the Themeforest Standard Licenses */ !function(window,document,$){"use strict";function toggleReadOnly(isReadOnly){editor_readonly.setReadOnly(isReadOnly)}var editor=CKEDITOR.instances.ckeditor;editor&&editor.destroy(!0),CKEDITOR.replace("ckeditor",{height:"350px",extraPlugins:"forms"});var editor_readonly=CKEDITOR.replace("ckeditor-readonly",{height:"350px"});CKEDITOR.on("instanceReady",function(ev){editor=ev.editor_readonly,document.getElementById("readOnlyOn").style.display="",editor_readonly.on("readOnly",function(){document.getElementById("readOnlyOn").style.display=this.readOnly?"none":"",document.getElementById("readOnlyOff").style.display=this.readOnly?"":"none"})}),document.getElementById("readOnlyOn").onclick=function(){toggleReadOnly()},document.getElementById("readOnlyOff").onclick=function(){toggleReadOnly(!1)},editor=CKEDITOR.replace("ckeditor-color",{height:"350px",uiColor:"#CCEAEE"}),editor=CKEDITOR.replace("ckeditor-config",{height:"350px",enterMode:CKEDITOR.ENTER_P,shiftEnterMode:CKEDITOR.ENTER_BR}),CKEDITOR.replace("ckeditor-language",{extraPlugins:"language",language_list:["ar:Arabic:rtl","fr:French","he:Hebrew:rtl","es:Spanish"],height:350});var introduction=document.getElementById("ckeditor-inline");introduction.setAttribute("contenteditable",!0),editor=CKEDITOR.inline("ckeditor-inline",{extraAllowedContent:"a(documentation);abbr[title];code",removePlugins:"stylescombo",extraPlugins:"sourcedialog"})}(window,document,jQuery);