ckeditor5-1.0.x-dev/ckeditor5.ckeditor5.yml

ckeditor5.ckeditor5.yml
ckeditor5.essentials:
  library: ckeditor5/ckeditor5.internal
  admin_library: ckeditor5/admin.internal
  plugins: [essentials.Essentials]
  toolbar_items:
    undo:
      label: Undo
    redo:
      label: Redo
  conditions: []

ckeditor5.paragraph:
  library: ckeditor5/ckeditor5.internal
  admin_library: ckeditor5/admin.internal
  plugins: [paragraph.Paragraph]
  elements:
    - <p>
    - <br>

ckeditor5heading:
  label: Headings
  library: ckeditor5/ckeditor5.internal
  admin_library: ckeditor5/admin.heading
  class: \Drupal\ckeditor5\Plugin\CKEditor5Plugin\Heading
  plugins: [heading.Heading]
  plugin_config:
    heading:
      # These are the options passed to the CKEditor heading constructor
      # @see https://ckeditor.com/docs/ckeditor5/latest/api/module_heading_heading-HeadingConfig.html#member-options
      #   for details on what each of these config properties do.
      options:
        - { model: 'paragraph', title: 'Paragraph', class: 'ck-heading_paragraph' }
        - { model: 'heading1', view: 'h1', title: 'Heading 1', class: 'ck-heading_heading1' }
        - { model: 'heading2', view: 'h2', title: 'Heading 2', class: 'ck-heading_heading2' }
        - { model: 'heading3', view: 'h3', title: 'Heading 3', class: 'ck-heading_heading3' }
        - { model: 'heading4', view: 'h4', title: 'Heading 4', class: 'ck-heading_heading4' }
        - { model: 'heading5', view: 'h5', title: 'Heading 5', class: 'ck-heading_heading5' }
        - { model: 'heading6', view: 'h6', title: 'Heading 6', class: 'ck-heading_heading6' }
  toolbar_items:
    heading:
      label: Heading
  elements:
    - <h1>
    - <h2>
    - <h3>
    - <h4>
    - <h5>
    - <h6>

ckeditor5.htmlSupport:
  library: ckeditor5/ckeditor5.htmlSupport
  plugins: [htmlSupport.GeneralHtmlSupport]
  plugin_config:
    htmlSupport:
      allow:
        -
          name:
            regexp:
              pattern: /.*/
          attributes: true
          classes: true
  # @see \Drupal\ckeditor5\Plugin\CKEditor5PluginManager::getEnabledDefinitions()
  conditions: []

ckeditor5.sourceEditing:
  library: ckeditor5/ckeditor5.sourceEditing
  admin_library: ckeditor5/admin.sourceEditing
  plugins: [sourceEditing.SourceEditing]
  toolbar_items:
    sourceEditing:
      label: Source

ckeditor5.bold:
  library: ckeditor5/ckeditor5.basic
  admin_library: ckeditor5/admin.basic
  plugins: [basicStyles.Bold]
  toolbar_items:
    bold:
      label: Bold
  elements:
    - <strong>

ckeditor5.emphasis:
  library: ckeditor5/drupal.ckeditor5.emphasis
  admin_library: ckeditor5/admin.basic
  plugins:
    - basicStyles.Italic
    - drupalEmphasis.DrupalEmphasis
  toolbar_items:
    italic:
      label: Italic
  elements:
    - <em>

ckeditor5.underline:
  library: ckeditor5/ckeditor5.basic
  admin_library: ckeditor5/admin.basic
  plugins: [basicStyles.Underline]
  toolbar_items:
    underline:
      label: Underline
  elements:
    - <u>

ckeditor5.code:
  library: ckeditor5/ckeditor5.basic
  admin_library: ckeditor5/admin.basic
  plugins: [basicStyles.Code]
  toolbar_items:
    code:
      label: Code
  elements:
    - <code>

ckeditor5.strikethrough:
  library: ckeditor5/ckeditor5.basic
  admin_library: ckeditor5/admin.basic
  plugins: [basicStyles.Strikethrough]
  toolbar_items:
    strikethrough:
      label: Strikethrough
  elements:
    - <s>

ckeditor5.subscript:
  library: ckeditor5/ckeditor5.basic
  admin_library: ckeditor5/admin.basic
  plugins: [basicStyles.Subscript]
  toolbar_items:
    subscript:
      label: Subscript
  elements:
    - <sub>

ckeditor5.superscript:
  library: ckeditor5/ckeditor5.basic
  admin_library: ckeditor5/admin.basic
  plugins: [basicStyles.Superscript]
  toolbar_items:
    superscript:
      label: Superscript
  elements:
    - <sup>

ckeditor5.blockquote:
  library: ckeditor5/ckeditor5.blockquote
  admin_library: ckeditor5/admin.blockquote
  plugins:
    - blockQuote.BlockQuote
    - htmlSupport.GeneralHtmlSupport
  plugin_config:
    htmlSupport:
      allow:
        -
          name: blockquote
          attributes: ['cite']
  toolbar_items:
    blockQuote:
      label: Block quote
  elements:
    - <blockquote cite>

