Файл styles.js из комплекта CKEditor 4
Популярные запросы: Open Graph, плагин Reading Time, тема Quebec, плагин Telegram, набор иконок Analogue
Файл 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
Новые сниппеты:
- Скрипт анимированной текстуры для элемента canvas
Просмотры: 17
Дата: 10.03.26 @ 16:05 - Шаблон редактирования страницы для Cotonti Siena (grid-модель)
Просмотры: 25
Дата: 05.03.26 @ 12:42 - Шаблон добавления страницы для Cotonti Siena (grid-модель)
Просмотры: 19
Дата: 05.03.26 @ 11:50 - Отображаем шапку сайта при скролле вверх в мобильной версии
Просмотры: 16
Дата: 18.02.26 @ 11:30 - Блокиратор ботов в User-Agent
Просмотры: 18
Дата: 04.02.26 @ 17:55 - Адаптивный шаблон редактирования страницы
Просмотры: 60
Дата: 22.01.26 @ 10:47 - IP-диапазоны Biterika Grupp для блокировки
Просмотры: 41
Дата: 20.01.26 @ 13:07 - Скрипт кастомизации формы поиска в стиле Github
Просмотры: 32
Дата: 18.01.26 @ 20:01 - LESS mixin для верстки моделью grid с обводкой
Просмотры: 28
Дата: 16.01.26 @ 20:47 - Блок вывода статистики страницы с помощью плагина Reading Time
Просмотры: 33
Дата: 16.01.26 @ 13:50