ckeditor5.ckeditor5.yml

Same filename and directory in other branches
  1. 11.x core/modules/ckeditor5/ckeditor5.ckeditor5.yml
  2. 10 core/modules/ckeditor5/ckeditor5.ckeditor5.yml
  3. 9 core/modules/ckeditor5/ckeditor5.ckeditor5.yml
core/modules/ckeditor5/ckeditor5.ckeditor5.yml

File

core/modules/ckeditor5/ckeditor5.ckeditor5.yml

View source
  1. # CKEditor 5 Drupal plugin definitions.
  2. # @see this module's README.md for details on defining CKEditor 5 plugins in
  3. # Drupal.
  4. ckeditor5_essentials:
  5. ckeditor5:
  6. plugins:
  7. - drupalHtmlEngine.DrupalHtmlEngine
  8. - essentials.Essentials
  9. drupal:
  10. label: Essentials
  11. library: ckeditor5/internal.drupal.ckeditor5.htmlEngine
  12. admin_library: ckeditor5/internal.admin.essentials
  13. toolbar_items:
  14. undo:
  15. label: Undo
  16. redo:
  17. label: Redo
  18. elements:
  19. - <br>
  20. conditions: []
  21. ckeditor5_paragraph:
  22. ckeditor5:
  23. plugins: [paragraph.Paragraph]
  24. drupal:
  25. label: Paragraph
  26. library: core/ckeditor5.essentials
  27. admin_library: ckeditor5/internal.admin.essentials
  28. elements:
  29. - <p>
  30. ckeditor5_heading:
  31. ckeditor5:
  32. plugins: [heading.Heading]
  33. config:
  34. heading:
  35. # These are the options passed to the CKEditor heading constructor
  36. # @see https://ckeditor.com/docs/ckeditor5/latest/api/module_heading_heading-HeadingConfig.html#member-options
  37. # for details on what each of these config properties do.
  38. options:
  39. - { model: 'paragraph', title: 'Paragraph', class: 'ck-heading_paragraph' }
  40. - { model: 'heading1', view: 'h1', title: 'Heading 1', class: 'ck-heading_heading1' }
  41. - { model: 'heading2', view: 'h2', title: 'Heading 2', class: 'ck-heading_heading2' }
  42. - { model: 'heading3', view: 'h3', title: 'Heading 3', class: 'ck-heading_heading3' }
  43. - { model: 'heading4', view: 'h4', title: 'Heading 4', class: 'ck-heading_heading4' }
  44. - { model: 'heading5', view: 'h5', title: 'Heading 5', class: 'ck-heading_heading5' }
  45. - { model: 'heading6', view: 'h6', title: 'Heading 6', class: 'ck-heading_heading6' }
  46. drupal:
  47. label: Headings
  48. library: core/ckeditor5.essentials
  49. admin_library: ckeditor5/internal.admin.heading
  50. class: Drupal\ckeditor5\Plugin\CKEditor5Plugin\Heading
  51. toolbar_items:
  52. heading:
  53. label: Heading
  54. elements:
  55. - <h1>
  56. - <h2>
  57. - <h3>
  58. - <h4>
  59. - <h5>
  60. - <h6>
  61. ckeditor5_style:
  62. ckeditor5:
  63. plugins: [style.Style]
  64. drupal:
  65. label: Style
  66. library: core/ckeditor5.style
  67. admin_library: ckeditor5/internal.admin.style
  68. class: Drupal\ckeditor5\Plugin\CKEditor5Plugin\Style
  69. toolbar_items:
  70. style:
  71. label: Style
  72. # This plugin is able to add any configured class on any tag that can be
  73. # created by some other CKEditor 5 plugin. Hence it indicates it allows all
  74. # classes on all tags. Its subset then restricts this to a concrete set of
  75. # tags, and a concrete set of classes.
  76. # @todo Update in https://www.drupal.org/project/drupal/issues/3280124
  77. # @see \Drupal\ckeditor5\Plugin\CKEditor5Plugin\Style::getElementsSubset()
  78. # @see \Drupal\ckeditor5\Plugin\Validation\Constraint\StyleSensibleElementConstraintValidator
  79. elements:
  80. - <$any-html5-element class>
  81. ckeditor5_htmlComments:
  82. ckeditor5:
  83. plugins:
  84. - htmlSupport.HtmlComment
  85. drupal:
  86. label: HTML Comment support
  87. elements: false
  88. library: core/ckeditor5.htmlSupport
  89. # @see \Drupal\ckeditor5\Plugin\CKEditor5PluginManagerInterface::getEnabledDefinitions()
  90. conditions: []
  91. ckeditor5_arbitraryHtmlSupport:
  92. ckeditor5:
  93. plugins: [htmlSupport.GeneralHtmlSupport]
  94. config:
  95. htmlSupport:
  96. allow:
  97. -
  98. name:
  99. regexp:
  100. pattern: /.*/
  101. attributes: true
  102. classes: true
  103. styles: true
  104. drupal:
  105. label: Arbitrary HTML support
  106. elements: false
  107. library: core/ckeditor5.htmlSupport
  108. # @see \Drupal\ckeditor5\Plugin\CKEditor5PluginManagerInterface::getEnabledDefinitions()
  109. conditions: []
  110. ckeditor5_wildcardHtmlSupport:
  111. ckeditor5:
  112. plugins: [htmlSupport.GeneralHtmlSupport]
  113. drupal:
  114. label: Wildcard HTML support
  115. # @see \Drupal\ckeditor5\Plugin\CKEditor5PluginManager::getCKEditor5PluginConfig()
  116. elements: false
  117. library: core/ckeditor5.htmlSupport
  118. # @see \Drupal\ckeditor5\Plugin\CKEditor5PluginManagerInterface::getEnabledDefinitions()
  119. conditions: []
  120. # https://html.spec.whatwg.org/multipage/dom.html#attr-dir
  121. ckeditor5_globalAttributeDir:
  122. ckeditor5:
  123. plugins: [htmlSupport.GeneralHtmlSupport]
  124. config:
  125. htmlSupport:
  126. allow:
  127. -
  128. # @see \Drupal\ckeditor5\Plugin\CKEditor5Plugin\GlobalAttribute::getDynamicPluginConfig()
  129. name: ~
  130. attributes:
  131. - key: dir
  132. value:
  133. regexp:
  134. pattern: /^(ltr|rtl)$/
  135. drupal:
  136. label: Global `dir` attribute
  137. class: \Drupal\ckeditor5\Plugin\CKEditor5Plugin\GlobalAttribute
  138. # @see \Drupal\filter\Plugin\Filter\FilterHtml::getHTMLRestrictions()
  139. elements:
  140. - <* dir="ltr rtl">
  141. library: core/ckeditor5.htmlSupport
  142. conditions:
  143. filter: filter_html
  144. # https://html.spec.whatwg.org/multipage/dom.html#attr-lang
  145. ckeditor5_globalAttributeLang:
  146. ckeditor5:
  147. plugins: [htmlSupport.GeneralHtmlSupport]
  148. config:
  149. htmlSupport:
  150. allow:
  151. -
  152. # @see \Drupal\ckeditor5\Plugin\CKEditor5Plugin\GlobalAttribute::getDynamicPluginConfig()
  153. name: ~
  154. attributes: lang
  155. drupal:
  156. label: Global `lang` attribute
  157. class: \Drupal\ckeditor5\Plugin\CKEditor5Plugin\GlobalAttribute
  158. # @see \Drupal\filter\Plugin\Filter\FilterHtml::getHTMLRestrictions()
  159. elements:
  160. - <* lang>
  161. library: core/ckeditor5.htmlSupport
  162. conditions:
  163. filter: filter_html
  164. ckeditor5_specialCharacters:
  165. ckeditor5:
  166. plugins:
  167. - specialCharacters.SpecialCharacters
  168. - specialCharacters.SpecialCharactersEssentials
  169. drupal:
  170. label: Special characters
  171. library: core/ckeditor5.specialCharacters
  172. admin_library: ckeditor5/internal.admin.specialCharacters
  173. toolbar_items:
  174. specialCharacters:
  175. label: Special characters
  176. elements: false
  177. ckeditor5_sourceEditing:
  178. ckeditor5:
  179. plugins:
  180. - sourceEditing.SourceEditing
  181. - htmlSupport.GeneralHtmlSupport
  182. drupal:
  183. label: Source editing
  184. class: \Drupal\ckeditor5\Plugin\CKEditor5Plugin\SourceEditing
  185. # This is the only CKEditor 5 plugin allowed to generate a superset of elements.
  186. # @see \Drupal\ckeditor5\Plugin\CKEditor5Plugin\SourceEditing::getElementsSubset()
  187. # @see \Drupal\ckeditor5\Plugin\CKEditor5PluginDefinition::validateDrupalAspects()
  188. # @see \Drupal\ckeditor5\Plugin\CKEditor5PluginManager::getProvidedElements()
  189. elements: []
  190. library: core/ckeditor5.sourceEditing
  191. admin_library: ckeditor5/internal.admin.sourceEditing
  192. toolbar_items:
  193. sourceEditing:
  194. label: Source
  195. ckeditor5_bold:
  196. ckeditor5:
  197. plugins: [basicStyles.Bold]
  198. drupal:
  199. label: Bold
  200. library: core/ckeditor5.basic
  201. admin_library: ckeditor5/internal.admin.basic
  202. toolbar_items:
  203. bold:
  204. label: Bold
  205. elements:
  206. - <strong>
  207. ckeditor5_emphasis:
  208. ckeditor5:
  209. plugins:
  210. - basicStyles.Italic
  211. - drupalEmphasis.DrupalEmphasis
  212. drupal:
  213. label: Emphasis
  214. library: ckeditor5/internal.drupal.ckeditor5.emphasis
  215. admin_library: ckeditor5/internal.admin.basic
  216. toolbar_items:
  217. italic:
  218. label: Italic
  219. elements:
  220. - <em>
  221. ckeditor5_underline:
  222. ckeditor5:
  223. plugins: [basicStyles.Underline]
  224. drupal:
  225. label: Underline
  226. library: core/ckeditor5.basic
  227. admin_library: ckeditor5/internal.admin.basic
  228. toolbar_items:
  229. underline:
  230. label: Underline
  231. elements:
  232. - <u>
  233. ckeditor5_code:
  234. ckeditor5:
  235. plugins: [basicStyles.Code]
  236. drupal:
  237. label: Code
  238. library: core/ckeditor5.basic
  239. admin_library: ckeditor5/internal.admin.basic
  240. toolbar_items:
  241. code:
  242. label: Code
  243. elements:
  244. - <code>
  245. ckeditor5_codeBlock:
  246. ckeditor5:
  247. plugins:
  248. - codeBlock.CodeBlock
  249. - htmlSupport.GeneralHtmlSupport
  250. config:
  251. # The CodeBlock plugin supports only `<pre><code>…</code></pre>`.
  252. # Configure GHS to support `<pre>…</pre>` markup as well.
  253. htmlSupport:
  254. allow:
  255. -
  256. name: pre
  257. drupal:
  258. label: Code Block
  259. library: ckeditor5/internal.drupal.ckeditor5.codeBlock
  260. admin_library: ckeditor5/internal.admin.codeBlock
  261. class: Drupal\ckeditor5\Plugin\CKEditor5Plugin\CodeBlock
  262. toolbar_items:
  263. codeBlock:
  264. label: Code Block
  265. elements:
  266. - <pre>
  267. - <code>
  268. - <code class="language-*">
  269. ckeditor5_strikethrough:
  270. ckeditor5:
  271. plugins: [basicStyles.Strikethrough]
  272. drupal:
  273. label: Strikethrough
  274. library: core/ckeditor5.basic
  275. admin_library: ckeditor5/internal.admin.basic
  276. toolbar_items:
  277. strikethrough:
  278. label: Strikethrough
  279. elements:
  280. - <s>
  281. ckeditor5_subscript:
  282. ckeditor5:
  283. plugins: [basicStyles.Subscript]
  284. drupal:
  285. label: Subscript
  286. library: core/ckeditor5.basic
  287. admin_library: ckeditor5/internal.admin.basic
  288. toolbar_items:
  289. subscript:
  290. label: Subscript
  291. elements:
  292. - <sub>
  293. ckeditor5_superscript:
  294. ckeditor5:
  295. plugins: [basicStyles.Superscript]
  296. drupal:
  297. label: Superscript
  298. library: core/ckeditor5.basic
  299. admin_library: ckeditor5/internal.admin.basic
  300. toolbar_items:
  301. superscript:
  302. label: Superscript
  303. elements:
  304. - <sup>
  305. ckeditor5_blockquote:
  306. ckeditor5:
  307. plugins:
  308. - blockQuote.BlockQuote
  309. drupal:
  310. label: Block quote
  311. library: core/ckeditor5.blockquote
  312. admin_library: ckeditor5/internal.admin.blockquote
  313. toolbar_items:
  314. blockQuote:
  315. label: Block quote
  316. elements:
  317. - <blockquote>
  318. ckeditor5_link:
  319. ckeditor5:
  320. plugins:
  321. - link.Link
  322. config:
  323. link:
  324. # @see https://ckeditor.com/docs/ckeditor5/latest/features/link.html#adding-default-link-protocol-to-external-links
  325. defaultProtocol: 'https://'
  326. drupal:
  327. label: Link
  328. library: core/ckeditor5.link
  329. admin_library: ckeditor5/internal.admin.link
  330. toolbar_items:
  331. link:
  332. label: Link
  333. elements:
  334. - <a>
  335. - <a href>
  336. ckeditor5_link_entity_suggestions:
  337. ckeditor5:
  338. plugins:
  339. - drupalEntityLinkSuggestions.DrupalEntityLinkSuggestions
  340. drupal:
  341. label: Entity links
  342. class: \Drupal\ckeditor5\Plugin\CKEditor5Plugin\EntityLinkSuggestions
  343. library: ckeditor5/internal.drupal.ckeditor5.link-entity-suggestions
  344. elements:
  345. - <a data-entity-type data-entity-uuid data-entity-metadata>
  346. conditions:
  347. filter: entity_links
  348. plugins:
  349. - ckeditor5_link
  350. ckeditor5_linkImage:
  351. ckeditor5:
  352. plugins:
  353. - link.LinkImage
  354. config:
  355. # Append the "Link" button to the image balloon toolbar.
  356. image:
  357. toolbar:
  358. - '|'
  359. - linkImage
  360. drupal:
  361. label: Linked Image
  362. elements: false
  363. conditions:
  364. plugins:
  365. - ckeditor5_link
  366. - ckeditor5_image
  367. ckeditor5_entityLinkImage:
  368. ckeditor5:
  369. plugins: []
  370. drupal:
  371. label: Entity-Linked Image
  372. elements:
  373. - <img data-link-entity-type data-link-entity-uuid>
  374. conditions:
  375. plugins:
  376. - ckeditor5_link_entity_suggestions
  377. - ckeditor5_image
  378. ckeditor5_linkMedia:
  379. ckeditor5:
  380. plugins:
  381. - drupalMedia.DrupalLinkMedia
  382. config:
  383. # Append the "Link" button to the media balloon toolbar.
  384. drupalMedia:
  385. toolbar: [drupalLinkMedia]
  386. drupal:
  387. label: Linked Media
  388. elements: false
  389. conditions:
  390. plugins:
  391. - ckeditor5_link
  392. - media_media
  393. ckeditor5_list:
  394. ckeditor5:
  395. plugins:
  396. - list.List
  397. - list.ListProperties
  398. # @see \Drupal\ckeditor5\Plugin\CKEditor5Plugin\ListPlugin::getDynamicPluginConfig()
  399. config: {}
  400. drupal:
  401. label: List
  402. library: core/ckeditor5.list
  403. admin_library: ckeditor5/internal.admin.list
  404. class: Drupal\ckeditor5\Plugin\CKEditor5Plugin\ListPlugin
  405. toolbar_items:
  406. bulletedList:
  407. label: Bulleted list
  408. numberedList:
  409. label: Numbered list
  410. elements:
  411. - <ul>
  412. - <ol>
  413. - <ol reversed start>
  414. - <li>
  415. - <ol type>
  416. - <ul type>
  417. ckeditor5_horizontalLine:
  418. ckeditor5:
  419. plugins: [horizontalLine.HorizontalLine]
  420. drupal:
  421. label: Horizontal line
  422. library: core/ckeditor5.horizontalLine
  423. admin_library: ckeditor5/internal.admin.horizontalLine
  424. toolbar_items:
  425. horizontalLine:
  426. label: Horizontal line
  427. elements:
  428. - <hr>
  429. ckeditor5_alignment:
  430. ckeditor5:
  431. plugins: [alignment.Alignment]
  432. config:
  433. # @see core/modules/system/css/components/align.module.css
  434. alignment:
  435. options:
  436. - name: left
  437. className: text-align-left
  438. - name: center
  439. className: text-align-center
  440. - name: right
  441. className: text-align-right
  442. - name: justify
  443. className: text-align-justify
  444. drupal:
  445. label: Alignment
  446. library: core/ckeditor5.alignment
  447. admin_library: ckeditor5/internal.admin.alignment
  448. class: Drupal\ckeditor5\Plugin\CKEditor5Plugin\Alignment
  449. toolbar_items:
  450. alignment:
  451. label: Text alignment
  452. elements:
  453. - <$text-container class="text-align-left text-align-center text-align-right text-align-justify">
  454. ckeditor5_autoformat:
  455. ckeditor5:
  456. plugins:
  457. - autoformat.Autoformat
  458. drupal:
  459. label: Autoformat
  460. library: core/ckeditor5.autoformat
  461. elements: false
  462. ckeditor5_removeFormat:
  463. ckeditor5:
  464. plugins: [removeFormat.RemoveFormat]
  465. drupal:
  466. label: Remove Format
  467. library: core/ckeditor5.removeFormat
  468. admin_library: ckeditor5/internal.admin.removeFormat
  469. toolbar_items:
  470. removeFormat:
  471. label: Remove Format
  472. elements: false
  473. ckeditor5_pasteFromOffice:
  474. ckeditor5:
  475. plugins: [pasteFromOffice.PasteFromOffice]
  476. drupal:
  477. label: Paste From Office
  478. library: core/ckeditor5.pasteFromOffice
  479. elements: false
  480. conditions: []
  481. ckeditor5_table:
  482. ckeditor5:
  483. plugins:
  484. - table.Table
  485. - table.TableToolbar
  486. - table.TableCaption
  487. - table.PlainTableOutput
  488. config:
  489. table:
  490. contentToolbar: [tableColumn, tableRow, mergeTableCells, toggleTableCaption]
  491. drupal:
  492. label: Table
  493. library: core/ckeditor5.table
  494. admin_library: ckeditor5/internal.admin.table
  495. toolbar_items:
  496. insertTable:
  497. label: table
  498. elements:
  499. - <table>
  500. - <tr>
  501. - <td>
  502. - <td rowspan colspan>
  503. - <th>
  504. - <th rowspan colspan>
  505. - <thead>
  506. - <tbody>
  507. - <tfoot>
  508. - <caption>
  509. ckeditor5_table_properties:
  510. ckeditor5:
  511. plugins:
  512. - table.TableProperties
  513. config:
  514. table:
  515. contentToolbar: [tableProperties]
  516. drupal:
  517. label: Table properties
  518. library: ckeditor5/internal.drupal.ckeditor5.table
  519. conditions:
  520. plugins:
  521. - ckeditor5_table
  522. # When arbitrary HTML is already allowed, it's harmless to enable CKEditor 5's UI for table properties.
  523. - ckeditor5_arbitraryHtmlSupport
  524. elements:
  525. - <table style>
  526. ckeditor5_table_cell_properties:
  527. ckeditor5:
  528. plugins:
  529. - table.TableCellProperties
  530. config:
  531. table:
  532. contentToolbar: [tableCellProperties]
  533. drupal:
  534. label: Table cell properties
  535. library: ckeditor5/internal.drupal.ckeditor5.table
  536. conditions:
  537. plugins:
  538. - ckeditor5_table
  539. # When arbitrary HTML is already allowed, it's harmless to enable CKEditor 5's UI for table cell properties.
  540. - ckeditor5_arbitraryHtmlSupport
  541. elements:
  542. - <td style>
  543. - <td rowspan colspan style>
  544. - <th style>
  545. - <th rowspan colspan style>
  546. ckeditor5_image:
  547. ckeditor5:
  548. plugins:
  549. - image.Image
  550. - image.ImageToolbar
  551. - drupalImage.DrupalImage
  552. - drupalImage.DrupalInsertImage
  553. config:
  554. image:
  555. toolbar: [drupalImageAlternativeText]
  556. insert:
  557. # Determine image type (inline or block) by insertion context.
  558. type: auto
  559. integrations: []
  560. drupal:
  561. label: Image
  562. class: \Drupal\ckeditor5\Plugin\CKEditor5Plugin\Image
  563. library: ckeditor5/internal.drupal.ckeditor5.image
  564. admin_library: ckeditor5/internal.admin.image
  565. elements:
  566. - <img>
  567. - <img src alt height width>
  568. toolbar_items:
  569. drupalInsertImage:
  570. label: Image
  571. conditions:
  572. toolbarItem: drupalInsertImage
  573. ckeditor5_imageUpload:
  574. ckeditor5:
  575. plugins:
  576. - image.ImageUpload
  577. - drupalImage.DrupalImageUpload
  578. config:
  579. image:
  580. upload:
  581. # The strings in this array should be IANA media type Names, without the "image/" prefix. So: image subtypes.
  582. # https://www.iana.org/assignments/media-types/media-types.xhtml#image
  583. types: ["jpeg", "png", "gif"]
  584. drupal:
  585. label: Image Upload
  586. elements:
  587. - <img data-entity-uuid data-entity-type>
  588. conditions:
  589. imageUploadStatus: true
  590. plugins: [ckeditor5_image]
  591. ckeditor5_imageUrl:
  592. ckeditor5:
  593. plugins:
  594. - image.ImageInsertViaUrl
  595. drupal:
  596. label: Image URL
  597. elements: false
  598. conditions:
  599. imageUploadStatus: false
  600. plugins: [ckeditor5_image]
  601. ckeditor5_imageResize:
  602. ckeditor5:
  603. plugins:
  604. - image.ImageResize
  605. config:
  606. image:
  607. resizeUnit: 'px'
  608. resizeOptions:
  609. -
  610. name: 'resizeImage:original'
  611. value: null
  612. toolbar: [resizeImage]
  613. drupal:
  614. label: Image resize
  615. class: \Drupal\ckeditor5\Plugin\CKEditor5Plugin\ImageResize
  616. elements: false
  617. conditions:
  618. requiresConfiguration:
  619. allow_resize: true
  620. plugins: [ckeditor5_image]
  621. ckeditor5_imageCaption:
  622. ckeditor5:
  623. plugins:
  624. - image.ImageCaption
  625. config:
  626. image:
  627. toolbar: [toggleImageCaption]
  628. drupal:
  629. label: Image caption
  630. elements:
  631. - <img data-caption>
  632. conditions:
  633. filter: filter_caption
  634. plugins: [ckeditor5_image]
  635. ckeditor5_imageAlign:
  636. ckeditor5:
  637. plugins:
  638. - image.ImageStyle
  639. config:
  640. image:
  641. toolbar:
  642. - '|'
  643. - 'imageStyle:block'
  644. - 'imageStyle:alignLeft'
  645. - 'imageStyle:alignCenter'
  646. - 'imageStyle:alignRight'
  647. - 'imageStyle:inline'
  648. - '|'
  649. styles:
  650. options:
  651. - inline
  652. - name: 'block'
  653. icon: 'left'
  654. title: 'Break text'
  655. - name: 'alignLeft'
  656. title: 'Align left and wrap text'
  657. - name: 'alignCenter'
  658. title: 'Align center and break text'
  659. - name: 'alignRight'
  660. title: 'Align right and wrap text'
  661. drupal:
  662. label: Image align
  663. elements:
  664. - <img data-align>
  665. conditions:
  666. filter: filter_align
  667. plugins: [ckeditor5_image]
  668. ckeditor5_indent:
  669. ckeditor5:
  670. plugins: [indent.Indent]
  671. drupal:
  672. label: Indent
  673. elements: false
  674. library: core/ckeditor5.indent
  675. admin_library: ckeditor5/internal.admin.indent
  676. toolbar_items:
  677. indent:
  678. label: Indent
  679. outdent:
  680. label: Outdent
  681. ckeditor5_language:
  682. ckeditor5:
  683. plugins: [language.TextPartLanguage]
  684. drupal:
  685. label: Language
  686. library: ckeditor5/internal.ckeditor5.language
  687. admin_library: ckeditor5/internal.admin.language
  688. class: Drupal\ckeditor5\Plugin\CKEditor5Plugin\Language
  689. toolbar_items:
  690. textPartLanguage:
  691. label: Language
  692. elements:
  693. - <span lang dir>
  694. ckeditor5_showBlocks:
  695. ckeditor5:
  696. plugins: [showBlocks.ShowBlocks]
  697. drupal:
  698. label: Show blocks
  699. library: core/ckeditor5.showBlocks
  700. admin_library: ckeditor5/internal.admin.showBlocks
  701. toolbar_items:
  702. showBlocks:
  703. label: Show blocks
  704. elements: false
  705. ckeditor5_fullscreen:
  706. ckeditor5:
  707. plugins: [fullscreen.Fullscreen]
  708. drupal:
  709. label: Fullscreen
  710. library: core/ckeditor5.fullscreen
  711. admin_library: ckeditor5/internal.admin.fullscreen
  712. toolbar_items:
  713. fullscreen:
  714. label: Fullscreen
  715. elements: false
  716. media_media:
  717. provider: media
  718. ckeditor5:
  719. plugins:
  720. - drupalMedia.DrupalMedia
  721. - drupalMedia.DrupalElementStyle
  722. config:
  723. drupalMedia:
  724. toolbar: [mediaImageTextAlternative]
  725. themeError:
  726. func:
  727. name: Drupal.theme
  728. args: [mediaEmbedPreviewError]
  729. invoke: true
  730. drupal:
  731. label: Media
  732. library: ckeditor5/internal.drupal.ckeditor5.media
  733. class: Drupal\ckeditor5\Plugin\CKEditor5Plugin\Media
  734. elements:
  735. - <drupal-media>
  736. - <drupal-media data-entity-type data-entity-uuid alt>
  737. - <drupal-media data-view-mode>
  738. conditions:
  739. filter: media_embed
  740. ckeditor5_drupalMediaCaption:
  741. ckeditor5:
  742. plugins:
  743. - drupalMedia.DrupalMediaCaption
  744. config:
  745. drupalMedia:
  746. toolbar: [toggleDrupalMediaCaption]
  747. drupal:
  748. label: Media caption
  749. elements:
  750. - <drupal-media data-caption>
  751. conditions:
  752. filter: filter_caption
  753. plugins:
  754. - media_media
  755. media_mediaAlign:
  756. provider: media
  757. ckeditor5:
  758. plugins:
  759. - drupalMedia.DrupalElementStyle
  760. config:
  761. drupalElementStyles:
  762. align:
  763. - name: 'right'
  764. title: 'Align right and wrap text'
  765. icon: 'IconObjectInlineRight'
  766. attributeName: 'data-align'
  767. attributeValue: 'right'
  768. modelElements: [ 'drupalMedia' ]
  769. - name: 'left'
  770. title: 'Align left and wrap text'
  771. icon: 'IconObjectInlineLeft'
  772. attributeName: 'data-align'
  773. attributeValue: 'left'
  774. modelElements: [ 'drupalMedia' ]
  775. - name: 'center'
  776. title: 'Align center and break text'
  777. icon: 'IconObjectCenter'
  778. attributeName: 'data-align'
  779. attributeValue: 'center'
  780. modelElements: ['drupalMedia']
  781. - name: 'breakText'
  782. title: 'Break text'
  783. icon: 'IconObjectLeft'
  784. isDefault: true
  785. modelElements: [ 'drupalMedia' ]
  786. drupalMedia:
  787. toolbar:
  788. - '|'
  789. - 'drupalElementStyle:align:breakText'
  790. - 'drupalElementStyle:align:left'
  791. - 'drupalElementStyle:align:center'
  792. - 'drupalElementStyle:align:right'
  793. - '|'
  794. drupal:
  795. label: Media align
  796. library: ckeditor5/internal.drupal.ckeditor5.mediaAlign
  797. elements:
  798. - <drupal-media data-align>
  799. conditions:
  800. filter: filter_align
  801. plugins: [media_media]
  802. media_library_mediaLibrary:
  803. provider: media_library
  804. ckeditor5:
  805. plugins: []
  806. config:
  807. drupalMedia:
  808. openDialog:
  809. func:
  810. name: Drupal.ckeditor5.openDialog
  811. invoke: false
  812. dialogSettings:
  813. classes:
  814. ui-dialog: media-library-widget-modal
  815. height: 75%
  816. drupal:
  817. label: Media Library
  818. elements: false
  819. admin_library: ckeditor5/internal.admin.drupalmedia
  820. class: Drupal\ckeditor5\Plugin\CKEditor5Plugin\MediaLibrary
  821. library: editor/drupal.editor.dialog
  822. toolbar_items:
  823. drupalMedia:
  824. label: Drupal media
  825. conditions:
  826. filter: media_embed
  827. toolbarItem: drupalMedia
  828. ckeditor5_entityLinkMedia:
  829. ckeditor5:
  830. plugins: []
  831. drupal:
  832. label: Entity-Linked Media
  833. elements:
  834. # The drupalMedia.DrupalLinkMedia CKEditor 5 plugin automatically supports the
  835. # Entity Link Suggestions functionality when it is enabled.
  836. - <drupal-media data-link-entity-type data-link-entity-uuid data-link-entity-metadata>
  837. conditions:
  838. plugins:
  839. - ckeditor5_link_entity_suggestions
  840. - media_media

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.