ckeditor5.link:
  library: ckeditor5/ckeditor5.link
  admin_library: ckeditor5/admin.link
  plugins:
   - link.Link
   - htmlSupport.GeneralHtmlSupport
  plugin_config:
    htmlSupport:
      allow:
        -
          name: a
          attributes: ['hreflang']
  toolbar_items:
    link:
      label: Link
  elements:
    - <a href hreflang>

ckeditor5.list:
  library: ckeditor5/ckeditor5.list
  admin_library: ckeditor5/admin.list
  plugins: [list.List]
  toolbar_items:
    bulletedList:
      label: Bulleted list
    numberedList:
      label: Numbered list
  elements:
    - <ul>
    - <ol>
    - <li>

ckeditor5.horizontalLine:
  library: ckeditor5/ckeditor5.horizontalLine
  admin_library: ckeditor5/admin.horizontalLine
  plugins: [horizontalLine.HorizontalLine]
  toolbar_items:
    horizontalLine:
      label: Horizontal line
  elements:
    - <hr>

ckeditor5.alignment:
  library: ckeditor5/ckeditor5.alignment
  admin_library: ckeditor5/admin.alignment
  plugins: [alignment.Alignment]
  plugin_config:
    # @see core/modules/system/css/components/align.module.css
    alignment:
      options:
        - name: left
          className: text-align-left
        - name: center
          className: text-align-center
        - name: right
          className: text-align-right
        - name: justify
          className: text-align-justify
  toolbar_items:
    alignment:
      label: Text alignment
    "alignment:left":
      label: Align left
    "alignment:center":
      label: Align center
    "alignment:right":
      label: Align right
    "alignment:justify":
      label: justify
  elements:
    - <$block class="text-align-left text-align-center text-align-right text-align-justify">

ckeditor5.table:
  library: ckeditor5/ckeditor5.table
  admin_library: ckeditor5/admin.table
  plugins:
    - table.Table
    - table.TableToolbar
  plugin_config:
    table:
      contentToolbar: [tableColumn, tableRow, mergeTableCells]
  toolbar_items:
    insertTable:
      label: table
  elements:
    - <table>
    - <tr>
    - <td>
    - <th>
    - <thead>
    - <tbody>
    - <tfoot>

ckeditor5.image:
  library: ckeditor5/drupal.ckeditor5.image
  plugins:
    - image.Image
    - image.ImageToolbar
    - drupalImage.DrupalImage
  plugin_config:
    image:
      toolbar: [imageTextAlternative]
  elements:
    - <img src alt data-entity-uuid data-entity-type height width>
  conditions:
    toolbarItem: uploadImage
    imageUploadStatus: true

ckeditor5.imageCaption:
  plugins:
    - image.ImageCaption
  plugin_config:
    image:
      toolbar: [toggleImageCaption]
  elements:
    - <img data-caption>
  conditions:
    toolbarItem: uploadImage
    imageUploadStatus: true
    filter: filter_caption

ckeditor5.imageAlign:
  plugins:
    - image.ImageStyle
  plugin_config:
    image:
      toolbar:
        - name: 'imageStyle:icons'
          items:
            - 'imageStyle:alignLeft'
            - 'imageStyle:alignCenter'
            - 'imageStyle:alignRight'
          defaultItem: 'imageStyle:alignCenter'
  elements:
    - <img data-align>
  conditions:
    toolbarItem: uploadImage
    imageUploadStatus: true
    filter: filter_align

ckeditor5.indent:
  library: ckeditor5/ckeditor5.indent
  admin_library: ckeditor5/admin.indent
  plugins: [indent.Indent]
  toolbar_items:
    indent:
      label: Indent
    outdent:
      label: Outdent

language:
  label: Language
  library: ckeditor5/ckeditor5.language
  admin_library: ckeditor5/admin.language
  class: \Drupal\ckeditor5\Plugin\CKEditor5Plugin\Language
  plugins: [language.TextPartLanguage]
  toolbar_items:
    textPartLanguage:
      label: Language
  elements:
    - <span lang dir>

ckeditor5.media:
  provider: media
  library: ckeditor5/drupal.ckeditor5.media
  class: \Drupal\ckeditor5\Plugin\CKEditor5Plugin\Media
  plugins:
    - drupalMedia.DrupalMedia
  plugin_config:
    drupalMedia:
      themeError:
        func:
          name: Drupal.theme
          args: [mediaEmbedPreviewError]
          invoke: true
  elements:
    - <drupal-media data-entity-type data-entity-uuid alt>
  conditions:
    filter: media_embed

ckeditor5.mediaLibrary:
  admin_library: ckeditor5/admin.drupalmedia
  provider: media_library
  class: \Drupal\ckeditor5\Plugin\CKEditor5Plugin\MediaLibrary
  library: editor/drupal.editor.dialog
  toolbar_items:
      drupalMedia:
        label: Drupal media
  plugin_config:
    drupalMedia:
      toolbar: [mediaImageTextAlternative]
      openDialog:
        func:
          name: Drupal.ckeditor5.openDialog
          invoke: false
      dialogSettings:
        height: 75%
        dialogClass: media-library-widget-modal
        title: Add or select media
  conditions:
    filter: media_embed
    toolbarItem: drupalMedia

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc