/** * @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. * For licensing, see https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.editorConfig = function( config ) { // config.skin = 'office2013'; config.language = 'uk'; config.uiColor = '#ffffff'; config.height = 250; config.toolbarCanCollapse = true; // Define changes to default configuration here. For example: // config.language = 'fr'; // config.uiColor = '#AADC6E'; }; CKEDITOR.on("instanceReady", function(event) { event.editor.on("beforeCommandExec", function(event) { // Show the paste dialog for the paste buttons and right-click paste if (event.data.name == "paste") { event.editor._.forcePasteDialog = true; } // Don't show the paste dialog for Ctrl+Shift+V if (event.data.name == "pastetext" && event.data.commandData.from == "keystrokeHandler") { event.cancel(); } }) }); CKEDITOR.plugins.registered['save']= { icons: 'save', // %REMOVE_LINE_CORE% hidpi: true, // %REMOVE_LINE_CORE% init : function( editor ) { var command = editor.addCommand( 'save', { modes : { wysiwyg:1, source:1 }, exec : function( editor ) { var fo=editor.element.$.form; editor.updateElement(); rxsubmit(fo); } } ); editor.ui.addButton( 'Save',{ label : 'Зберегти', command : 'save', toolbar: 'document,10' }); } };