Добро пожаловать на сайт SEDBY

Файл config.js из комплекта CKEditor 4

Файл config.js из комплекта CKEditor 4

/**
* @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see https://ckeditor.com/legal/ckeditor-oss-license
*/

CKEDITOR.editorConfig = function( config ) {
	// Define changes to default configuration here.
	// For complete reference see:
	// https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_config.html

	config.versionCheck = false;

	config.toolbar = 'Full';
	config.extraPlugins = 'more,oembed,syntaxhighlight,codemirror';

	// It has a bug in FireFox
	config.removePlugins = 'emoji';

	// config.allowedContent = true; // disable ACF

	// CKEditor toolbar sets for Cotonti
	config.toolbar_Full = [
		['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],
		['Cut','Copy','Paste','PasteText','PasteFromWord','-','Print', 'SpellChecker', 'Scayt'],
		['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
		['Image','oembed','Table','HorizontalRule','Smiley','EmojiPanel','SpecialChar','PageBreak'],
		['Maximize', 'ShowBlocks','-', 'Source', '-', 'About'],
		'/',
		['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'],
		['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
		['Link','Unlink','Anchor','More','Syntaxhighlight'],
		['Styles','Format'],
		['TextColor','BGColor']
	];

	config.toolbar_Medium = [
		['Bold','Italic','Underline','Strike'],
		['NumberedList','BulletedList','-','Blockquote','Syntaxhighlight'],
		['Image','Link','Unlink','Anchor','Smiley','EmojiPanel'],
		['TextColor','BGColor'],
		['Cut','Copy','Paste','PasteText','Scayt'],
		['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],['Source']
	];

	config.toolbar_Basic = [
		['Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink']
	];

	// Remove some buttons provided by the standard plugins, which are
	// not needed in the Standard(s) toolbar.
	config.removeButtons = 'Print,SpellChecker,Scayt,Smiley,EmojiPanel,PageBreak,About,oembed';

	// Set the most common block elements.
	// config.format_tags = 'p;h1;h2;h3;h4;pre';
	config.format_tags = 'p;h2;h3;h4';

	// Simplify the dialog windows.
	config.removeDialogTabs = 'image:advanced;link:advanced';

	config.allowedContent = {
		$1: {
			elements: CKEDITOR.dtd,
			attributes: true,
			styles: true,
			classes: true
		}
	};

	config.disallowedContent = 'table[cellpadding, cellspacing, border, width, align, summary]{*}; img[height, width, align]{*}';
};
  • Создан: 08.01.26 @ 01:06
  • Будет удален: никогда
  • Просмотры сниппета: 59
  • Тип кода: JavaScript
  • Владелец: admin
Блок пользователя
Регистрация на нашем сайте позволит вам общаться на форумах и получить доступ к другому полезному функционалу
Вы вошли как Гость