ckeditor5.ckeditor5.yml

Same filename in other branches
  1. 9 core/modules/ckeditor5/ckeditor5.ckeditor5.yml
  2. 11.x 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_linkImage:
  337. ckeditor5:
  338. plugins:
  339. - link.LinkImage
  340. config:
  341. # Append the "Link" button to the image balloon toolbar.
  342. image:
  343. toolbar:
  344. - '|'
  345. - linkImage
  346. drupal:
  347. label: Linked Image
  348. elements: false
  349. conditions:
  350. plugins:
  351. - ckeditor5_link
  352. - ckeditor5_image
  353. ckeditor5_linkMedia:
  354. ckeditor5:
  355. plugins:
  356. - drupalMedia.DrupalLinkMedia
  357. config:
  358. # Append the "Link" button to the media balloon toolbar.
  359. drupalMedia:
  360. toolbar: [drupalLinkMedia]
  361. drupal:
  362. label: Linked Media
  363. elements: false
  364. conditions:
  365. plugins:
  366. - ckeditor5_link
  367. - media_media
  368. ckeditor5_list:
  369. ckeditor5:
  370. plugins:
  371. - list.List
  372. - list.ListProperties
  373. config:
  374. list:
  375. properties:
  376. # @todo Make this configurable in https://www.drupal.org/project/drupal/issues/3274635
  377. styles: false
  378. drupal:
  379. label: List
  380. library: core/ckeditor5.list
  381. admin_library: ckeditor5/internal.admin.list
  382. class: Drupal\ckeditor5\Plugin\CKEditor5Plugin\ListPlugin
  383. toolbar_items:
  384. bulletedList:
  385. label: Bulleted list
  386. numberedList:
  387. label: Numbered list
  388. elements:
  389. - <ul>
  390. - <ol>
  391. - <ol reversed start>
  392. - <li>
  393. ckeditor5_horizontalLine:
  394. ckeditor5:
  395. plugins: [horizontalLine.HorizontalLine]
  396. drupal:
  397. label: Horizontal line
  398. library: core/ckeditor5.horizontalLine
  399. admin_library: ckeditor5/internal.admin.horizontalLine
  400. toolbar_items:
  401. horizontalLine:
  402. label: Horizontal line
  403. elements:
  404. - <hr>
  405. ckeditor5_alignment:
  406. ckeditor5:
  407. plugins: [alignment.Alignment]
  408. config:
  409. # @see core/modules/system/css/components/align.module.css
  410. alignment:
  411. options:
  412. - name: left
  413. className: text-align-left
  414. - name: center
  415. className: text-align-center
  416. - name: right
  417. className: text-align-right
  418. - name: justify
  419. className: text-align-justify
  420. drupal:
  421. label: Alignment
  422. library: core/ckeditor5.alignment
  423. admin_library: ckeditor5/internal.admin.alignment
  424. class: Drupal\ckeditor5\Plugin\CKEditor5Plugin\Alignment
  425. toolbar_items:
  426. alignment:
  427. label: Text alignment
  428. elements:
  429. - <$text-container class="text-align-left text-align-center text-align-right text-align-justify">
  430. ckeditor5_autoformat:
  431. ckeditor5:
  432. plugins:
  433. - autoformat.Autoformat
  434. drupal:
  435. label: Autoformat
  436. library: core/ckeditor5.autoformat
  437. elements: false
  438. ckeditor5_removeFormat:
  439. ckeditor5:
  440. plugins: [removeFormat.RemoveFormat]
  441. drupal:
  442. label: Remove Format
  443. library: core/ckeditor5.removeFormat
  444. admin_library: ckeditor5/internal.admin.removeFormat
  445. toolbar_items:
  446. removeFormat:
  447. label: Remove Format
  448. elements: false
  449. ckeditor5_pasteFromOffice:
  450. ckeditor5:
  451. plugins: [pasteFromOffice.PasteFromOffice]
  452. drupal:
  453. label: Paste From Office
  454. library: core/ckeditor5.pasteFromOffice
  455. elements: false
  456. conditions: []
  457. ckeditor5_table:
  458. ckeditor5:
  459. plugins:
  460. - table.Table
  461. - table.TableToolbar
  462. - table.TableCaption
  463. - table.PlainTableOutput
  464. config:
  465. table:
  466. contentToolbar: [tableColumn, tableRow, mergeTableCells, toggleTableCaption]
  467. drupal:
  468. label: Table
  469. library: core/ckeditor5.table
  470. admin_library: ckeditor5/internal.admin.table
  471. toolbar_items:
  472. insertTable:
  473. label: table
  474. elements:
  475. - <table>
  476. - <tr>
  477. - <td>
  478. - <td rowspan colspan>
  479. - <th>
  480. - <th rowspan colspan>
  481. - <thead>
  482. - <tbody>
  483. - <tfoot>
  484. - <caption>
  485. ckeditor5_table_properties:
  486. ckeditor5:
  487. plugins:
  488. - table.TableProperties
  489. config:
  490. table:
  491. contentToolbar: [tableProperties]
  492. drupal:
  493. label: Table properties
  494. library: ckeditor5/internal.drupal.ckeditor5.table
  495. conditions:
  496. plugins:
  497. - ckeditor5_table
  498. # When arbitrary HTML is already allowed, it's harmless to enable CKEditor 5's UI for table properties.
  499. - ckeditor5_arbitraryHtmlSupport
  500. elements:
  501. - <table style>
  502. ckeditor5_table_cell_properties:
  503. ckeditor5:
  504. plugins:
  505. - table.TableCellProperties
  506. config:
  507. table:
  508. contentToolbar: [tableCellProperties]
  509. drupal:
  510. label: Table cell properties
  511. library: ckeditor5/internal.drupal.ckeditor5.table
  512. conditions:
  513. plugins:
  514. - ckeditor5_table
  515. # When arbitrary HTML is already allowed, it's harmless to enable CKEditor 5's UI for table cell properties.
  516. - ckeditor5_arbitraryHtmlSupport
  517. elements:
  518. - <td style>
  519. - <td rowspan colspan style>
  520. - <th style>
  521. - <th rowspan colspan style>
  522. ckeditor5_image:
  523. ckeditor5:
  524. plugins:
  525. - image.Image
  526. - image.ImageToolbar
  527. - drupalImage.DrupalImage
  528. - drupalImage.DrupalInsertImage
  529. config:
  530. image:
  531. toolbar: [drupalImageAlternativeText]
  532. insert:
  533. # Determine image type (inline or block) by insertion context.
  534. type: auto
  535. integrations: []
  536. drupal:
  537. label: Image
  538. class: \Drupal\ckeditor5\Plugin\CKEditor5Plugin\Image
  539. library: ckeditor5/internal.drupal.ckeditor5.image
  540. admin_library: ckeditor5/internal.admin.image
  541. elements:
  542. - <img>
  543. - <img src alt height width>
  544. toolbar_items:
  545. drupalInsertImage:
  546. label: Image
  547. conditions:
  548. toolbarItem: drupalInsertImage
  549. ckeditor5_imageUpload:
  550. ckeditor5:
  551. plugins:
  552. - image.ImageUpload
  553. - drupalImage.DrupalImageUpload
  554. config:
  555. image:
  556. upload:
  557. # The strings in this array should be IANA media type Names, without the "image/" prefix. So: image subtypes.
  558. # https://www.iana.org/assignments/media-types/media-types.xhtml#image
  559. types: ["jpeg", "png", "gif"]
  560. drupal:
  561. label: Image Upload
  562. elements:
  563. - <img data-entity-uuid data-entity-type>
  564. conditions:
  565. imageUploadStatus: true
  566. plugins: [ckeditor5_image]
  567. ckeditor5_imageUrl:
  568. ckeditor5:
  569. plugins:
  570. - image.ImageInsertViaUrl
  571. drupal:
  572. label: Image URL
  573. elements: false
  574. conditions:
  575. imageUploadStatus: false
  576. plugins: [ckeditor5_image]
  577. ckeditor5_imageResize:
  578. ckeditor5:
  579. plugins:
  580. - image.ImageResize
  581. config:
  582. image:
  583. resizeUnit: 'px'
  584. resizeOptions:
  585. -
  586. name: 'resizeImage:original'
  587. value: null
  588. toolbar: [resizeImage]
  589. drupal:
  590. label: Image resize
  591. class: \Drupal\ckeditor5\Plugin\CKEditor5Plugin\ImageResize
  592. elements: false
  593. conditions:
  594. requiresConfiguration:
  595. allow_resize: true
  596. plugins: [ckeditor5_image]
  597. ckeditor5_imageCaption:
  598. ckeditor5:
  599. plugins:
  600. - image.ImageCaption
  601. config:
  602. image:
  603. toolbar: [toggleImageCaption]
  604. drupal:
  605. label: Image caption
  606. elements:
  607. - <img data-caption>
  608. conditions:
  609. filter: filter_caption
  610. plugins: [ckeditor5_image]
  611. ckeditor5_imageAlign:
  612. ckeditor5:
  613. plugins:
  614. - image.ImageStyle
  615. config:
  616. image:
  617. toolbar:
  618. - '|'
  619. - 'imageStyle:block'
  620. - 'imageStyle:alignLeft'
  621. - 'imageStyle:alignCenter'
  622. - 'imageStyle:alignRight'
  623. - 'imageStyle:inline'
  624. - '|'
  625. styles:
  626. options:
  627. - inline
  628. - name: 'block'
  629. icon: 'left'
  630. title: 'Break text'
  631. - name: 'alignLeft'
  632. title: 'Align left and wrap text'
  633. - name: 'alignCenter'
  634. title: 'Align center and break text'
  635. - name: 'alignRight'
  636. title: 'Align right and wrap text'
  637. drupal:
  638. label: Image align
  639. elements:
  640. - <img data-align>
  641. conditions:
  642. filter: filter_align
  643. plugins: [ckeditor5_image]
  644. ckeditor5_indent:
  645. ckeditor5:
  646. plugins: [indent.Indent]
  647. drupal:
  648. label: Indent
  649. elements: false
  650. library: core/ckeditor5.indent
  651. admin_library: ckeditor5/internal.admin.indent
  652. toolbar_items:
  653. indent:
  654. label: Indent
  655. outdent:
  656. label: Outdent
  657. ckeditor5_language:
  658. ckeditor5:
  659. plugins: [language.TextPartLanguage]
  660. drupal:
  661. label: Language
  662. library: ckeditor5/internal.ckeditor5.language
  663. admin_library: ckeditor5/internal.admin.language
  664. class: Drupal\ckeditor5\Plugin\CKEditor5Plugin\Language
  665. toolbar_items:
  666. textPartLanguage:
  667. label: Language
  668. elements:
  669. - <span lang dir>
  670. ckeditor5_showBlocks:
  671. ckeditor5:
  672. plugins: [showBlocks.ShowBlocks]
  673. drupal:
  674. label: Show blocks
  675. library: core/ckeditor5.showBlocks
  676. admin_library: ckeditor5/internal.admin.showBlocks
  677. toolbar_items:
  678. showBlocks:
  679. label: Show blocks
  680. elements: false
  681. media_media:
  682. provider: media
  683. ckeditor5:
  684. plugins:
  685. - drupalMedia.DrupalMedia
  686. - drupalMedia.DrupalElementStyle
  687. config:
  688. drupalMedia:
  689. toolbar: [mediaImageTextAlternative]
  690. themeError:
  691. func:
  692. name: Drupal.theme
  693. args: [mediaEmbedPreviewError]
  694. invoke: true
  695. drupal:
  696. label: Media
  697. library: ckeditor5/internal.drupal.ckeditor5.media
  698. class: Drupal\ckeditor5\Plugin\CKEditor5Plugin\Media
  699. elements:
  700. - <drupal-media>
  701. - <drupal-media data-entity-type data-entity-uuid alt>
  702. - <drupal-media data-view-mode>
  703. conditions:
  704. filter: media_embed
  705. ckeditor5_drupalMediaCaption:
  706. ckeditor5:
  707. plugins:
  708. - drupalMedia.DrupalMediaCaption
  709. config:
  710. drupalMedia:
  711. toolbar: [toggleDrupalMediaCaption]
  712. drupal:
  713. label: Media caption
  714. elements:
  715. - <drupal-media data-caption>
  716. conditions:
  717. filter: filter_caption
  718. plugins:
  719. - media_media
  720. media_mediaAlign:
  721. provider: media
  722. ckeditor5:
  723. plugins:
  724. - drupalMedia.DrupalElementStyle
  725. config:
  726. drupalElementStyles:
  727. align:
  728. - name: 'right'
  729. title: 'Align right and wrap text'
  730. icon: 'objectRight'
  731. attributeName: 'data-align'
  732. attributeValue: 'right'
  733. modelElements: [ 'drupalMedia' ]
  734. - name: 'left'
  735. title: 'Align left and wrap text'
  736. icon: 'objectLeft'
  737. attributeName: 'data-align'
  738. attributeValue: 'left'
  739. modelElements: [ 'drupalMedia' ]
  740. - name: 'center'
  741. title: 'Align center and break text'
  742. icon: 'objectCenter'
  743. attributeName: 'data-align'
  744. attributeValue: 'center'
  745. modelElements: ['drupalMedia']
  746. - name: 'breakText'
  747. title: 'Break text'
  748. icon: 'objectBlockLeft'
  749. isDefault: true
  750. modelElements: [ 'drupalMedia' ]
  751. drupalMedia:
  752. toolbar:
  753. - '|'
  754. - 'drupalElementStyle:align:breakText'
  755. - 'drupalElementStyle:align:left'
  756. - 'drupalElementStyle:align:center'
  757. - 'drupalElementStyle:align:right'
  758. - '|'
  759. drupal:
  760. label: Media align
  761. library: ckeditor5/internal.drupal.ckeditor5.mediaAlign
  762. elements:
  763. - <drupal-media data-align>
  764. conditions:
  765. filter: filter_align
  766. plugins: [media_media]
  767. media_library_mediaLibrary:
  768. provider: media_library
  769. ckeditor5:
  770. plugins: []
  771. config:
  772. drupalMedia:
  773. openDialog:
  774. func:
  775. name: Drupal.ckeditor5.openDialog
  776. invoke: false
  777. dialogSettings:
  778. classes:
  779. ui-dialog: media-library-widget-modal
  780. height: 75%
  781. drupal:
  782. label: Media Library
  783. elements: false
  784. admin_library: ckeditor5/internal.admin.drupalmedia
  785. class: Drupal\ckeditor5\Plugin\CKEditor5Plugin\MediaLibrary
  786. library: editor/drupal.editor.dialog
  787. toolbar_items:
  788. drupalMedia:
  789. label: Drupal media
  790. conditions:
  791. filter: media_embed
  792. toolbarItem: drupalMedia

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