UNPKG

@bigfishtv/cockpit

Version:

29 lines (27 loc) 1.2 kB
/** * Redactor Utilities * @module Utilities/redactorUtils */ import '../../lib/redactor/redactor'; import '../../lib/redactor-plugins/redactor.bufferButtons'; import '../../lib/redactor-plugins/redactor.source'; import '../../lib/redactor-plugins/redactor.styles'; import '../../lib/redactor-plugins/redactor.tags'; import '../../lib/redactor-plugins/redactor.table'; import '../../lib/redactor-plugins/redactor.stripTags'; import '../../lib/redactor-plugins/redactor.icons'; /** * Returns default cockpit Redactor settings object * @return {Object} */ export function createSettings() { return { plugins: ['bufferbuttons', 'source', 'styles', 'tags', 'table', 'buttons', 'stripTags', 'icons'], buttons: ['format', 'bold', 'italic', 'deleted', 'underline', 'lists', 'buttons', 'link', 'horizontalrule', 'clearformatting'], formatting: ['h2', 'h3', 'h4', 'p', 'blockquote'], blockTags: ['pre', 'ul', 'ol', 'li', 'p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'dl', 'dt', 'dd', 'div', 'th', 'td', 'blockquote', 'output', 'figcaption', 'figure', 'address', 'section', 'header', 'footer', 'aside', 'article', 'iframe'], toolbarFixedTopOffset: 133, animation: false, callbacks: {} }; }