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

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

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

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

// This file contains style definitions that can be used by CKEditor plugins.
//
// The most common use for it is the "stylescombo" plugin which shows the Styles drop-down
// list containing all styles in the editor toolbar. Other plugins, like
// the "div" plugin, use a subset of the styles for their features.
//
// If you do not have plugins that depend on this file in your editor build, you can simply
// ignore it. Otherwise it is strongly recommended to customize this file to match your
// website requirements and design properly.
//
// For more information refer to: https://ckeditor.com/docs/ckeditor4/latest/guide/dev_styles.html#style-rules

CKEDITOR.stylesSet.add( 'default', [
	/* Block styles */

	// These styles are already available in the "Format" drop-down list ("format" plugin),
	// so they are not needed here by default. You may enable them to avoid
	// placing the "Format" combo in the toolbar, maintaining the same features.
	/*
	{ name: 'Paragraph',		element: 'p' },
	{ name: 'Heading 1',		element: 'h1' },
	{ name: 'Heading 2',		element: 'h2' },
	{ name: 'Heading 3',		element: 'h3' },
	{ name: 'Heading 4',		element: 'h4' },
	{ name: 'Heading 5',		element: 'h5' },
	{ name: 'Heading 6',		element: 'h6' },
	{ name: 'Preformatted Text',element: 'pre' },
	{ name: 'Address',			element: 'address' },
	*/

	{ name: 'Alert Info', element: 'div', attributes: { 'class': 'alert alert-info' } },
	{ name: 'Alert Warning', element: 'div', attributes: { 'class': 'alert alert-warning' } },
	{ name: 'Alert Danger', element: 'div', attributes: { 'class': 'alert alert-danger' } },

	{ name: 'Subtitle Div', element: 'div', attributes: { 'class': 'subtitle' } },

	/* Inline styles */

	// These are core styles available as toolbar buttons. You may opt enabling
	// some of them in the Styles drop-down list, removing them from the toolbar.
	// (This requires the "stylescombo" plugin.)
	/*
	{ name: 'Strong',			element: 'strong', overrides: 'b' },
	{ name: 'Emphasis',			element: 'em'	, overrides: 'i' },
	{ name: 'Underline',		element: 'u' },
	{ name: 'Strikethrough',	element: 'strike' },
	{ name: 'Subscript',		element: 'sub' },
	{ name: 'Superscript',		element: 'sup' },
	*/

	// { name: 'Marker',			element: 'span', attributes: { 'class': 'marker' } },

	{ name: 'Computer Code', element: 'code' },

	{ name: 'Small', element: 'small' },
	{ name: 'Deleted Text', element: 'del' },
	{ name: 'Inserted Text', element: 'ins' },

	{ name: 'Keyboard Phrase', element: 'kbd' },
	{ name: 'Sample Text', element: 'samp' },
	{ name: 'Variable', element: 'var' },

	{ name: 'Cited Work', element: 'cite' },
	{ name: 'Inline Quotation', element: 'q' },

	// { name: 'Language: RTL',	element: 'span', attributes: { 'dir': 'rtl' } },
	// { name: 'Language: LTR',	element: 'span', attributes: { 'dir': 'ltr' } },

	/* Object styles */

	// {
	// 	name: 'Styled Image (left)',
	// 	element: 'img',
	// 	attributes: { 'class': 'left' }
	// },
	//
	// {
	// 	name: 'Styled Image (right)',
	// 	element: 'img',
	// 	attributes: { 'class': 'right' }
	// },

	{ name: 'Bootstrap Table Striped', element: 'table', attributes: { 'class': 'table table-striped' }	},
	{ name: 'Bootstrap Table Bordered', element: 'table', attributes: { 'class': 'table table-bordered' }	},
	{ name: 'Bootstrap Table Borderless', element: 'table', attributes: { 'class': 'table table-borderless' }	},

	{ name: 'Earlier', element: 'p', attributes: { 'class': 'earlier' }	},

	{ name: 'Square Bulleted List', element: 'ul', styles: { 'list-style-type': 'square' } },

	// { name: 'Borderless Table',		element: 'table',	styles: { 'border-style': 'hidden', 'background-color': '#E6E6FA' } },

	/* Widget styles */

	// { name: 'Clean Image', type: 'widget', widget: 'image', attributes: { 'class': 'image-clean' } },
	// { name: 'Grayscale Image', type: 'widget', widget: 'image', attributes: { 'class': 'image-grayscale' } },
	//
	// { name: 'Featured Snippet', type: 'widget', widget: 'codeSnippet', attributes: { 'class': 'code-featured' } },
	//
	// { name: 'Featured Formula', type: 'widget', widget: 'mathjax', attributes: { 'class': 'math-featured' } },
	//
	// { name: '240p', type: 'widget', widget: 'embedSemantic', attributes: { 'class': 'embed-240p' }, group: 'size' },
	// { name: '360p', type: 'widget', widget: 'embedSemantic', attributes: { 'class': 'embed-360p' }, group: 'size' },
	// { name: '480p', type: 'widget', widget: 'embedSemantic', attributes: { 'class': 'embed-480p' }, group: 'size' },
	// { name: '720p', type: 'widget', widget: 'embedSemantic', attributes: { 'class': 'embed-720p' }, group: 'size' },
	// { name: '1080p', type: 'widget', widget: 'embedSemantic', attributes: { 'class': 'embed-1080p' }, group: 'size' },

	// Adding space after the style name is an intended workaround. For now, there
	// is no option to create two styles with the same name for different widget types. See https://dev.ckeditor.com/ticket/16664.
	// { name: '240p ', type: 'widget', widget: 'embed', attributes: { 'class': 'embed-240p' }, group: 'size' },
	// { name: '360p ', type: 'widget', widget: 'embed', attributes: { 'class': 'embed-360p' }, group: 'size' },
	// { name: '480p ', type: 'widget', widget: 'embed', attributes: { 'class': 'embed-480p' }, group: 'size' },
	// { name: '720p ', type: 'widget', widget: 'embed', attributes: { 'class': 'embed-720p' }, group: 'size' },
	// { name: '1080p ', type: 'widget', widget: 'embed', attributes: { 'class': 'embed-1080p' }, group: 'size' }

] );
  • Создан: 08.01.26 @ 01:13
  • Будет удален: никогда
  • Просмотры сниппета: 35
  • Тип кода: JavaScript
  • Владелец: admin
Блок пользователя
Регистрация на нашем сайте позволит вам общаться на форумах и получить доступ к другому полезному функционалу
Вы вошли как Гость