From 116c87e47ec6801e98985f55507745482280252d Mon Sep 17 00:00:00 2001 From: Lauri Eskola Date: Wed, 11 Oct 2023 09:47:42 +0300 Subject: [PATCH] Issue #3378890 by Wim Leers, mikesimmons, smustgrave, pmkanse, witeksocha: Add the "Show Blocks" functionality that existed in CKEditor 4 and was added to CKEditor 5 38.1.0 --- .../ckeditor5/show-blocks/show-blocks.js | 5 ++++ .../ckeditor5/show-blocks/translations/ar.js | 1 + .../ckeditor5/show-blocks/translations/bg.js | 1 + .../ckeditor5/show-blocks/translations/bn.js | 1 + .../ckeditor5/show-blocks/translations/ca.js | 1 + .../ckeditor5/show-blocks/translations/cs.js | 1 + .../ckeditor5/show-blocks/translations/da.js | 1 + .../ckeditor5/show-blocks/translations/de.js | 1 + .../ckeditor5/show-blocks/translations/el.js | 1 + .../ckeditor5/show-blocks/translations/es.js | 1 + .../ckeditor5/show-blocks/translations/et.js | 1 + .../ckeditor5/show-blocks/translations/fi.js | 1 + .../ckeditor5/show-blocks/translations/fr.js | 1 + .../ckeditor5/show-blocks/translations/gl.js | 1 + .../ckeditor5/show-blocks/translations/he.js | 1 + .../ckeditor5/show-blocks/translations/hi.js | 1 + .../ckeditor5/show-blocks/translations/hr.js | 1 + .../ckeditor5/show-blocks/translations/hu.js | 1 + .../ckeditor5/show-blocks/translations/id.js | 1 + .../ckeditor5/show-blocks/translations/it.js | 1 + .../ckeditor5/show-blocks/translations/ja.js | 1 + .../ckeditor5/show-blocks/translations/ko.js | 1 + .../ckeditor5/show-blocks/translations/lt.js | 1 + .../ckeditor5/show-blocks/translations/lv.js | 1 + .../ckeditor5/show-blocks/translations/ms.js | 1 + .../ckeditor5/show-blocks/translations/nl.js | 1 + .../ckeditor5/show-blocks/translations/no.js | 1 + .../ckeditor5/show-blocks/translations/pl.js | 1 + .../show-blocks/translations/pt-br.js | 1 + .../ckeditor5/show-blocks/translations/pt.js | 1 + .../ckeditor5/show-blocks/translations/ro.js | 1 + .../ckeditor5/show-blocks/translations/ru.js | 1 + .../ckeditor5/show-blocks/translations/sk.js | 1 + .../ckeditor5/show-blocks/translations/sq.js | 1 + .../ckeditor5/show-blocks/translations/sr.js | 1 + .../ckeditor5/show-blocks/translations/sv.js | 1 + .../ckeditor5/show-blocks/translations/th.js | 1 + .../ckeditor5/show-blocks/translations/tr.js | 1 + .../ckeditor5/show-blocks/translations/ug.js | 1 + .../ckeditor5/show-blocks/translations/uk.js | 1 + .../ckeditor5/show-blocks/translations/vi.js | 1 + .../show-blocks/translations/zh-cn.js | 1 + .../ckeditor5/show-blocks/translations/zh.js | 1 + core/core.libraries.yml | 12 ++++++++++ .../modules/ckeditor5/ckeditor5.ckeditor5.yml | 12 ++++++++++ .../modules/ckeditor5/ckeditor5.libraries.yml | 5 ++++ .../ckeditor5/css/show-blocks.admin.css | 3 +++ core/modules/ckeditor5/icons/show-blocks.svg | 1 + .../ckeditor5/js/build/ckeditor5.types.jsdoc | 24 +++++++++++++++++++ .../src/Plugin/CKEditor4To5Upgrade/Core.php | 4 +++- .../src/Kernel/SmartDefaultSettingsTest.php | 1 + core/package.json | 1 + core/yarn.lock | 8 +++++++ 53 files changed, 117 insertions(+), 1 deletion(-) create mode 100644 core/assets/vendor/ckeditor5/show-blocks/show-blocks.js create mode 100644 core/assets/vendor/ckeditor5/show-blocks/translations/ar.js create mode 100644 core/assets/vendor/ckeditor5/show-blocks/translations/bg.js create mode 100644 core/assets/vendor/ckeditor5/show-blocks/translations/bn.js create mode 100644 core/assets/vendor/ckeditor5/show-blocks/translations/ca.js create mode 100644 core/assets/vendor/ckeditor5/show-blocks/translations/cs.js create mode 100644 core/assets/vendor/ckeditor5/show-blocks/translations/da.js create mode 100644 core/assets/vendor/ckeditor5/show-blocks/translations/de.js create mode 100644 core/assets/vendor/ckeditor5/show-blocks/translations/el.js create mode 100644 core/assets/vendor/ckeditor5/show-blocks/translations/es.js create mode 100644 core/assets/vendor/ckeditor5/show-blocks/translations/et.js create mode 100644 core/assets/vendor/ckeditor5/show-blocks/translations/fi.js create mode 100644 core/assets/vendor/ckeditor5/show-blocks/translations/fr.js create mode 100644 core/assets/vendor/ckeditor5/show-blocks/translations/gl.js create mode 100644 core/assets/vendor/ckeditor5/show-blocks/translations/he.js create mode 100644 core/assets/vendor/ckeditor5/show-blocks/translations/hi.js create mode 100644 core/assets/vendor/ckeditor5/show-blocks/translations/hr.js create mode 100644 core/assets/vendor/ckeditor5/show-blocks/translations/hu.js create mode 100644 core/assets/vendor/ckeditor5/show-blocks/translations/id.js create mode 100644 core/assets/vendor/ckeditor5/show-blocks/translations/it.js create mode 100644 core/assets/vendor/ckeditor5/show-blocks/translations/ja.js create mode 100644 core/assets/vendor/ckeditor5/show-blocks/translations/ko.js create mode 100644 core/assets/vendor/ckeditor5/show-blocks/translations/lt.js create mode 100644 core/assets/vendor/ckeditor5/show-blocks/translations/lv.js create mode 100644 core/assets/vendor/ckeditor5/show-blocks/translations/ms.js create mode 100644 core/assets/vendor/ckeditor5/show-blocks/translations/nl.js create mode 100644 core/assets/vendor/ckeditor5/show-blocks/translations/no.js create mode 100644 core/assets/vendor/ckeditor5/show-blocks/translations/pl.js create mode 100644 core/assets/vendor/ckeditor5/show-blocks/translations/pt-br.js create mode 100644 core/assets/vendor/ckeditor5/show-blocks/translations/pt.js create mode 100644 core/assets/vendor/ckeditor5/show-blocks/translations/ro.js create mode 100644 core/assets/vendor/ckeditor5/show-blocks/translations/ru.js create mode 100644 core/assets/vendor/ckeditor5/show-blocks/translations/sk.js create mode 100644 core/assets/vendor/ckeditor5/show-blocks/translations/sq.js create mode 100644 core/assets/vendor/ckeditor5/show-blocks/translations/sr.js create mode 100644 core/assets/vendor/ckeditor5/show-blocks/translations/sv.js create mode 100644 core/assets/vendor/ckeditor5/show-blocks/translations/th.js create mode 100644 core/assets/vendor/ckeditor5/show-blocks/translations/tr.js create mode 100644 core/assets/vendor/ckeditor5/show-blocks/translations/ug.js create mode 100644 core/assets/vendor/ckeditor5/show-blocks/translations/uk.js create mode 100644 core/assets/vendor/ckeditor5/show-blocks/translations/vi.js create mode 100644 core/assets/vendor/ckeditor5/show-blocks/translations/zh-cn.js create mode 100644 core/assets/vendor/ckeditor5/show-blocks/translations/zh.js create mode 100644 core/modules/ckeditor5/css/show-blocks.admin.css create mode 100644 core/modules/ckeditor5/icons/show-blocks.svg diff --git a/core/assets/vendor/ckeditor5/show-blocks/show-blocks.js b/core/assets/vendor/ckeditor5/show-blocks/show-blocks.js new file mode 100644 index 00000000000..2d0983d636d --- /dev/null +++ b/core/assets/vendor/ckeditor5/show-blocks/show-blocks.js @@ -0,0 +1,5 @@ +!function(e){const t=e.en=e.en||{};t.dictionary=Object.assign(t.dictionary||{},{"Show blocks":"Show blocks"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})), +/*! + * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. + * For licensing, see LICENSE.md. + */(()=>{var e={20:(e,t,o)=>{"use strict";o.d(t,{Z:()=>n});var i=o(609),a=o.n(i)()((function(e){return e[1]}));a.push([e.id,":root{--ck-show-blocks-border-color:#757575}.ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) address:not(.ck-widget_selected):not(.ck-widget:hover){outline:1px dashed var(--ck-show-blocks-border-color)}[dir=ltr] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) address{background-image:url(\"data:image/svg+xml;utf8,ADDRESS\");background-position:1px 1px;background-repeat:no-repeat;padding-top:15px}[dir=rtl] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) address{background-image:url(\"data:image/svg+xml;utf8,ADDRESS\");background-position:calc(100% - 1px) 1px;background-repeat:no-repeat;padding-top:15px}.ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) aside:not(.ck-widget_selected):not(.ck-widget:hover){outline:1px dashed var(--ck-show-blocks-border-color)}[dir=ltr] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) aside{background-image:url(\"data:image/svg+xml;utf8,ASIDE\");background-position:1px 1px;background-repeat:no-repeat;padding-top:15px}[dir=rtl] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) aside{background-image:url(\"data:image/svg+xml;utf8,ASIDE\");background-position:calc(100% - 1px) 1px;background-repeat:no-repeat;padding-top:15px}.ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) blockquote:not(.ck-widget_selected):not(.ck-widget:hover){outline:1px dashed var(--ck-show-blocks-border-color)}[dir=ltr] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) blockquote{background-image:url(\"data:image/svg+xml;utf8,BLOCKQUOTE\");background-position:1px 1px;background-repeat:no-repeat;padding-top:15px}[dir=rtl] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) blockquote{background-image:url(\"data:image/svg+xml;utf8,BLOCKQUOTE\");background-position:calc(100% - 1px) 1px;background-repeat:no-repeat;padding-top:15px}.ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) details:not(.ck-widget_selected):not(.ck-widget:hover){outline:1px dashed var(--ck-show-blocks-border-color)}[dir=ltr] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) details{background-image:url(\"data:image/svg+xml;utf8,DETAILS\");background-position:1px 1px;background-repeat:no-repeat;padding-top:15px}[dir=rtl] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) details{background-image:url(\"data:image/svg+xml;utf8,DETAILS\");background-position:calc(100% - 1px) 1px;background-repeat:no-repeat;padding-top:15px}.ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) div:not(.ck-widget,.ck-widget *):not(.ck-widget_selected):not(.ck-widget:hover){outline:1px dashed var(--ck-show-blocks-border-color)}[dir=ltr] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) div:not(.ck-widget,.ck-widget *){background-image:url(\"data:image/svg+xml;utf8,DIV\");background-position:1px 1px;background-repeat:no-repeat;padding-top:15px}[dir=rtl] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) div:not(.ck-widget,.ck-widget *){background-image:url(\"data:image/svg+xml;utf8,DIV\");background-position:calc(100% - 1px) 1px;background-repeat:no-repeat;padding-top:15px}.ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) footer:not(.ck-widget_selected):not(.ck-widget:hover){outline:1px dashed var(--ck-show-blocks-border-color)}[dir=ltr] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) footer{background-image:url(\"data:image/svg+xml;utf8,FOOTER\");background-position:1px 1px;background-repeat:no-repeat;padding-top:15px}[dir=rtl] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) footer{background-image:url(\"data:image/svg+xml;utf8,FOOTER\");background-position:calc(100% - 1px) 1px;background-repeat:no-repeat;padding-top:15px}.ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) h1:not(.ck-widget_selected):not(.ck-widget:hover){outline:1px dashed var(--ck-show-blocks-border-color)}[dir=ltr] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) h1{background-image:url(\"data:image/svg+xml;utf8,H1\");background-position:1px 1px;background-repeat:no-repeat;padding-top:15px}[dir=rtl] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) h1{background-image:url(\"data:image/svg+xml;utf8,H1\");background-position:calc(100% - 1px) 1px;background-repeat:no-repeat;padding-top:15px}.ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) h2:not(.ck-widget_selected):not(.ck-widget:hover){outline:1px dashed var(--ck-show-blocks-border-color)}[dir=ltr] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) h2{background-image:url(\"data:image/svg+xml;utf8,H2\");background-position:1px 1px;background-repeat:no-repeat;padding-top:15px}[dir=rtl] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) h2{background-image:url(\"data:image/svg+xml;utf8,H2\");background-position:calc(100% - 1px) 1px;background-repeat:no-repeat;padding-top:15px}.ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) h3:not(.ck-widget_selected):not(.ck-widget:hover){outline:1px dashed var(--ck-show-blocks-border-color)}[dir=ltr] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) h3{background-image:url(\"data:image/svg+xml;utf8,H3\");background-position:1px 1px;background-repeat:no-repeat;padding-top:15px}[dir=rtl] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) h3{background-image:url(\"data:image/svg+xml;utf8,H3\");background-position:calc(100% - 1px) 1px;background-repeat:no-repeat;padding-top:15px}.ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) h4:not(.ck-widget_selected):not(.ck-widget:hover){outline:1px dashed var(--ck-show-blocks-border-color)}[dir=ltr] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) h4{background-image:url(\"data:image/svg+xml;utf8,H4\");background-position:1px 1px;background-repeat:no-repeat;padding-top:15px}[dir=rtl] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) h4{background-image:url(\"data:image/svg+xml;utf8,H4\");background-position:calc(100% - 1px) 1px;background-repeat:no-repeat;padding-top:15px}.ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) h5:not(.ck-widget_selected):not(.ck-widget:hover){outline:1px dashed var(--ck-show-blocks-border-color)}[dir=ltr] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) h5{background-image:url(\"data:image/svg+xml;utf8,H5\");background-position:1px 1px;background-repeat:no-repeat;padding-top:15px}[dir=rtl] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) h5{background-image:url(\"data:image/svg+xml;utf8,H5\");background-position:calc(100% - 1px) 1px;background-repeat:no-repeat;padding-top:15px}.ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) h6:not(.ck-widget_selected):not(.ck-widget:hover){outline:1px dashed var(--ck-show-blocks-border-color)}[dir=ltr] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) h6{background-image:url(\"data:image/svg+xml;utf8,H6\");background-position:1px 1px;background-repeat:no-repeat;padding-top:15px}[dir=rtl] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) h6{background-image:url(\"data:image/svg+xml;utf8,H6\");background-position:calc(100% - 1px) 1px;background-repeat:no-repeat;padding-top:15px}.ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) header:not(.ck-widget_selected):not(.ck-widget:hover){outline:1px dashed var(--ck-show-blocks-border-color)}[dir=ltr] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) header{background-image:url(\"data:image/svg+xml;utf8,HEADER\");background-position:1px 1px;background-repeat:no-repeat;padding-top:15px}[dir=rtl] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) header{background-image:url(\"data:image/svg+xml;utf8,HEADER\");background-position:calc(100% - 1px) 1px;background-repeat:no-repeat;padding-top:15px}.ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) main:not(.ck-widget_selected):not(.ck-widget:hover){outline:1px dashed var(--ck-show-blocks-border-color)}[dir=ltr] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) main{background-image:url(\"data:image/svg+xml;utf8,MAIN\");background-position:1px 1px;background-repeat:no-repeat;padding-top:15px}[dir=rtl] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) main{background-image:url(\"data:image/svg+xml;utf8,MAIN\");background-position:calc(100% - 1px) 1px;background-repeat:no-repeat;padding-top:15px}.ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) nav:not(.ck-widget_selected):not(.ck-widget:hover){outline:1px dashed var(--ck-show-blocks-border-color)}[dir=ltr] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) nav{background-image:url(\"data:image/svg+xml;utf8,NAV\");background-position:1px 1px;background-repeat:no-repeat;padding-top:15px}[dir=rtl] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) nav{background-image:url(\"data:image/svg+xml;utf8,NAV\");background-position:calc(100% - 1px) 1px;background-repeat:no-repeat;padding-top:15px}.ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) pre:not(.ck-widget_selected):not(.ck-widget:hover){outline:1px dashed var(--ck-show-blocks-border-color)}[dir=ltr] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) pre{background-image:url(\"data:image/svg+xml;utf8,PRE\");background-position:1px 1px;background-repeat:no-repeat;padding-top:15px}[dir=rtl] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) pre{background-image:url(\"data:image/svg+xml;utf8,PRE\");background-position:calc(100% - 1px) 1px;background-repeat:no-repeat;padding-top:15px}.ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) ol:not(.ck-widget_selected):not(.ck-widget:hover){outline:1px dashed var(--ck-show-blocks-border-color)}[dir=ltr] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) ol{background-image:url(\"data:image/svg+xml;utf8,OL\");background-position:1px 1px;background-repeat:no-repeat;padding-top:15px}[dir=rtl] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) ol{background-image:url(\"data:image/svg+xml;utf8,OL\");background-position:calc(100% - 1px) 1px;background-repeat:no-repeat;padding-top:15px}.ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) ul:not(.ck-widget_selected):not(.ck-widget:hover){outline:1px dashed var(--ck-show-blocks-border-color)}[dir=ltr] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) ul{background-image:url(\"data:image/svg+xml;utf8,UL\");background-position:1px 1px;background-repeat:no-repeat;padding-top:15px}[dir=rtl] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) ul{background-image:url(\"data:image/svg+xml;utf8,UL\");background-position:calc(100% - 1px) 1px;background-repeat:no-repeat;padding-top:15px}.ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) p:not(.ck-widget_selected):not(.ck-widget:hover){outline:1px dashed var(--ck-show-blocks-border-color)}[dir=ltr] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) p{background-image:url(\"data:image/svg+xml;utf8,P\");background-position:1px 1px;background-repeat:no-repeat;padding-top:15px}[dir=rtl] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) p{background-image:url(\"data:image/svg+xml;utf8,P\");background-position:calc(100% - 1px) 1px;background-repeat:no-repeat;padding-top:15px}.ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) section:not(.ck-widget_selected):not(.ck-widget:hover){outline:1px dashed var(--ck-show-blocks-border-color)}[dir=ltr] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) section{background-image:url(\"data:image/svg+xml;utf8,SECTION\");background-position:1px 1px;background-repeat:no-repeat;padding-top:15px}[dir=rtl] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) section{background-image:url(\"data:image/svg+xml;utf8,SECTION\");background-position:calc(100% - 1px) 1px;background-repeat:no-repeat;padding-top:15px}.ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) :where(figure.image,figure.table) figcaption:not(.ck-widget_selected):not(.ck-widget:hover){outline:1px dashed var(--ck-show-blocks-border-color)}[dir=ltr] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) :where(figure.image,figure.table) figcaption{background-image:url(\"data:image/svg+xml;utf8,FIGCAPTION\");background-position:1px 1px;background-repeat:no-repeat;padding-top:15px}[dir=rtl] .ck.ck-editor__editable.ck-editor__editable_inline.ck-show-blocks:not(.ck-widget) :where(figure.image,figure.table) figcaption{background-image:url(\"data:image/svg+xml;utf8,FIGCAPTION\");background-position:calc(100% - 1px) 1px;background-repeat:no-repeat;padding-top:15px}",""]);const n=a},609:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var o=e(t);return t[2]?"@media ".concat(t[2]," {").concat(o,"}"):o})).join("")},t.i=function(e,o,i){"string"==typeof e&&(e=[[null,e,""]]);var a={};if(i)for(var n=0;n{"use strict";var i,a=function(){return void 0===i&&(i=Boolean(window&&document&&document.all&&!window.atob)),i},n=function(){var e={};return function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(e){o=null}e[t]=o}return e[t]}}(),r=[];function s(e){for(var t=-1,o=0;o{e.exports=o(79)("./src/core.js")},273:(e,t,o)=>{e.exports=o(79)("./src/ui.js")},79:e=>{"use strict";e.exports=CKEditor5.dll}},t={};function o(i){var a=t[i];if(void 0!==a)return a.exports;var n=t[i]={id:i,exports:{}};return e[i](n,n.exports,o),n.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var i in t)o.o(t,i)&&!o.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nc=void 0;var i={};(()=>{"use strict";o.r(i),o.d(i,{ShowBlocks:()=>p,ShowBlocksCommand:()=>t,ShowBlocksEditing:()=>a,ShowBlocksUI:()=>c});var e=o(704);class t extends e.Command{constructor(e){super(e),this.affectsData=!1,this.value=!1}execute(){const e="ck-show-blocks",t=this.editor.editing.view;t.change((o=>{for(const i of t.document.roots)i.hasClass(e)?(o.removeClass(e,i),this.value=!1):(o.addClass(e,i),this.value=!0)}))}}class a extends e.Plugin{static get pluginName(){return"ShowBlocksEditing"}init(){const{editor:e}=this;e.commands.add("showBlocks",new t(e))}}var n=o(273);var r=o(62),s=o.n(r),d=o(20),l={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};s()(d.Z,l);d.Z.locals;class c extends e.Plugin{static get pluginName(){return"ShowBlocksUI"}init(){const e=this.editor;e.ui.componentFactory.add("showBlocks",(t=>{const o=e.commands.get("showBlocks"),i=new n.ButtonView(t),a=t.t;return i.set({label:a("Show blocks"),icon:'',tooltip:!0}),i.bind("isOn").to(o,"value",o,"isEnabled",((e,t)=>e&&t)),i.bind("isEnabled").to(o),this.listenTo(i,"execute",(()=>{e.execute("showBlocks"),e.editing.view.focus()})),i}))}}class p extends e.Plugin{static get pluginName(){return"ShowBlocks"}static get requires(){return[a,c]}}})(),(window.CKEditor5=window.CKEditor5||{}).showBlocks=i})(); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/show-blocks/translations/ar.js b/core/assets/vendor/ckeditor5/show-blocks/translations/ar.js new file mode 100644 index 00000000000..d8c6dc37c2f --- /dev/null +++ b/core/assets/vendor/ckeditor5/show-blocks/translations/ar.js @@ -0,0 +1 @@ +!function(i){const n=i.ar=i.ar||{};n.dictionary=Object.assign(n.dictionary||{},{"Show blocks":"عرض الكتل"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/show-blocks/translations/bg.js b/core/assets/vendor/ckeditor5/show-blocks/translations/bg.js new file mode 100644 index 00000000000..60a33f3c121 --- /dev/null +++ b/core/assets/vendor/ckeditor5/show-blocks/translations/bg.js @@ -0,0 +1 @@ +!function(i){const n=i.bg=i.bg||{};n.dictionary=Object.assign(n.dictionary||{},{"Show blocks":"Покажи блокове"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/show-blocks/translations/bn.js b/core/assets/vendor/ckeditor5/show-blocks/translations/bn.js new file mode 100644 index 00000000000..2f4771fc9e4 --- /dev/null +++ b/core/assets/vendor/ckeditor5/show-blocks/translations/bn.js @@ -0,0 +1 @@ +!function(n){const i=n.bn=n.bn||{};i.dictionary=Object.assign(i.dictionary||{},{"Show blocks":"ব্লকগুলি দেখান"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/show-blocks/translations/ca.js b/core/assets/vendor/ckeditor5/show-blocks/translations/ca.js new file mode 100644 index 00000000000..05a8476df9c --- /dev/null +++ b/core/assets/vendor/ckeditor5/show-blocks/translations/ca.js @@ -0,0 +1 @@ +!function(o){const c=o.ca=o.ca||{};c.dictionary=Object.assign(c.dictionary||{},{"Show blocks":"Mostra blocs"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/show-blocks/translations/cs.js b/core/assets/vendor/ckeditor5/show-blocks/translations/cs.js new file mode 100644 index 00000000000..c79a9bde5e8 --- /dev/null +++ b/core/assets/vendor/ckeditor5/show-blocks/translations/cs.js @@ -0,0 +1 @@ +!function(o){const i=o.cs=o.cs||{};i.dictionary=Object.assign(i.dictionary||{},{"Show blocks":"Zobrazit bloky"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/show-blocks/translations/da.js b/core/assets/vendor/ckeditor5/show-blocks/translations/da.js new file mode 100644 index 00000000000..738de67ac9e --- /dev/null +++ b/core/assets/vendor/ckeditor5/show-blocks/translations/da.js @@ -0,0 +1 @@ +!function(i){const o=i.da=i.da||{};o.dictionary=Object.assign(o.dictionary||{},{"Show blocks":"Vis blokke"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/show-blocks/translations/de.js b/core/assets/vendor/ckeditor5/show-blocks/translations/de.js new file mode 100644 index 00000000000..94d05d7a7f6 --- /dev/null +++ b/core/assets/vendor/ckeditor5/show-blocks/translations/de.js @@ -0,0 +1 @@ +!function(n){const i=n.de=n.de||{};i.dictionary=Object.assign(i.dictionary||{},{"Show blocks":"Blöcke anzeigen"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/show-blocks/translations/el.js b/core/assets/vendor/ckeditor5/show-blocks/translations/el.js new file mode 100644 index 00000000000..acb816dfda1 --- /dev/null +++ b/core/assets/vendor/ckeditor5/show-blocks/translations/el.js @@ -0,0 +1 @@ +!function(i){const n=i.el=i.el||{};n.dictionary=Object.assign(n.dictionary||{},{"Show blocks":"Εμφάνιση μπλοκ"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/show-blocks/translations/es.js b/core/assets/vendor/ckeditor5/show-blocks/translations/es.js new file mode 100644 index 00000000000..031b64b2bc5 --- /dev/null +++ b/core/assets/vendor/ckeditor5/show-blocks/translations/es.js @@ -0,0 +1 @@ +!function(o){const i=o.es=o.es||{};i.dictionary=Object.assign(i.dictionary||{},{"Show blocks":"Mostrar bloques"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/show-blocks/translations/et.js b/core/assets/vendor/ckeditor5/show-blocks/translations/et.js new file mode 100644 index 00000000000..8187d85ddfb --- /dev/null +++ b/core/assets/vendor/ckeditor5/show-blocks/translations/et.js @@ -0,0 +1 @@ +!function(i){const o=i.et=i.et||{};o.dictionary=Object.assign(o.dictionary||{},{"Show blocks":"Kuva plokid"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/show-blocks/translations/fi.js b/core/assets/vendor/ckeditor5/show-blocks/translations/fi.js new file mode 100644 index 00000000000..3b4e1d82e99 --- /dev/null +++ b/core/assets/vendor/ckeditor5/show-blocks/translations/fi.js @@ -0,0 +1 @@ +!function(i){const n=i.fi=i.fi||{};n.dictionary=Object.assign(n.dictionary||{},{"Show blocks":"Näytä rakenneosat"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/show-blocks/translations/fr.js b/core/assets/vendor/ckeditor5/show-blocks/translations/fr.js new file mode 100644 index 00000000000..91c86693313 --- /dev/null +++ b/core/assets/vendor/ckeditor5/show-blocks/translations/fr.js @@ -0,0 +1 @@ +!function(i){const o=i.fr=i.fr||{};o.dictionary=Object.assign(o.dictionary||{},{"Show blocks":"Afficher les blocs"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/show-blocks/translations/gl.js b/core/assets/vendor/ckeditor5/show-blocks/translations/gl.js new file mode 100644 index 00000000000..d3a786b3dee --- /dev/null +++ b/core/assets/vendor/ckeditor5/show-blocks/translations/gl.js @@ -0,0 +1 @@ +!function(o){const i=o.gl=o.gl||{};i.dictionary=Object.assign(i.dictionary||{},{"Show blocks":"Amosar os bloques"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/show-blocks/translations/he.js b/core/assets/vendor/ckeditor5/show-blocks/translations/he.js new file mode 100644 index 00000000000..21c91b2482b --- /dev/null +++ b/core/assets/vendor/ckeditor5/show-blocks/translations/he.js @@ -0,0 +1 @@ +!function(i){const n=i.he=i.he||{};n.dictionary=Object.assign(n.dictionary||{},{"Show blocks":"הצג גושים"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/show-blocks/translations/hi.js b/core/assets/vendor/ckeditor5/show-blocks/translations/hi.js new file mode 100644 index 00000000000..b52cf332697 --- /dev/null +++ b/core/assets/vendor/ckeditor5/show-blocks/translations/hi.js @@ -0,0 +1 @@ +!function(i){const n=i.hi=i.hi||{};n.dictionary=Object.assign(n.dictionary||{},{"Show blocks":"ब्लॉक दिखाएं"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/show-blocks/translations/hr.js b/core/assets/vendor/ckeditor5/show-blocks/translations/hr.js new file mode 100644 index 00000000000..97f2091083a --- /dev/null +++ b/core/assets/vendor/ckeditor5/show-blocks/translations/hr.js @@ -0,0 +1 @@ +!function(i){const o=i.hr=i.hr||{};o.dictionary=Object.assign(o.dictionary||{},{"Show blocks":"Prikaži blokove"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/show-blocks/translations/hu.js b/core/assets/vendor/ckeditor5/show-blocks/translations/hu.js new file mode 100644 index 00000000000..138e1bc6d93 --- /dev/null +++ b/core/assets/vendor/ckeditor5/show-blocks/translations/hu.js @@ -0,0 +1 @@ +!function(o){const n=o.hu=o.hu||{};n.dictionary=Object.assign(n.dictionary||{},{"Show blocks":"Blokkok megjelenítése"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/show-blocks/translations/id.js b/core/assets/vendor/ckeditor5/show-blocks/translations/id.js new file mode 100644 index 00000000000..c3e7a8410b2 --- /dev/null +++ b/core/assets/vendor/ckeditor5/show-blocks/translations/id.js @@ -0,0 +1 @@ +!function(i){const n=i.id=i.id||{};n.dictionary=Object.assign(n.dictionary||{},{"Show blocks":"Tampilkan blok"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/show-blocks/translations/it.js b/core/assets/vendor/ckeditor5/show-blocks/translations/it.js new file mode 100644 index 00000000000..64236704918 --- /dev/null +++ b/core/assets/vendor/ckeditor5/show-blocks/translations/it.js @@ -0,0 +1 @@ +!function(i){const o=i.it=i.it||{};o.dictionary=Object.assign(o.dictionary||{},{"Show blocks":"Mostra blocchi"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/show-blocks/translations/ja.js b/core/assets/vendor/ckeditor5/show-blocks/translations/ja.js new file mode 100644 index 00000000000..dc7831fa69d --- /dev/null +++ b/core/assets/vendor/ckeditor5/show-blocks/translations/ja.js @@ -0,0 +1 @@ +!function(i){const n=i.ja=i.ja||{};n.dictionary=Object.assign(n.dictionary||{},{"Show blocks":"ブロックを表示します"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/show-blocks/translations/ko.js b/core/assets/vendor/ckeditor5/show-blocks/translations/ko.js new file mode 100644 index 00000000000..1454323ab6a --- /dev/null +++ b/core/assets/vendor/ckeditor5/show-blocks/translations/ko.js @@ -0,0 +1 @@ +!function(o){const i=o.ko=o.ko||{};i.dictionary=Object.assign(i.dictionary||{},{"Show blocks":"블록 표시"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/show-blocks/translations/lt.js b/core/assets/vendor/ckeditor5/show-blocks/translations/lt.js new file mode 100644 index 00000000000..7add745dc71 --- /dev/null +++ b/core/assets/vendor/ckeditor5/show-blocks/translations/lt.js @@ -0,0 +1 @@ +!function(o){const i=o.lt=o.lt||{};i.dictionary=Object.assign(i.dictionary||{},{"Show blocks":"Rodyti blokus"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/show-blocks/translations/lv.js b/core/assets/vendor/ckeditor5/show-blocks/translations/lv.js new file mode 100644 index 00000000000..ed331db9a4e --- /dev/null +++ b/core/assets/vendor/ckeditor5/show-blocks/translations/lv.js @@ -0,0 +1 @@ +!function(o){const i=o.lv=o.lv||{};i.dictionary=Object.assign(i.dictionary||{},{"Show blocks":"Rādīt blokus"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/show-blocks/translations/ms.js b/core/assets/vendor/ckeditor5/show-blocks/translations/ms.js new file mode 100644 index 00000000000..601970b9cd4 --- /dev/null +++ b/core/assets/vendor/ckeditor5/show-blocks/translations/ms.js @@ -0,0 +1 @@ +!function(n){const o=n.ms=n.ms||{};o.dictionary=Object.assign(o.dictionary||{},{"Show blocks":"Tunjukkan blok"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/show-blocks/translations/nl.js b/core/assets/vendor/ckeditor5/show-blocks/translations/nl.js new file mode 100644 index 00000000000..baf4cc31565 --- /dev/null +++ b/core/assets/vendor/ckeditor5/show-blocks/translations/nl.js @@ -0,0 +1 @@ +!function(n){const o=n.nl=n.nl||{};o.dictionary=Object.assign(o.dictionary||{},{"Show blocks":"Blokken tonen"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/show-blocks/translations/no.js b/core/assets/vendor/ckeditor5/show-blocks/translations/no.js new file mode 100644 index 00000000000..72db1a6e362 --- /dev/null +++ b/core/assets/vendor/ckeditor5/show-blocks/translations/no.js @@ -0,0 +1 @@ +!function(o){const n=o.no=o.no||{};n.dictionary=Object.assign(n.dictionary||{},{"Show blocks":"Vis blokker"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/show-blocks/translations/pl.js b/core/assets/vendor/ckeditor5/show-blocks/translations/pl.js new file mode 100644 index 00000000000..d61f0e8621b --- /dev/null +++ b/core/assets/vendor/ckeditor5/show-blocks/translations/pl.js @@ -0,0 +1 @@ +!function(i){const o=i.pl=i.pl||{};o.dictionary=Object.assign(o.dictionary||{},{"Show blocks":"Wyświetl bloki"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/show-blocks/translations/pt-br.js b/core/assets/vendor/ckeditor5/show-blocks/translations/pt-br.js new file mode 100644 index 00000000000..3178a405da8 --- /dev/null +++ b/core/assets/vendor/ckeditor5/show-blocks/translations/pt-br.js @@ -0,0 +1 @@ +!function(o){const i=o["pt-br"]=o["pt-br"]||{};i.dictionary=Object.assign(i.dictionary||{},{"Show blocks":"Mostrar blocos"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/show-blocks/translations/pt.js b/core/assets/vendor/ckeditor5/show-blocks/translations/pt.js new file mode 100644 index 00000000000..f5b93ef2679 --- /dev/null +++ b/core/assets/vendor/ckeditor5/show-blocks/translations/pt.js @@ -0,0 +1 @@ +!function(o){const i=o.pt=o.pt||{};i.dictionary=Object.assign(i.dictionary||{},{"Show blocks":"Mostrar blocos"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/show-blocks/translations/ro.js b/core/assets/vendor/ckeditor5/show-blocks/translations/ro.js new file mode 100644 index 00000000000..74447497824 --- /dev/null +++ b/core/assets/vendor/ckeditor5/show-blocks/translations/ro.js @@ -0,0 +1 @@ +!function(o){const i=o.ro=o.ro||{};i.dictionary=Object.assign(i.dictionary||{},{"Show blocks":"Arată casetele"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/show-blocks/translations/ru.js b/core/assets/vendor/ckeditor5/show-blocks/translations/ru.js new file mode 100644 index 00000000000..bebc9a52390 --- /dev/null +++ b/core/assets/vendor/ckeditor5/show-blocks/translations/ru.js @@ -0,0 +1 @@ +!function(i){const n=i.ru=i.ru||{};n.dictionary=Object.assign(n.dictionary||{},{"Show blocks":"Показать блоки"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/show-blocks/translations/sk.js b/core/assets/vendor/ckeditor5/show-blocks/translations/sk.js new file mode 100644 index 00000000000..d1e0553ea02 --- /dev/null +++ b/core/assets/vendor/ckeditor5/show-blocks/translations/sk.js @@ -0,0 +1 @@ +!function(o){const i=o.sk=o.sk||{};i.dictionary=Object.assign(i.dictionary||{},{"Show blocks":"Zobraziť bloky"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/show-blocks/translations/sq.js b/core/assets/vendor/ckeditor5/show-blocks/translations/sq.js new file mode 100644 index 00000000000..7c8f9b66782 --- /dev/null +++ b/core/assets/vendor/ckeditor5/show-blocks/translations/sq.js @@ -0,0 +1 @@ +!function(o){const i=o.sq=o.sq||{};i.dictionary=Object.assign(i.dictionary||{},{"Show blocks":"Shfaq blloqet"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/show-blocks/translations/sr.js b/core/assets/vendor/ckeditor5/show-blocks/translations/sr.js new file mode 100644 index 00000000000..3059bde7dcf --- /dev/null +++ b/core/assets/vendor/ckeditor5/show-blocks/translations/sr.js @@ -0,0 +1 @@ +!function(i){const o=i.sr=i.sr||{};o.dictionary=Object.assign(o.dictionary||{},{"Show blocks":"Prikaži blokove"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/show-blocks/translations/sv.js b/core/assets/vendor/ckeditor5/show-blocks/translations/sv.js new file mode 100644 index 00000000000..1ed7e0cd5c3 --- /dev/null +++ b/core/assets/vendor/ckeditor5/show-blocks/translations/sv.js @@ -0,0 +1 @@ +!function(i){const o=i.sv=i.sv||{};o.dictionary=Object.assign(o.dictionary||{},{"Show blocks":"Visa block"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/show-blocks/translations/th.js b/core/assets/vendor/ckeditor5/show-blocks/translations/th.js new file mode 100644 index 00000000000..662ed67067f --- /dev/null +++ b/core/assets/vendor/ckeditor5/show-blocks/translations/th.js @@ -0,0 +1 @@ +!function(i){const n=i.th=i.th||{};n.dictionary=Object.assign(n.dictionary||{},{"Show blocks":"แสดงบล็อก"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/show-blocks/translations/tr.js b/core/assets/vendor/ckeditor5/show-blocks/translations/tr.js new file mode 100644 index 00000000000..995683849ec --- /dev/null +++ b/core/assets/vendor/ckeditor5/show-blocks/translations/tr.js @@ -0,0 +1 @@ +!function(o){const i=o.tr=o.tr||{};i.dictionary=Object.assign(i.dictionary||{},{"Show blocks":"Blokları göster"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/show-blocks/translations/ug.js b/core/assets/vendor/ckeditor5/show-blocks/translations/ug.js new file mode 100644 index 00000000000..02761052c56 --- /dev/null +++ b/core/assets/vendor/ckeditor5/show-blocks/translations/ug.js @@ -0,0 +1 @@ +!function(i){const n=i.ug=i.ug||{};n.dictionary=Object.assign(n.dictionary||{},{"Show blocks":"بۆلەكلەرنى كۆرسەت"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/show-blocks/translations/uk.js b/core/assets/vendor/ckeditor5/show-blocks/translations/uk.js new file mode 100644 index 00000000000..a9eaa04e9fd --- /dev/null +++ b/core/assets/vendor/ckeditor5/show-blocks/translations/uk.js @@ -0,0 +1 @@ +!function(i){const n=i.uk=i.uk||{};n.dictionary=Object.assign(n.dictionary||{},{"Show blocks":"Показати блоки"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/show-blocks/translations/vi.js b/core/assets/vendor/ckeditor5/show-blocks/translations/vi.js new file mode 100644 index 00000000000..7fac48961e1 --- /dev/null +++ b/core/assets/vendor/ckeditor5/show-blocks/translations/vi.js @@ -0,0 +1 @@ +!function(i){const n=i.vi=i.vi||{};n.dictionary=Object.assign(n.dictionary||{},{"Show blocks":"Hiện các khối"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/show-blocks/translations/zh-cn.js b/core/assets/vendor/ckeditor5/show-blocks/translations/zh-cn.js new file mode 100644 index 00000000000..902e9d93c30 --- /dev/null +++ b/core/assets/vendor/ckeditor5/show-blocks/translations/zh-cn.js @@ -0,0 +1 @@ +!function(n){const c=n["zh-cn"]=n["zh-cn"]||{};c.dictionary=Object.assign(c.dictionary||{},{"Show blocks":"显示区块"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/assets/vendor/ckeditor5/show-blocks/translations/zh.js b/core/assets/vendor/ckeditor5/show-blocks/translations/zh.js new file mode 100644 index 00000000000..a8b20fa7eb2 --- /dev/null +++ b/core/assets/vendor/ckeditor5/show-blocks/translations/zh.js @@ -0,0 +1 @@ +!function(i){const n=i.zh=i.zh||{};n.dictionary=Object.assign(n.dictionary||{},{"Show blocks":"顯示區塊"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})); \ No newline at end of file diff --git a/core/core.libraries.yml b/core/core.libraries.yml index 7df34ed0ea2..97826c1ffd1 100644 --- a/core/core.libraries.yml +++ b/core/core.libraries.yml @@ -292,6 +292,18 @@ ckeditor5.codeBlock: - core/ckeditor5 - core/ckeditor5.translations +ckeditor5.showBlocks: + remote: https://github.com/ckeditor/ckeditor5 + version: "39.0.1" + license: + name: GNU-GPL-2.0-or-later + url: https://raw.githubusercontent.com/ckeditor/ckeditor5/v37.1.0/LICENSE.md + gpl-compatible: true + js: + assets/vendor/ckeditor5/show-blocks/show-blocks.js: { minified: true } + dependencies: + - core/ckeditor5 + ckeditor5.style: remote: https://github.com/ckeditor/ckeditor5 version: "39.0.1" diff --git a/core/modules/ckeditor5/ckeditor5.ckeditor5.yml b/core/modules/ckeditor5/ckeditor5.ckeditor5.yml index 45c96eaf0da..82c48625dc6 100644 --- a/core/modules/ckeditor5/ckeditor5.ckeditor5.yml +++ b/core/modules/ckeditor5/ckeditor5.ckeditor5.yml @@ -689,6 +689,18 @@ ckeditor5_language: elements: - +ckeditor5_showBlocks: + ckeditor5: + plugins: [showBlocks.ShowBlocks] + drupal: + label: Show blocks + library: core/ckeditor5.showBlocks + admin_library: ckeditor5/internal.admin.showBlocks + toolbar_items: + showBlocks: + label: Show blocks + elements: false + media_media: provider: media ckeditor5: diff --git a/core/modules/ckeditor5/ckeditor5.libraries.yml b/core/modules/ckeditor5/ckeditor5.libraries.yml index 5d71066f437..70ebcf51704 100644 --- a/core/modules/ckeditor5/ckeditor5.libraries.yml +++ b/core/modules/ckeditor5/ckeditor5.libraries.yml @@ -187,6 +187,11 @@ internal.admin.drupalmedia: theme: css/drupalmedia.admin.css: { } +internal.admin.showBlocks: + css: + theme: + css/show-blocks.admin.css: { } + internal.admin.sourceEditing: css: theme: diff --git a/core/modules/ckeditor5/css/show-blocks.admin.css b/core/modules/ckeditor5/css/show-blocks.admin.css new file mode 100644 index 00000000000..1c66d1bca0f --- /dev/null +++ b/core/modules/ckeditor5/css/show-blocks.admin.css @@ -0,0 +1,3 @@ +.ckeditor5-toolbar-button-showBlocks { + background-image: url(../icons/show-blocks.svg); +} diff --git a/core/modules/ckeditor5/icons/show-blocks.svg b/core/modules/ckeditor5/icons/show-blocks.svg new file mode 100644 index 00000000000..93ca0b1b68b --- /dev/null +++ b/core/modules/ckeditor5/icons/show-blocks.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/core/modules/ckeditor5/js/build/ckeditor5.types.jsdoc b/core/modules/ckeditor5/js/build/ckeditor5.types.jsdoc index f6123798dd9..beca3f70bc6 100644 --- a/core/modules/ckeditor5/js/build/ckeditor5.types.jsdoc +++ b/core/modules/ckeditor5/js/build/ckeditor5.types.jsdoc @@ -1672,6 +1672,30 @@ * @typedef {module:select-all/selectallui} module:select-all/selectallui~SelectAllUI */ +/** + * Declared in file @ckeditor/ckeditor5-show-blocks/src/showblocks.js + * + * @typedef {module:show-blocks/showblocks} module:show-blocks/showblocks~ShowBlocks + */ + +/** + * Declared in file @ckeditor/ckeditor5-show-blocks/src/showblockscommand.js + * + * @typedef {module:show-blocks/showblockscommand} module:show-blocks/showblockscommand~ShowBlocksCommand + */ + +/** + * Declared in file @ckeditor/ckeditor5-show-blocks/src/showblocksediting.js + * + * @typedef {module:show-blocks/showblocksediting} module:show-blocks/showblocksediting~ShowBlocksEditing + */ + +/** + * Declared in file @ckeditor/ckeditor5-show-blocks/src/showblocksui.js + * + * @typedef {module:show-blocks/showblocksui} module:show-blocks/showblocksui~ShowBlocksUI + */ + /** * Declared in file @ckeditor/ckeditor5-source-editing/src/sourceediting.js * diff --git a/core/modules/ckeditor5/src/Plugin/CKEditor4To5Upgrade/Core.php b/core/modules/ckeditor5/src/Plugin/CKEditor4To5Upgrade/Core.php index 64cca06877d..be49651d9ec 100644 --- a/core/modules/ckeditor5/src/Plugin/CKEditor4To5Upgrade/Core.php +++ b/core/modules/ckeditor5/src/Plugin/CKEditor4To5Upgrade/Core.php @@ -153,12 +153,14 @@ class Core extends PluginBase implements CKEditor4To5UpgradePluginInterface { case 'Paste': case 'PasteText': case 'PasteFromWord': - case 'ShowBlocks': case 'Maximize': case '-': // @see https://www.drupal.org/project/ckeditor5/issues/3211049#comment-14167764 return NULL; + case 'ShowBlocks': + return ['showBlocks']; + // @see \Drupal\ckeditor5\Plugin\CKEditor5Plugin\RemoveFormat case 'RemoveFormat': return ['removeFormat']; diff --git a/core/modules/ckeditor5/tests/src/Kernel/SmartDefaultSettingsTest.php b/core/modules/ckeditor5/tests/src/Kernel/SmartDefaultSettingsTest.php index 04581130800..7037d89bf29 100644 --- a/core/modules/ckeditor5/tests/src/Kernel/SmartDefaultSettingsTest.php +++ b/core/modules/ckeditor5/tests/src/Kernel/SmartDefaultSettingsTest.php @@ -1280,6 +1280,7 @@ class SmartDefaultSettingsTest extends KernelTestBase { 'heading', 'codeBlock', '|', + 'showBlocks', 'sourceEditing', ], ], diff --git a/core/package.json b/core/package.json index cb162cfb536..8b75358b144 100644 --- a/core/package.json +++ b/core/package.json @@ -50,6 +50,7 @@ "@ckeditor/ckeditor5-list": "~39.0.1", "@ckeditor/ckeditor5-paste-from-office": "~39.0.1", "@ckeditor/ckeditor5-remove-format": "~39.0.1", + "@ckeditor/ckeditor5-show-blocks": "~39.0.1", "@ckeditor/ckeditor5-source-editing": "~39.0.1", "@ckeditor/ckeditor5-special-characters": "~39.0.1", "@ckeditor/ckeditor5-style": "~39.0.1", diff --git a/core/yarn.lock b/core/yarn.lock index d0c58c4457d..c71c6d4126a 100644 --- a/core/yarn.lock +++ b/core/yarn.lock @@ -218,6 +218,14 @@ "@ckeditor/ckeditor5-ui" "39.0.1" "@ckeditor/ckeditor5-utils" "39.0.1" +"@ckeditor/ckeditor5-show-blocks@~39.0.1": + version "39.0.1" + resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-show-blocks/-/ckeditor5-show-blocks-39.0.1.tgz#3b2b10f2b611516e6d7f2fe0cd9a20b6e54778dc" + integrity sha512-oYCmv557EqDDNPZQ6EUri6ZgiOymjIxoE4m2HV6nvapjKWKyVQOl/z+zwhV5DHCfqLlIyl3ODiHuUqrTVJUEaw== + dependencies: + "@ckeditor/ckeditor5-ui" "39.0.1" + ckeditor5 "39.0.1" + "@ckeditor/ckeditor5-source-editing@~39.0.1": version "39.0.1" resolved "https://registry.yarnpkg.com/@ckeditor/ckeditor5-source-editing/-/ckeditor5-source-editing-39.0.1.tgz#c1dd151bdd0bbb564dc017fc758c645ffd299896"