Skip to content

Commit

Permalink
Issue #6472: Activate "Paste from Office" plugin for CKE5.
Browse files Browse the repository at this point in the history
By @laryn and @klonos.
  • Loading branch information
laryn committed Apr 25, 2024
1 parent 2bacdd1 commit 6dc6b2f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core/modules/ckeditor5/ckeditor5.module
Expand Up @@ -505,6 +505,12 @@ function ckeditor5_ckeditor5_plugins() {
'enabled_callback' => TRUE,
);

// @see https://ckeditor.com/docs/ckeditor5/latest/features/pasting/paste-from-google-docs.html
$plugins['pasteFromOffice.PasteFromOffice'] = array(
// @todo: Provide a configuration option to toggle.
'enabled_callback' => TRUE,
);

// @see https://ckeditor.com/docs/ckeditor5/latest/features/tables/tables.html
$plugins['table.Table'] = array(
'buttons' => array(
Expand Down
2 changes: 2 additions & 0 deletions core/modules/ckeditor5/tests/ckeditor5.test
Expand Up @@ -106,6 +106,7 @@ class CKEditor5TestCase extends BackdropWebTestCase {
'image.ImageCaption',
'essentials.Essentials',
'autoformat.Autoformat',
'pasteFromOffice.PasteFromOffice',
'paragraph.Paragraph',
'htmlSupport.GeneralHtmlSupport',
'backdropHtmlEngine.BackdropHtmlEngine',
Expand Down Expand Up @@ -134,6 +135,7 @@ class CKEditor5TestCase extends BackdropWebTestCase {
'image.ImageCaption',
'essentials.Essentials',
'autoformat.Autoformat',
'pasteFromOffice.PasteFromOffice',
'paragraph.Paragraph',
'htmlSupport.GeneralHtmlSupport',
'backdropBasicStyles.BackdropBasicStyles',
Expand Down

0 comments on commit 6dc6b2f

Please sign in to comment.