@ckeditor/ckeditor5-slash-command 44.1.0-alpha.5 → 44.2.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +1 -1
- package/README.md +1 -1
- package/build/slash-command.js +3 -3
- package/build/translations/af.js +1 -1
- package/build/translations/ar.js +1 -1
- package/build/translations/ast.js +1 -1
- package/build/translations/az.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/bs.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de-ch.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/en-gb.js +1 -1
- package/build/translations/eo.js +1 -1
- package/build/translations/es-co.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/eu.js +1 -1
- package/build/translations/fa.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/gu.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/hy.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/jv.js +1 -1
- package/build/translations/kk.js +1 -1
- package/build/translations/km.js +1 -1
- package/build/translations/kn.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/ku.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nb.js +1 -1
- package/build/translations/ne.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/oc.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/si.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sl.js +1 -1
- package/build/translations/sq.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/ti.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -1
- package/build/translations/ug.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/uz.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/dist/index-content.css +2 -2
- package/dist/index-editor.css +2 -2
- package/dist/index.css +4 -4
- package/dist/index.js +2 -2
- package/dist/translations/af.d.ts +2 -2
- package/dist/translations/af.js +2 -2
- package/dist/translations/af.umd.js +2 -2
- package/dist/translations/ar.d.ts +2 -2
- package/dist/translations/ar.js +2 -2
- package/dist/translations/ar.umd.js +2 -2
- package/dist/translations/ast.d.ts +2 -2
- package/dist/translations/ast.js +2 -2
- package/dist/translations/ast.umd.js +2 -2
- package/dist/translations/az.d.ts +2 -2
- package/dist/translations/az.js +2 -2
- package/dist/translations/az.umd.js +2 -2
- package/dist/translations/bg.d.ts +2 -2
- package/dist/translations/bg.js +2 -2
- package/dist/translations/bg.umd.js +2 -2
- package/dist/translations/bn.d.ts +2 -2
- package/dist/translations/bn.js +2 -2
- package/dist/translations/bn.umd.js +2 -2
- package/dist/translations/bs.d.ts +2 -2
- package/dist/translations/bs.js +2 -2
- package/dist/translations/bs.umd.js +2 -2
- package/dist/translations/ca.d.ts +2 -2
- package/dist/translations/ca.js +2 -2
- package/dist/translations/ca.umd.js +2 -2
- package/dist/translations/cs.d.ts +2 -2
- package/dist/translations/cs.js +2 -2
- package/dist/translations/cs.umd.js +2 -2
- package/dist/translations/da.d.ts +2 -2
- package/dist/translations/da.js +2 -2
- package/dist/translations/da.umd.js +2 -2
- package/dist/translations/de-ch.d.ts +2 -2
- package/dist/translations/de-ch.js +2 -2
- package/dist/translations/de-ch.umd.js +2 -2
- package/dist/translations/de.d.ts +2 -2
- package/dist/translations/de.js +2 -2
- package/dist/translations/de.umd.js +2 -2
- package/dist/translations/el.d.ts +2 -2
- package/dist/translations/el.js +2 -2
- package/dist/translations/el.umd.js +2 -2
- package/dist/translations/en-au.d.ts +2 -2
- package/dist/translations/en-au.js +2 -2
- package/dist/translations/en-au.umd.js +2 -2
- package/dist/translations/en-gb.d.ts +2 -2
- package/dist/translations/en-gb.js +2 -2
- package/dist/translations/en-gb.umd.js +2 -2
- package/dist/translations/en.d.ts +2 -2
- package/dist/translations/en.js +2 -2
- package/dist/translations/en.umd.js +2 -2
- package/dist/translations/eo.d.ts +2 -2
- package/dist/translations/eo.js +2 -2
- package/dist/translations/eo.umd.js +2 -2
- package/dist/translations/es-co.d.ts +2 -2
- package/dist/translations/es-co.js +2 -2
- package/dist/translations/es-co.umd.js +2 -2
- package/dist/translations/es.d.ts +2 -2
- package/dist/translations/es.js +2 -2
- package/dist/translations/es.umd.js +2 -2
- package/dist/translations/et.d.ts +2 -2
- package/dist/translations/et.js +2 -2
- package/dist/translations/et.umd.js +2 -2
- package/dist/translations/eu.d.ts +2 -2
- package/dist/translations/eu.js +2 -2
- package/dist/translations/eu.umd.js +2 -2
- package/dist/translations/fa.d.ts +2 -2
- package/dist/translations/fa.js +2 -2
- package/dist/translations/fa.umd.js +2 -2
- package/dist/translations/fi.d.ts +2 -2
- package/dist/translations/fi.js +2 -2
- package/dist/translations/fi.umd.js +2 -2
- package/dist/translations/fr.d.ts +2 -2
- package/dist/translations/fr.js +2 -2
- package/dist/translations/fr.umd.js +2 -2
- package/dist/translations/gl.d.ts +2 -2
- package/dist/translations/gl.js +2 -2
- package/dist/translations/gl.umd.js +2 -2
- package/dist/translations/gu.d.ts +2 -2
- package/dist/translations/gu.js +2 -2
- package/dist/translations/gu.umd.js +2 -2
- package/dist/translations/he.d.ts +2 -2
- package/dist/translations/he.js +2 -2
- package/dist/translations/he.umd.js +2 -2
- package/dist/translations/hi.d.ts +2 -2
- package/dist/translations/hi.js +2 -2
- package/dist/translations/hi.umd.js +2 -2
- package/dist/translations/hr.d.ts +2 -2
- package/dist/translations/hr.js +2 -2
- package/dist/translations/hr.umd.js +2 -2
- package/dist/translations/hu.d.ts +2 -2
- package/dist/translations/hu.js +2 -2
- package/dist/translations/hu.umd.js +2 -2
- package/dist/translations/hy.d.ts +2 -2
- package/dist/translations/hy.js +2 -2
- package/dist/translations/hy.umd.js +2 -2
- package/dist/translations/id.d.ts +2 -2
- package/dist/translations/id.js +2 -2
- package/dist/translations/id.umd.js +2 -2
- package/dist/translations/it.d.ts +2 -2
- package/dist/translations/it.js +2 -2
- package/dist/translations/it.umd.js +2 -2
- package/dist/translations/ja.d.ts +2 -2
- package/dist/translations/ja.js +2 -2
- package/dist/translations/ja.umd.js +2 -2
- package/dist/translations/jv.d.ts +2 -2
- package/dist/translations/jv.js +2 -2
- package/dist/translations/jv.umd.js +2 -2
- package/dist/translations/kk.d.ts +2 -2
- package/dist/translations/kk.js +2 -2
- package/dist/translations/kk.umd.js +2 -2
- package/dist/translations/km.d.ts +2 -2
- package/dist/translations/km.js +2 -2
- package/dist/translations/km.umd.js +2 -2
- package/dist/translations/kn.d.ts +2 -2
- package/dist/translations/kn.js +2 -2
- package/dist/translations/kn.umd.js +2 -2
- package/dist/translations/ko.d.ts +2 -2
- package/dist/translations/ko.js +2 -2
- package/dist/translations/ko.umd.js +2 -2
- package/dist/translations/ku.d.ts +2 -2
- package/dist/translations/ku.js +2 -2
- package/dist/translations/ku.umd.js +2 -2
- package/dist/translations/lt.d.ts +2 -2
- package/dist/translations/lt.js +2 -2
- package/dist/translations/lt.umd.js +2 -2
- package/dist/translations/lv.d.ts +2 -2
- package/dist/translations/lv.js +2 -2
- package/dist/translations/lv.umd.js +2 -2
- package/dist/translations/ms.d.ts +2 -2
- package/dist/translations/ms.js +2 -2
- package/dist/translations/ms.umd.js +2 -2
- package/dist/translations/nb.d.ts +2 -2
- package/dist/translations/nb.js +2 -2
- package/dist/translations/nb.umd.js +2 -2
- package/dist/translations/ne.d.ts +2 -2
- package/dist/translations/ne.js +2 -2
- package/dist/translations/ne.umd.js +2 -2
- package/dist/translations/nl.d.ts +2 -2
- package/dist/translations/nl.js +2 -2
- package/dist/translations/nl.umd.js +2 -2
- package/dist/translations/no.d.ts +2 -2
- package/dist/translations/no.js +2 -2
- package/dist/translations/no.umd.js +2 -2
- package/dist/translations/oc.d.ts +2 -2
- package/dist/translations/oc.js +2 -2
- package/dist/translations/oc.umd.js +2 -2
- package/dist/translations/pl.d.ts +2 -2
- package/dist/translations/pl.js +2 -2
- package/dist/translations/pl.umd.js +2 -2
- package/dist/translations/pt-br.d.ts +2 -2
- package/dist/translations/pt-br.js +2 -2
- package/dist/translations/pt-br.umd.js +2 -2
- package/dist/translations/pt.d.ts +2 -2
- package/dist/translations/pt.js +2 -2
- package/dist/translations/pt.umd.js +2 -2
- package/dist/translations/ro.d.ts +2 -2
- package/dist/translations/ro.js +2 -2
- package/dist/translations/ro.umd.js +2 -2
- package/dist/translations/ru.d.ts +2 -2
- package/dist/translations/ru.js +2 -2
- package/dist/translations/ru.umd.js +2 -2
- package/dist/translations/si.d.ts +2 -2
- package/dist/translations/si.js +2 -2
- package/dist/translations/si.umd.js +2 -2
- package/dist/translations/sk.d.ts +2 -2
- package/dist/translations/sk.js +2 -2
- package/dist/translations/sk.umd.js +2 -2
- package/dist/translations/sl.d.ts +2 -2
- package/dist/translations/sl.js +2 -2
- package/dist/translations/sl.umd.js +2 -2
- package/dist/translations/sq.d.ts +2 -2
- package/dist/translations/sq.js +2 -2
- package/dist/translations/sq.umd.js +2 -2
- package/dist/translations/sr-latn.d.ts +2 -2
- package/dist/translations/sr-latn.js +2 -2
- package/dist/translations/sr-latn.umd.js +2 -2
- package/dist/translations/sr.d.ts +2 -2
- package/dist/translations/sr.js +2 -2
- package/dist/translations/sr.umd.js +2 -2
- package/dist/translations/sv.d.ts +2 -2
- package/dist/translations/sv.js +2 -2
- package/dist/translations/sv.umd.js +2 -2
- package/dist/translations/th.d.ts +2 -2
- package/dist/translations/th.js +2 -2
- package/dist/translations/th.umd.js +2 -2
- package/dist/translations/ti.d.ts +2 -2
- package/dist/translations/ti.js +2 -2
- package/dist/translations/ti.umd.js +2 -2
- package/dist/translations/tk.d.ts +2 -2
- package/dist/translations/tk.js +2 -2
- package/dist/translations/tk.umd.js +2 -2
- package/dist/translations/tr.d.ts +2 -2
- package/dist/translations/tr.js +2 -2
- package/dist/translations/tr.umd.js +2 -2
- package/dist/translations/tt.d.ts +2 -2
- package/dist/translations/tt.js +2 -2
- package/dist/translations/tt.umd.js +2 -2
- package/dist/translations/ug.d.ts +2 -2
- package/dist/translations/ug.js +2 -2
- package/dist/translations/ug.umd.js +2 -2
- package/dist/translations/uk.d.ts +2 -2
- package/dist/translations/uk.js +2 -2
- package/dist/translations/uk.umd.js +2 -2
- package/dist/translations/ur.d.ts +2 -2
- package/dist/translations/ur.js +2 -2
- package/dist/translations/ur.umd.js +2 -2
- package/dist/translations/uz.d.ts +2 -2
- package/dist/translations/uz.js +2 -2
- package/dist/translations/uz.umd.js +2 -2
- package/dist/translations/vi.d.ts +2 -2
- package/dist/translations/vi.js +2 -2
- package/dist/translations/vi.umd.js +2 -2
- package/dist/translations/zh-cn.d.ts +2 -2
- package/dist/translations/zh-cn.js +2 -2
- package/dist/translations/zh-cn.umd.js +2 -2
- package/dist/translations/zh.d.ts +2 -2
- package/dist/translations/zh.js +2 -2
- package/dist/translations/zh.umd.js +2 -2
- package/lang/contexts.json +2 -1
- package/lang/translations/af.po +5 -1
- package/lang/translations/ar.po +5 -1
- package/lang/translations/ast.po +5 -1
- package/lang/translations/az.po +5 -1
- package/lang/translations/bg.po +5 -1
- package/lang/translations/bn.po +5 -1
- package/lang/translations/bs.po +5 -1
- package/lang/translations/ca.po +5 -1
- package/lang/translations/cs.po +5 -1
- package/lang/translations/da.po +5 -1
- package/lang/translations/de-ch.po +5 -1
- package/lang/translations/de.po +5 -1
- package/lang/translations/el.po +5 -1
- package/lang/translations/en-au.po +5 -1
- package/lang/translations/en-gb.po +5 -1
- package/lang/translations/en.po +5 -1
- package/lang/translations/eo.po +5 -1
- package/lang/translations/es-co.po +5 -1
- package/lang/translations/es.po +5 -1
- package/lang/translations/et.po +5 -1
- package/lang/translations/eu.po +5 -1
- package/lang/translations/fa.po +5 -1
- package/lang/translations/fi.po +5 -1
- package/lang/translations/fr.po +5 -1
- package/lang/translations/gl.po +5 -1
- package/lang/translations/gu.po +5 -1
- package/lang/translations/he.po +5 -1
- package/lang/translations/hi.po +5 -1
- package/lang/translations/hr.po +5 -1
- package/lang/translations/hu.po +5 -1
- package/lang/translations/hy.po +5 -1
- package/lang/translations/id.po +5 -1
- package/lang/translations/it.po +5 -1
- package/lang/translations/ja.po +5 -1
- package/lang/translations/jv.po +5 -1
- package/lang/translations/kk.po +5 -1
- package/lang/translations/km.po +5 -1
- package/lang/translations/kn.po +5 -1
- package/lang/translations/ko.po +5 -1
- package/lang/translations/ku.po +5 -1
- package/lang/translations/lt.po +5 -1
- package/lang/translations/lv.po +5 -1
- package/lang/translations/ms.po +5 -1
- package/lang/translations/nb.po +5 -1
- package/lang/translations/ne.po +5 -1
- package/lang/translations/nl.po +5 -1
- package/lang/translations/no.po +5 -1
- package/lang/translations/oc.po +5 -1
- package/lang/translations/pl.po +5 -1
- package/lang/translations/pt-br.po +5 -1
- package/lang/translations/pt.po +5 -1
- package/lang/translations/ro.po +5 -1
- package/lang/translations/ru.po +5 -1
- package/lang/translations/si.po +5 -1
- package/lang/translations/sk.po +5 -1
- package/lang/translations/sl.po +5 -1
- package/lang/translations/sq.po +5 -1
- package/lang/translations/sr-latn.po +5 -1
- package/lang/translations/sr.po +5 -1
- package/lang/translations/sv.po +5 -1
- package/lang/translations/th.po +5 -1
- package/lang/translations/ti.po +5 -1
- package/lang/translations/tk.po +5 -1
- package/lang/translations/tr.po +5 -1
- package/lang/translations/tt.po +5 -1
- package/lang/translations/ug.po +5 -1
- package/lang/translations/uk.po +5 -1
- package/lang/translations/ur.po +5 -1
- package/lang/translations/uz.po +5 -1
- package/lang/translations/vi.po +5 -1
- package/lang/translations/zh-cn.po +5 -1
- package/lang/translations/zh.po +5 -1
- package/package.json +32 -6
- package/src/augmentation.d.ts +1 -1
- package/src/augmentation.js +1 -1
- package/src/index.d.ts +1 -1
- package/src/index.js +2 -2
- package/src/legacyerrors.d.ts +1 -1
- package/src/legacyerrors.js +2 -2
- package/src/slashcommand.d.ts +1 -1
- package/src/slashcommand.js +2 -2
- package/src/slashcommandconfig.d.ts +1 -1
- package/src/slashcommandconfig.js +2 -2
- package/src/slashcommandediting.d.ts +1 -1
- package/src/slashcommandediting.js +2 -2
- package/src/slashcommandeditorconfig.d.ts +1 -1
- package/src/slashcommandeditorconfig.js +1 -1
- package/src/slashcommandui.d.ts +1 -1
- package/src/slashcommandui.js +2 -2
- package/src/ui/slashcommandbuttonview.d.ts +1 -1
- package/src/ui/slashcommandbuttonview.js +2 -2
- package/src/utils/common-translations.d.ts +1 -1
- package/src/utils/common-translations.js +2 -2
- package/theme/slashcommand.css +1 -1
- package/dist/augmentation.d.ts +0 -25
- package/dist/index.d.ts +0 -17
- package/dist/legacyerrors.d.ts +0 -9
- package/dist/slashcommand.d.ts +0 -41
- package/dist/slashcommandconfig.d.ts +0 -254
- package/dist/slashcommandediting.d.ts +0 -40
- package/dist/slashcommandeditorconfig.d.ts +0 -100
- package/dist/slashcommandui.d.ts +0 -45
- package/dist/ui/slashcommandbuttonview.d.ts +0 -35
- package/dist/utils/common-translations.d.ts +0 -13
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x1f9530=_0x43d5;function _0x52f7(){const _0x2b5566=['isColorInherited','setTemplate','icon','8hydiPs','ck-slash-command-button','2282190UUPtWh','10741530FmmBRg','_createTextPartView','1420976ysWPeT','6wPlfuC','div','4411946EBamkl','iconView','render','5BmObFK','4107312llJsDD','children','ck-slash-command-button__description','ck-slash-command-button__text-part','span','labelView','add','162404JAogPZ','title','isIconColorInherited','5043576pFGdeP','set','description','textPartView'];_0x52f7=function(){return _0x2b5566;};return _0x52f7();}function _0x43d5(_0x2807ab,_0x20067b){const _0x52f787=_0x52f7();return _0x43d5=function(_0x43d52f,_0x3395cf){_0x43d52f=_0x43d52f-0x173;let _0x207d79=_0x52f787[_0x43d52f];return _0x207d79;},_0x43d5(_0x2807ab,_0x20067b);}(function(_0x1ad35b,_0x5176cf){const _0x2f73c1=_0x43d5,_0x31c411=_0x1ad35b();while(!![]){try{const _0x3d8557=-parseInt(_0x2f73c1(0x179))/0x1*(parseInt(_0x2f73c1(0x186))/0x2)+-parseInt(_0x2f73c1(0x175))/0x3+-parseInt(_0x2f73c1(0x178))/0x4*(-parseInt(_0x2f73c1(0x17e))/0x5)+-parseInt(_0x2f73c1(0x189))/0x6+parseInt(_0x2f73c1(0x17b))/0x7+-parseInt(_0x2f73c1(0x173))/0x8*(-parseInt(_0x2f73c1(0x17f))/0x9)+parseInt(_0x2f73c1(0x176))/0xa;if(_0x3d8557===_0x5176cf)break;else _0x31c411['push'](_0x31c411['shift']());}catch(_0xcdea4){_0x31c411['push'](_0x31c411['shift']());}}}(_0x52f7,0x685f1));import{View as _0x1e8ed7,ButtonView as _0x3eeef0}from'ckeditor5/src/ui.js';import _0x1c9392 from'../../theme/icons/play.svg';export default class h extends _0x3eeef0{constructor(_0x56c7a0,_0x365352){const _0x41b6fb=_0x43d5;super(_0x56c7a0),this[_0x41b6fb(0x18c)]=this[_0x41b6fb(0x177)](_0x56c7a0,_0x365352),void 0x0!==_0x365352[_0x41b6fb(0x188)]&&(this[_0x41b6fb(0x17c)][_0x41b6fb(0x18d)]=_0x365352[_0x41b6fb(0x188)]),this[_0x41b6fb(0x18a)]({'icon':_0x365352[_0x41b6fb(0x18f)]||_0x1c9392,'withText':!0x0,'label':_0x365352[_0x41b6fb(0x187)],'class':_0x41b6fb(0x174)});}[_0x1f9530(0x17d)](){const _0x497dad=_0x1f9530;super[_0x497dad(0x17d)](),this[_0x497dad(0x180)][_0x497dad(0x185)](this[_0x497dad(0x18c)]);}[_0x1f9530(0x177)](_0x15f000,_0x1dff5d){const _0x2c41d0=_0x1f9530,_0x58f102=new _0x1e8ed7(_0x15f000);return _0x58f102[_0x2c41d0(0x18e)]({'tag':_0x2c41d0(0x17a),'attributes':{'class':['ck',_0x2c41d0(0x182)]},'children':_0x1dff5d[_0x2c41d0(0x18b)]?[this[_0x2c41d0(0x184)],{'tag':_0x2c41d0(0x183),'attributes':{'class':['ck',_0x2c41d0(0x181)]},'children':[{'text':_0x1dff5d[_0x2c41d0(0x18b)]}]}]:[this[_0x2c41d0(0x184)]]}),_0x58f102;}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x3a944b,_0x505c45){const t=_0x3a944b['t'],_0x3246da=_0x3a944b['t'];switch(_0x505c45){case'AI\x20Assistant':return _0x3246da('AI\x20Assistant');case'Block\x20quote':return _0x3246da('Block\x20quote');case'Bulleted\x20list':return _0x3246da('Bulleted\x20list');case'Insert\x20code\x20block':return _0x3246da('Insert\x20code\x20block');case'Open\x20file\x20manager':return _0x3246da('Open\x20file\x20manager');case'Insert\x20image':return _0x3246da('Insert\x20image');case'Heading\x201':return _0x3246da('Heading\x201');case'Heading\x202':return _0x3246da('Heading\x202');case'Heading\x203':return _0x3246da('Heading\x203');case'Heading\x204':return _0x3246da('Heading\x204');case'Heading\x205':return _0x3246da('Heading\x205');case'Heading\x206':return _0x3246da('Heading\x206');case'Horizontal\x20line':return _0x3246da('Horizontal\x20line');case'Insert\x20HTML':return _0x3246da('Insert\x20HTML');case'Increase\x20indent':return _0x3246da('Increase\x20indent');case'Insert\x20table':return _0x3246da('Insert\x20table');case'Table\x20of\x20contents':return _0x3246da('Table\x20of\x20contents');case'Numbered\x20list':return _0x3246da('Numbered\x20list');case'Decrease\x20indent':return _0x3246da('Decrease\x20indent');case'Paragraph':return _0x3246da('Paragraph');case'To-do\x20list':return _0x3246da('To-do\x20list');case'Create\x20a\x20block\x20quote':return t('Create\x20a\x20block\x20quote');case'Create\x20a\x20bulleted\x20list':return t('Create\x20a\x20bulleted\x20list');case'Create\x20a\x20code\x20block':return t('Create\x20a\x20code\x20block');case'Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file':return t('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file');case'Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file':return t('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file');case'Create\x20a\x20heading\x20level\x201':return t('Create\x20a\x20heading\x20level\x201');case'Create\x20a\x20heading\x20level\x202':return t('Create\x20a\x20heading\x20level\x202');case'Create\x20a\x20heading\x20level\x203':return t('Create\x20a\x20heading\x20level\x203');case'Create\x20a\x20heading\x20level\x204':return t('Create\x20a\x20heading\x20level\x204');case'Create\x20a\x20heading\x20level\x205':return t('Create\x20a\x20heading\x20level\x205');case'Create\x20a\x20heading\x20level\x206':return t('Create\x20a\x20heading\x20level\x206');case'Insert\x20a\x20horizontal\x20line':return t('Insert\x20a\x20horizontal\x20line');case'Insert\x20an\x20HTML\x20snippet':return t('Insert\x20an\x20HTML\x20snippet');case'Increase\x20the\x20indentation':return t('Increase\x20the\x20indentation');case'Insert\x20Mermaid\x20diagram':return t('Insert\x20Mermaid\x20diagram');case'Insert\x20the\x20Mermaid\x20diagram':return t('Insert\x20the\x20Mermaid\x20diagram');case'Create\x20a\x20table':return t('Create\x20a\x20table');case'Insert\x20table\x20of\x20contents':return t('Insert\x20table\x20of\x20contents');case'Create\x20a\x20numbered\x20list':return t('Create\x20a\x20numbered\x20list');case'Decrease\x20the\x20indentation':return t('Decrease\x20the\x20indentation');case'Insert\x20a\x20paragraph':return t('Insert\x20a\x20paragraph');case'Create\x20a\x20to-do\x20list':return t('Create\x20a\x20to-do\x20list');case'Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content':return t('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content');case'Insert\x20an\x20emoji':return t('Insert\x20an\x20emoji');default:return _0x505c45;}}
|
package/theme/slashcommand.css
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
|
|
4
4
|
* all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
|
|
5
5
|
*
|
|
6
|
-
* Copyright (c) 2003-
|
|
6
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
7
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
8
8
|
*/
|
|
9
9
|
|
package/dist/augmentation.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
8
|
-
*/
|
|
9
|
-
import type { SlashCommand, SlashCommandConfig, SlashCommandEditing, SlashCommandUI, SlashCommandEditorConfig } from './index.js';
|
|
10
|
-
declare module '@ckeditor/ckeditor5-core' {
|
|
11
|
-
interface EditorConfig {
|
|
12
|
-
/**
|
|
13
|
-
* The configuration of the {@link module:slash-command/slashcommand~SlashCommand} feature.
|
|
14
|
-
*
|
|
15
|
-
* Read more in {@link module:slash-command/slashcommandeditorconfig~SlashCommandEditorConfig}.
|
|
16
|
-
*/
|
|
17
|
-
slashCommand?: SlashCommandEditorConfig;
|
|
18
|
-
}
|
|
19
|
-
interface PluginsMap {
|
|
20
|
-
[SlashCommand.pluginName]: SlashCommand;
|
|
21
|
-
[SlashCommandConfig.pluginName]: SlashCommandConfig;
|
|
22
|
-
[SlashCommandEditing.pluginName]: SlashCommandEditing;
|
|
23
|
-
[SlashCommandUI.pluginName]: SlashCommandUI;
|
|
24
|
-
}
|
|
25
|
-
}
|
package/dist/index.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* @module slash-command
|
|
11
|
-
*/
|
|
12
|
-
export { default as SlashCommand } from './slashcommand.js';
|
|
13
|
-
export { default as SlashCommandConfig } from './slashcommandconfig.js';
|
|
14
|
-
export { default as SlashCommandEditing } from './slashcommandediting.js';
|
|
15
|
-
export { default as SlashCommandUI } from './slashcommandui.js';
|
|
16
|
-
export { type SlashCommandEditorConfig } from './slashcommandeditorconfig.js';
|
|
17
|
-
import './augmentation.js';
|
package/dist/legacyerrors.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
8
|
-
*/
|
|
9
|
-
export {};
|
package/dist/slashcommand.d.ts
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* @module slash-command/slashcommand
|
|
11
|
-
* @publicApi
|
|
12
|
-
*/
|
|
13
|
-
import { Plugin } from 'ckeditor5/src/core.js';
|
|
14
|
-
import SlashCommandEditing from './slashcommandediting.js';
|
|
15
|
-
import SlashCommandUI from './slashcommandui.js';
|
|
16
|
-
/**
|
|
17
|
-
* The slash command feature.
|
|
18
|
-
* It allows for an easy access to a predefined list of editor commands by typing `/` inside the editor.
|
|
19
|
-
*
|
|
20
|
-
* For a detailed overview, check the {@glink features/slash-commands Slash command} feature guide.
|
|
21
|
-
*
|
|
22
|
-
* @extends module:core/plugin~Plugin
|
|
23
|
-
*/
|
|
24
|
-
export default class SlashCommand extends Plugin {
|
|
25
|
-
/**
|
|
26
|
-
* @inheritDoc
|
|
27
|
-
*/
|
|
28
|
-
static get requires(): readonly ["Mention", typeof SlashCommandEditing, typeof SlashCommandUI];
|
|
29
|
-
/**
|
|
30
|
-
* @inheritDoc
|
|
31
|
-
*/
|
|
32
|
-
static get pluginName(): "SlashCommand";
|
|
33
|
-
/**
|
|
34
|
-
* @inheritDoc
|
|
35
|
-
*/
|
|
36
|
-
static get isOfficialPlugin(): true;
|
|
37
|
-
/**
|
|
38
|
-
* @inheritDoc
|
|
39
|
-
*/
|
|
40
|
-
static get isPremiumPlugin(): true;
|
|
41
|
-
}
|
|
@@ -1,254 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* @module slash-command/slashcommandconfig
|
|
11
|
-
* @publicApi
|
|
12
|
-
*/
|
|
13
|
-
import { Plugin, type Editor } from 'ckeditor5/src/core.js';
|
|
14
|
-
import './slashcommandeditorconfig.js';
|
|
15
|
-
/**
|
|
16
|
-
* This plugin takes care of the configuration for {@link module:slash-command/slashcommand~SlashCommand}:
|
|
17
|
-
*
|
|
18
|
-
* * It manages the configuration of slash commands in the editor.
|
|
19
|
-
* * It provides default slash commands for common editor features.
|
|
20
|
-
* * It allows defining extra commands and reducing the list of defaults using the editor configuration.
|
|
21
|
-
* See {@link module:slash-command/slashcommandconfig~SlashCommandConfig} to learn more.
|
|
22
|
-
*
|
|
23
|
-
* @extends module:core/plugin~Plugin
|
|
24
|
-
*/
|
|
25
|
-
export default class SlashCommandConfig extends Plugin {
|
|
26
|
-
/**
|
|
27
|
-
* @inheritDoc
|
|
28
|
-
*/
|
|
29
|
-
static get pluginName(): "SlashCommandConfig";
|
|
30
|
-
/**
|
|
31
|
-
* @inheritDoc
|
|
32
|
-
*/
|
|
33
|
-
static get isOfficialPlugin(): true;
|
|
34
|
-
/**
|
|
35
|
-
* @inheritDoc
|
|
36
|
-
*/
|
|
37
|
-
static get isPremiumPlugin(): true;
|
|
38
|
-
/**
|
|
39
|
-
* @inheritDoc
|
|
40
|
-
*/
|
|
41
|
-
constructor(editor: Editor);
|
|
42
|
-
/**
|
|
43
|
-
* @inheritDoc
|
|
44
|
-
*/
|
|
45
|
-
afterInit(): void;
|
|
46
|
-
/**
|
|
47
|
-
* Returns an array of slash command definitions enabled in the editor.
|
|
48
|
-
*
|
|
49
|
-
* This method takes into account the following:
|
|
50
|
-
* * The {@link module:slash-command/slashcommandconfig~SlashCommandConfig#getDefaultCommands list of default commands}.
|
|
51
|
-
* * The presence of {@link module:core/editor/editorconfig~EditorConfig#plugins editor features} (plugins).
|
|
52
|
-
* * The {@link module:slash-command/slashcommandeditorconfig~SlashCommandEditorConfig#removeCommands} configuration.
|
|
53
|
-
* * The {@link module:slash-command/slashcommandeditorconfig~SlashCommandEditorConfig#extraCommands} configuration.
|
|
54
|
-
*/
|
|
55
|
-
getAllowedCommands(): Array<SlashCommandDefinition>;
|
|
56
|
-
/**
|
|
57
|
-
* Returns a list of default slash command {@link module:slash-command/slashcommandconfig~SlashCommandDefinition definitions}
|
|
58
|
-
* for common editor features. The available definitions are as follows:
|
|
59
|
-
*
|
|
60
|
-
* ```js
|
|
61
|
-
* [
|
|
62
|
-
* {
|
|
63
|
-
* id: 'blockQuote',
|
|
64
|
-
* commandName: 'blockQuote',
|
|
65
|
-
* title: t( 'Block quote' ),
|
|
66
|
-
* // ...
|
|
67
|
-
* },
|
|
68
|
-
* {
|
|
69
|
-
* id: 'bulletedList',
|
|
70
|
-
* commandName: 'bulletedList',
|
|
71
|
-
* title: t( 'Bulleted list' ),
|
|
72
|
-
* // ...
|
|
73
|
-
* },
|
|
74
|
-
* {
|
|
75
|
-
* id: 'codeBlock',
|
|
76
|
-
* commandName: 'codeBlock',
|
|
77
|
-
* title: t( 'Insert code block' ),
|
|
78
|
-
* // ...
|
|
79
|
-
* },
|
|
80
|
-
* {
|
|
81
|
-
* id: 'ckbox',
|
|
82
|
-
* commandName: 'ckbox',
|
|
83
|
-
* title: t( 'Open file manager' ),
|
|
84
|
-
* // ...
|
|
85
|
-
* },
|
|
86
|
-
* {
|
|
87
|
-
* id: 'ckfinder',
|
|
88
|
-
* commandName: 'ckfinder',
|
|
89
|
-
* title: t( 'Insert image' ),
|
|
90
|
-
* // ...
|
|
91
|
-
* },
|
|
92
|
-
* {
|
|
93
|
-
* id: 'heading1',
|
|
94
|
-
* commandName: 'heading',
|
|
95
|
-
* title: t( 'Heading 1' ),
|
|
96
|
-
* // ...
|
|
97
|
-
* },
|
|
98
|
-
* {
|
|
99
|
-
* id: 'heading2',
|
|
100
|
-
* commandName: 'heading',
|
|
101
|
-
* title: t( 'Heading 2' ),
|
|
102
|
-
* // ...
|
|
103
|
-
* },
|
|
104
|
-
* {
|
|
105
|
-
* id: 'heading3',
|
|
106
|
-
* commandName: 'heading',
|
|
107
|
-
* title: t( 'Heading 3' ),
|
|
108
|
-
* // ...
|
|
109
|
-
* },
|
|
110
|
-
* {
|
|
111
|
-
* id: 'heading4',
|
|
112
|
-
* commandName: 'heading',
|
|
113
|
-
* title: t( 'Heading 4' ),
|
|
114
|
-
* // ...
|
|
115
|
-
* },
|
|
116
|
-
* {
|
|
117
|
-
* id: 'heading5',
|
|
118
|
-
* commandName: 'heading',
|
|
119
|
-
* title: t( 'Heading 5' ),
|
|
120
|
-
* // ...
|
|
121
|
-
* },
|
|
122
|
-
* {
|
|
123
|
-
* id: 'heading6',
|
|
124
|
-
* commandName: 'heading',
|
|
125
|
-
* title: t( 'Heading 6' ),
|
|
126
|
-
* // ...
|
|
127
|
-
* },
|
|
128
|
-
* {
|
|
129
|
-
* id: 'horizontalLine',
|
|
130
|
-
* commandName: 'horizontalLine',
|
|
131
|
-
* title: t( 'Horizontal line' ),
|
|
132
|
-
* // ...
|
|
133
|
-
* },
|
|
134
|
-
* {
|
|
135
|
-
* id: 'htmlEmbed',
|
|
136
|
-
* commandName: 'htmlEmbed',
|
|
137
|
-
* title: t( 'Insert HTML' ),
|
|
138
|
-
* // ...
|
|
139
|
-
* },
|
|
140
|
-
* {
|
|
141
|
-
* id: 'indent',
|
|
142
|
-
* commandName: 'indent',
|
|
143
|
-
* title: t( 'Increase indent' ),
|
|
144
|
-
* // ...
|
|
145
|
-
* },
|
|
146
|
-
* {
|
|
147
|
-
* id: 'insertMermaidCommand',
|
|
148
|
-
* commandName: 'insertMermaidCommand',
|
|
149
|
-
* title: t( 'Insert Mermaid diagram' ),
|
|
150
|
-
* // ...
|
|
151
|
-
* },
|
|
152
|
-
* {
|
|
153
|
-
* id: 'insertTable',
|
|
154
|
-
* commandName: 'insertTable',
|
|
155
|
-
* title: t( 'Insert table' ),
|
|
156
|
-
* // ...
|
|
157
|
-
* },
|
|
158
|
-
* {
|
|
159
|
-
* id: 'insertTableOfContents',
|
|
160
|
-
* commandName: 'insertTableOfContents',
|
|
161
|
-
* title: t( 'Table of contents' ),
|
|
162
|
-
* // ...
|
|
163
|
-
* },
|
|
164
|
-
* {
|
|
165
|
-
* id: 'numberedList',
|
|
166
|
-
* commandName: 'numberedList',
|
|
167
|
-
* title: t( 'Numbered list' ),
|
|
168
|
-
* // ...
|
|
169
|
-
* },
|
|
170
|
-
* {
|
|
171
|
-
* id: 'outdent',
|
|
172
|
-
* commandName: 'outdent',
|
|
173
|
-
* title: t( 'Decrease indent' ),
|
|
174
|
-
* // ...
|
|
175
|
-
* },
|
|
176
|
-
* {
|
|
177
|
-
* id: 'paragraph',
|
|
178
|
-
* commandName: 'paragraph',
|
|
179
|
-
* title: t( 'Paragraph' ),
|
|
180
|
-
* // ...
|
|
181
|
-
* },
|
|
182
|
-
* {
|
|
183
|
-
* id: 'todoList',
|
|
184
|
-
* commandName: 'todoList',
|
|
185
|
-
* title: t( 'To-do list' ),
|
|
186
|
-
* // ...
|
|
187
|
-
* }
|
|
188
|
-
* ]
|
|
189
|
-
*/
|
|
190
|
-
getDefaultCommands(): Array<SlashCommandDefinition>;
|
|
191
|
-
}
|
|
192
|
-
/**
|
|
193
|
-
* An object describing a single command definition in the configuration.
|
|
194
|
-
*/
|
|
195
|
-
export interface SlashCommandDefinition {
|
|
196
|
-
/**
|
|
197
|
-
* A unique ID matched with the text that follows the slash ("/") character typed by the user,
|
|
198
|
-
* e.g. 'blockQuote', 'heading1'. See {@link module:slash-command/slashcommandconfig~SlashCommandDefinition#aliases}
|
|
199
|
-
* to learn about slash command aliases that provide a similar functionality.
|
|
200
|
-
*/
|
|
201
|
-
id: string;
|
|
202
|
-
/**
|
|
203
|
-
* The name of the command to be executed if the `execute` property was not provided,
|
|
204
|
-
* for example, 'blockQuote', 'heading'. See {@link module:core/editor/editor~Editor#commands} to learn more about available commands.
|
|
205
|
-
*/
|
|
206
|
-
commandName?: string;
|
|
207
|
-
/**
|
|
208
|
-
* A meaningful title for the command displayed in a dropdown list of possible commands. It can be a string
|
|
209
|
-
* or a callback function returning a string.
|
|
210
|
-
*/
|
|
211
|
-
title: Function | string;
|
|
212
|
-
/**
|
|
213
|
-
* An optional description for the command. Useful when the title is not descriptive enough.
|
|
214
|
-
*/
|
|
215
|
-
description?: string;
|
|
216
|
-
/**
|
|
217
|
-
* An SVG string representing the icon of the command. If not provided, a generic icon will be used instead.
|
|
218
|
-
* The default size of the icon is 20x20 pixels. Be sure to set the correct `viewBox` attribute in the icon source.
|
|
219
|
-
*
|
|
220
|
-
* See {@link module:slash-command/slashcommandconfig~SlashCommandDefinition#isIconColorInherited}.
|
|
221
|
-
*/
|
|
222
|
-
icon?: string;
|
|
223
|
-
/**
|
|
224
|
-
* By default, slash command icons are monochromatic and inherit the color of the text in the editor UI.
|
|
225
|
-
* Setting this property to `false` disables this inheritance and allows the use of complex (colorful) icons.
|
|
226
|
-
*
|
|
227
|
-
* Learn more in {@link module:ui/icon/iconview~IconView#isColorInherited}.
|
|
228
|
-
*/
|
|
229
|
-
isIconColorInherited?: boolean;
|
|
230
|
-
/**
|
|
231
|
-
* An optional list of aliases (extending the base
|
|
232
|
-
* {@link module:slash-command/slashcommandconfig~SlashCommandDefinition#id}) to be used when filtering the list of slash commands
|
|
233
|
-
* based on the text that follows the slash ("/") character.
|
|
234
|
-
*/
|
|
235
|
-
aliases?: Array<string>;
|
|
236
|
-
/**
|
|
237
|
-
* A callback function defining custom logic to decide if the command should be displayed
|
|
238
|
-
* in the dropdown list. If not provided, the default command's {@link module:core/command~Command#isEnabled} property is used instead.
|
|
239
|
-
* If it's also unavailable, it falls back to `true`. This property is checked when a user types the slash ("/") character
|
|
240
|
-
* or changes the text that follows it.
|
|
241
|
-
*
|
|
242
|
-
* This callback gets an {@link module:core/editor/editor~Editor} instance as a parameter.
|
|
243
|
-
*/
|
|
244
|
-
isEnabled?: Function;
|
|
245
|
-
/**
|
|
246
|
-
* A callback function defining custom logic for executing the command. If not provided, the default
|
|
247
|
-
* command's {@link module:core/command~Command#execute} is used instead. Custom logic is useful especially when the slash command
|
|
248
|
-
* requires some arguments (acts like a wrapper) or combines some complex logic. This property is obligatory if
|
|
249
|
-
* {@link module:slash-command/slashcommandconfig~SlashCommandDefinition#commandName} was not passed.
|
|
250
|
-
*
|
|
251
|
-
* This callback gets an {@link module:core/editor/editor~Editor} instance as a parameter.
|
|
252
|
-
*/
|
|
253
|
-
execute?: Function;
|
|
254
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* @module slash-command/slashcommandediting
|
|
11
|
-
*/
|
|
12
|
-
import { Plugin } from 'ckeditor5/src/core.js';
|
|
13
|
-
import SlashCommandConfig, { type SlashCommandDefinition } from './slashcommandconfig.js';
|
|
14
|
-
/**
|
|
15
|
-
* Provides the editing functionality of the {@link module:slash-command/slashcommand~SlashCommand} feature.
|
|
16
|
-
*
|
|
17
|
-
* @extends module:core/plugin~Plugin
|
|
18
|
-
*/
|
|
19
|
-
export default class SlashCommandEditing extends Plugin {
|
|
20
|
-
/**
|
|
21
|
-
* @inheritDoc
|
|
22
|
-
*/
|
|
23
|
-
static get pluginName(): "SlashCommandEditing";
|
|
24
|
-
/**
|
|
25
|
-
* @inheritDoc
|
|
26
|
-
*/
|
|
27
|
-
static get isOfficialPlugin(): true;
|
|
28
|
-
/**
|
|
29
|
-
* @inheritDoc
|
|
30
|
-
*/
|
|
31
|
-
static get isPremiumPlugin(): true;
|
|
32
|
-
/**
|
|
33
|
-
* @inheritDoc
|
|
34
|
-
*/
|
|
35
|
-
static get requires(): readonly [typeof SlashCommandConfig];
|
|
36
|
-
/**
|
|
37
|
-
* Returns the list of matching enabled command definitions for the specific query text case-insensitively.
|
|
38
|
-
*/
|
|
39
|
-
getMatchingCommands(queryString: string): Array<SlashCommandDefinition>;
|
|
40
|
-
}
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* @module slash-command/slashcommandeditorconfig
|
|
11
|
-
* @publicApi
|
|
12
|
-
*/
|
|
13
|
-
import type { SlashCommandDefinition } from './slashcommandconfig.js';
|
|
14
|
-
/**
|
|
15
|
-
* The configuration of the slash command feature.
|
|
16
|
-
*
|
|
17
|
-
* Read more about {@glink features/slash-commands#configuration configuring the slash command feature}.
|
|
18
|
-
*
|
|
19
|
-
* ```ts
|
|
20
|
-
* ClassicEditor
|
|
21
|
-
* .create( editorElement, {
|
|
22
|
-
* slashCommand: ... // Slash command feature options.
|
|
23
|
-
* } )
|
|
24
|
-
* .then( ... )
|
|
25
|
-
* .catch( ... );
|
|
26
|
-
* ```
|
|
27
|
-
*
|
|
28
|
-
* See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
|
|
29
|
-
*/
|
|
30
|
-
export interface SlashCommandEditorConfig {
|
|
31
|
-
/**
|
|
32
|
-
* The list of commands to be removed from the default command list. Commands specified by this configuration will not
|
|
33
|
-
* appear in the user interface upon writing the slash ("/") character.
|
|
34
|
-
*
|
|
35
|
-
* * Each entry must be a unique name of a command registered in the
|
|
36
|
-
* {@link module:core/editor/editor~Editor#commands editor's command collection}.
|
|
37
|
-
* * Check out the list of the {@link module:slash-command/slashcommandconfig~SlashCommandConfig#getDefaultCommands default commands}
|
|
38
|
-
* supported by the slash command feature to learn which commands can be removed.
|
|
39
|
-
*
|
|
40
|
-
* ```ts
|
|
41
|
-
* ClassicEditor
|
|
42
|
-
* .create( editorElement, {
|
|
43
|
-
* plugins: [ SlashCommand, ... ],
|
|
44
|
-
* slashCommand: {
|
|
45
|
-
* removeCommands: [ 'heading', 'paragraph', ... ]
|
|
46
|
-
* // ...
|
|
47
|
-
* }
|
|
48
|
-
* } )
|
|
49
|
-
* .then( ... )
|
|
50
|
-
* .catch( ... );
|
|
51
|
-
* ```
|
|
52
|
-
*/
|
|
53
|
-
removeCommands: Array<string>;
|
|
54
|
-
/**
|
|
55
|
-
* Additional commands to be added to the
|
|
56
|
-
* {@link module:slash-command/slashcommandconfig~SlashCommandConfig#getDefaultCommands list of defaults} supported
|
|
57
|
-
* by the slash command feature. It allows the feature to work with third-party commands and make them appear in the user interface
|
|
58
|
-
* upon writing the slash ("/") character.
|
|
59
|
-
*
|
|
60
|
-
* ```ts
|
|
61
|
-
* ClassicEditor
|
|
62
|
-
* .create( editorElement, {
|
|
63
|
-
* plugins: [ SlashCommand, ... ],
|
|
64
|
-
* slashCommand: {
|
|
65
|
-
* extraCommands: [
|
|
66
|
-
* {
|
|
67
|
-
* id: 'bold',
|
|
68
|
-
* commandName: 'bold',
|
|
69
|
-
* title: 'Bold',
|
|
70
|
-
* // ...
|
|
71
|
-
* },
|
|
72
|
-
* // ...
|
|
73
|
-
* ]
|
|
74
|
-
* // ...
|
|
75
|
-
* }
|
|
76
|
-
* } )
|
|
77
|
-
* .then( ... )
|
|
78
|
-
* .catch( ... );
|
|
79
|
-
* ```
|
|
80
|
-
*/
|
|
81
|
-
extraCommands: Array<SlashCommandDefinition>;
|
|
82
|
-
/**
|
|
83
|
-
* The maximum number of commands displayed in the dropdown list of slash commands.
|
|
84
|
-
*
|
|
85
|
-
* ```ts
|
|
86
|
-
* ClassicEditor
|
|
87
|
-
* .create( editorElement, {
|
|
88
|
-
* plugins: [ SlashCommand, ... ],
|
|
89
|
-
* slashCommand: {
|
|
90
|
-
* dropdownLimit: 4
|
|
91
|
-
* // More of editor configuration.
|
|
92
|
-
* // ...
|
|
93
|
-
* }
|
|
94
|
-
* } )
|
|
95
|
-
* .then( ... )
|
|
96
|
-
* .catch( ... );
|
|
97
|
-
* ```
|
|
98
|
-
*/
|
|
99
|
-
dropdownLimit: number;
|
|
100
|
-
}
|
package/dist/slashcommandui.d.ts
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* @module slash-command/slashcommandui
|
|
11
|
-
*/
|
|
12
|
-
import { Plugin, type Editor } from 'ckeditor5/src/core.js';
|
|
13
|
-
import './slashcommandeditorconfig.js';
|
|
14
|
-
import '../theme/slashcommand.css';
|
|
15
|
-
/**
|
|
16
|
-
* Provides the UI functionality of the {@link module:slash-command/slashcommand~SlashCommand} feature.
|
|
17
|
-
*
|
|
18
|
-
* @extends module:core/plugin~Plugin
|
|
19
|
-
*/
|
|
20
|
-
export default class SlashCommandUI extends Plugin {
|
|
21
|
-
/**
|
|
22
|
-
* @inheritDoc
|
|
23
|
-
*/
|
|
24
|
-
static get pluginName(): "SlashCommandUI";
|
|
25
|
-
/**
|
|
26
|
-
* @inheritDoc
|
|
27
|
-
*/
|
|
28
|
-
static get isOfficialPlugin(): true;
|
|
29
|
-
/**
|
|
30
|
-
* @inheritDoc
|
|
31
|
-
*/
|
|
32
|
-
static get isPremiumPlugin(): true;
|
|
33
|
-
/**
|
|
34
|
-
* @inheritDoc
|
|
35
|
-
*/
|
|
36
|
-
constructor(editor: Editor);
|
|
37
|
-
/**
|
|
38
|
-
* @inheritDoc
|
|
39
|
-
*/
|
|
40
|
-
init(): void;
|
|
41
|
-
/**
|
|
42
|
-
* @inheritDoc
|
|
43
|
-
*/
|
|
44
|
-
destroy(): void;
|
|
45
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* @module slash-command/ui/slashcommandbuttonview
|
|
11
|
-
*/
|
|
12
|
-
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
13
|
-
import { View, ButtonView } from 'ckeditor5/src/ui.js';
|
|
14
|
-
import type { SlashCommandDefinition } from '../slashcommandconfig.js';
|
|
15
|
-
/**
|
|
16
|
-
* A class representing an individual button (slash command) in the list.
|
|
17
|
-
*
|
|
18
|
-
* @extends module:ui/button/buttonview~ButtonView
|
|
19
|
-
*/
|
|
20
|
-
export default class SlashCommandButtonView extends ButtonView {
|
|
21
|
-
/**
|
|
22
|
-
* The view rendering the text part of the slash command button consisting of a title and an optional description.
|
|
23
|
-
*
|
|
24
|
-
* @protected
|
|
25
|
-
*/
|
|
26
|
-
textPartView: View;
|
|
27
|
-
/**
|
|
28
|
-
* Creates an instance of the {@link module:slash-command/ui/slashcommandbuttonview~SlashCommandButtonView} class.
|
|
29
|
-
*/
|
|
30
|
-
constructor(locale: Locale, commandDefinition: SlashCommandDefinition);
|
|
31
|
-
/**
|
|
32
|
-
* @inheritDoc
|
|
33
|
-
*/
|
|
34
|
-
render(): void;
|
|
35
|
-
}
|