@ckeditor/ckeditor5-widget 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/dist/index-content.css +2 -2
- package/dist/index-editor.css +2 -2
- package/dist/index.css +5 -5
- package/dist/index.css.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- 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/translations/af.po +1 -1
- package/lang/translations/ar.po +1 -1
- package/lang/translations/ast.po +1 -1
- package/lang/translations/az.po +1 -1
- package/lang/translations/bg.po +1 -1
- package/lang/translations/bn.po +1 -1
- package/lang/translations/bs.po +1 -1
- package/lang/translations/ca.po +1 -1
- package/lang/translations/cs.po +1 -1
- package/lang/translations/da.po +1 -1
- package/lang/translations/de-ch.po +1 -1
- package/lang/translations/de.po +1 -1
- package/lang/translations/el.po +1 -1
- package/lang/translations/en-au.po +1 -1
- package/lang/translations/en-gb.po +1 -1
- package/lang/translations/en.po +1 -1
- package/lang/translations/eo.po +1 -1
- package/lang/translations/es-co.po +1 -1
- package/lang/translations/es.po +1 -1
- package/lang/translations/et.po +1 -1
- package/lang/translations/eu.po +1 -1
- package/lang/translations/fa.po +1 -1
- package/lang/translations/fi.po +1 -1
- package/lang/translations/fr.po +1 -1
- package/lang/translations/gl.po +1 -1
- package/lang/translations/gu.po +1 -1
- package/lang/translations/he.po +1 -1
- package/lang/translations/hi.po +1 -1
- package/lang/translations/hr.po +1 -1
- package/lang/translations/hu.po +1 -1
- package/lang/translations/hy.po +1 -1
- package/lang/translations/id.po +1 -1
- package/lang/translations/it.po +1 -1
- package/lang/translations/ja.po +1 -1
- package/lang/translations/jv.po +1 -1
- package/lang/translations/kk.po +1 -1
- package/lang/translations/km.po +1 -1
- package/lang/translations/kn.po +1 -1
- package/lang/translations/ko.po +1 -1
- package/lang/translations/ku.po +1 -1
- package/lang/translations/lt.po +1 -1
- package/lang/translations/lv.po +1 -1
- package/lang/translations/ms.po +1 -1
- package/lang/translations/nb.po +1 -1
- package/lang/translations/ne.po +1 -1
- package/lang/translations/nl.po +1 -1
- package/lang/translations/no.po +1 -1
- package/lang/translations/oc.po +1 -1
- package/lang/translations/pl.po +1 -1
- package/lang/translations/pt-br.po +1 -1
- package/lang/translations/pt.po +1 -1
- package/lang/translations/ro.po +1 -1
- package/lang/translations/ru.po +1 -1
- package/lang/translations/si.po +1 -1
- package/lang/translations/sk.po +1 -1
- package/lang/translations/sl.po +1 -1
- package/lang/translations/sq.po +1 -1
- package/lang/translations/sr-latn.po +1 -1
- package/lang/translations/sr.po +1 -1
- package/lang/translations/sv.po +1 -1
- package/lang/translations/th.po +1 -1
- package/lang/translations/ti.po +1 -1
- package/lang/translations/tk.po +1 -1
- package/lang/translations/tr.po +1 -1
- package/lang/translations/tt.po +1 -1
- package/lang/translations/ug.po +1 -1
- package/lang/translations/uk.po +1 -1
- package/lang/translations/ur.po +1 -1
- package/lang/translations/uz.po +1 -1
- package/lang/translations/vi.po +1 -1
- package/lang/translations/zh-cn.po +1 -1
- package/lang/translations/zh.po +1 -1
- package/package.json +29 -8
- package/src/augmentation.d.ts +1 -1
- package/src/augmentation.js +1 -1
- package/src/highlightstack.d.ts +1 -1
- package/src/highlightstack.js +1 -1
- package/src/index.d.ts +1 -1
- package/src/index.js +1 -1
- package/src/utils.d.ts +1 -1
- package/src/utils.js +1 -1
- package/src/verticalnavigation.d.ts +1 -1
- package/src/verticalnavigation.js +1 -1
- package/src/widget.d.ts +1 -1
- package/src/widget.js +1 -1
- package/src/widgetresize/resizer.d.ts +1 -1
- package/src/widgetresize/resizer.js +1 -1
- package/src/widgetresize/resizerstate.d.ts +1 -1
- package/src/widgetresize/resizerstate.js +1 -1
- package/src/widgetresize/sizeview.d.ts +1 -1
- package/src/widgetresize/sizeview.js +1 -1
- package/src/widgetresize.d.ts +1 -1
- package/src/widgetresize.js +1 -1
- package/src/widgettoolbarrepository.d.ts +1 -1
- package/src/widgettoolbarrepository.js +1 -1
- package/src/widgettypearound/utils.d.ts +1 -1
- package/src/widgettypearound/utils.js +1 -1
- package/src/widgettypearound/widgettypearound.d.ts +1 -1
- package/src/widgettypearound/widgettypearound.js +1 -1
- package/theme/widget.css +1 -1
- package/theme/widgetresize.css +1 -1
- package/theme/widgettypearound.css +1 -1
- package/dist/augmentation.d.ts +0 -17
- package/dist/highlightstack.d.ts +0 -78
- package/dist/index.d.ts +0 -17
- package/dist/utils.d.ts +0 -219
- package/dist/verticalnavigation.d.ts +0 -19
- package/dist/widget.d.ts +0 -111
- package/dist/widgetresize/resizer.d.ts +0 -181
- package/dist/widgetresize/resizerstate.d.ts +0 -129
- package/dist/widgetresize/sizeview.d.ts +0 -59
- package/dist/widgetresize.d.ts +0 -133
- package/dist/widgettoolbarrepository.d.ts +0 -102
- package/dist/widgettypearound/utils.d.ts +0 -42
- package/dist/widgettypearound/widgettypearound.d.ts +0 -237
package/src/widget.d.ts
CHANGED
@@ -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
|
/**
|
package/src/widget.js
CHANGED
@@ -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
|
-
* @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
|
import { Rect, type DecoratedMethodEvent } from '@ckeditor/ckeditor5-utils';
|
@@ -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
|
-
* @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
|
import type { ResizerOptions } from '../widgetresize.js';
|
@@ -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
|
-
* @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
|
-
* @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
|
/**
|
package/src/widgetresize.d.ts
CHANGED
@@ -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
|
/**
|
package/src/widgetresize.js
CHANGED
@@ -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
|
-
* @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
|
-
* @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
|
-
* @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
|
import type { DocumentSelection, DomConverter, Element, Schema, Selection, ViewElement } from '@ckeditor/ckeditor5-engine';
|
@@ -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
|
-
* @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
|
-
* @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
|
/* global DOMParser */
|
package/theme/widget.css
CHANGED
package/theme/widgetresize.css
CHANGED
package/dist/augmentation.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
|
-
import type { Widget, WidgetResize, WidgetToolbarRepository, WidgetTypeAround } from './index.js';
|
10
|
-
declare module '@ckeditor/ckeditor5-core' {
|
11
|
-
interface PluginsMap {
|
12
|
-
[Widget.pluginName]: Widget;
|
13
|
-
[WidgetResize.pluginName]: WidgetResize;
|
14
|
-
[WidgetToolbarRepository.pluginName]: WidgetToolbarRepository;
|
15
|
-
[WidgetTypeAround.pluginName]: WidgetTypeAround;
|
16
|
-
}
|
17
|
-
}
|
package/dist/highlightstack.d.ts
DELETED
@@ -1,78 +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 { DowncastWriter, HighlightDescriptor } from '@ckeditor/ckeditor5-engine';
|
10
|
-
declare const HighlightStack_base: {
|
11
|
-
new (): import("@ckeditor/ckeditor5-utils").Emitter;
|
12
|
-
prototype: import("@ckeditor/ckeditor5-utils").Emitter;
|
13
|
-
};
|
14
|
-
/**
|
15
|
-
* Class used to handle the correct order of highlights on elements.
|
16
|
-
*
|
17
|
-
* When different highlights are applied to same element the correct order should be preserved:
|
18
|
-
*
|
19
|
-
* * highlight with highest priority should be applied,
|
20
|
-
* * if two highlights have same priority - sort by CSS class provided in
|
21
|
-
* {@link module:engine/conversion/downcasthelpers~HighlightDescriptor}.
|
22
|
-
*
|
23
|
-
* This way, highlight will be applied with the same rules it is applied on texts.
|
24
|
-
*/
|
25
|
-
export default class HighlightStack extends /* #__PURE__ */ HighlightStack_base {
|
26
|
-
private readonly _stack;
|
27
|
-
/**
|
28
|
-
* Adds highlight descriptor to the stack.
|
29
|
-
*
|
30
|
-
* @fires change:top
|
31
|
-
*/
|
32
|
-
add(descriptor: HighlightDescriptor, writer: DowncastWriter): void;
|
33
|
-
/**
|
34
|
-
* Removes highlight descriptor from the stack.
|
35
|
-
*
|
36
|
-
* @fires change:top
|
37
|
-
* @param id Id of the descriptor to remove.
|
38
|
-
*/
|
39
|
-
remove(id: string, writer: DowncastWriter): void;
|
40
|
-
/**
|
41
|
-
* Inserts a given descriptor in correct place in the stack. It also takes care about updating information
|
42
|
-
* when descriptor with same id is already present.
|
43
|
-
*/
|
44
|
-
private _insertDescriptor;
|
45
|
-
/**
|
46
|
-
* Removes descriptor with given id from the stack.
|
47
|
-
*
|
48
|
-
* @param id Descriptor's id.
|
49
|
-
*/
|
50
|
-
private _removeDescriptor;
|
51
|
-
}
|
52
|
-
/**
|
53
|
-
* Fired when top element on {@link module:widget/highlightstack~HighlightStack} has been changed
|
54
|
-
*
|
55
|
-
* @eventName ~HighlightStack#change:top
|
56
|
-
*/
|
57
|
-
export type HighlightStackChangeEvent = {
|
58
|
-
name: 'change' | 'change:top';
|
59
|
-
args: [HighlightStackChangeEventData];
|
60
|
-
};
|
61
|
-
/**
|
62
|
-
* Additional information about the change.
|
63
|
-
*/
|
64
|
-
export type HighlightStackChangeEventData = {
|
65
|
-
/**
|
66
|
-
* Old highlight descriptor. It will be `undefined` when first descriptor is added to the stack.
|
67
|
-
*/
|
68
|
-
oldDescriptor: HighlightDescriptor;
|
69
|
-
/**
|
70
|
-
* New highlight descriptor. It will be `undefined` when last descriptor is removed from the stack.
|
71
|
-
*/
|
72
|
-
newDescriptor: HighlightDescriptor;
|
73
|
-
/**
|
74
|
-
* View writer that can be used to modify element.
|
75
|
-
*/
|
76
|
-
writer: DowncastWriter;
|
77
|
-
};
|
78
|
-
export {};
|
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 widget
|
11
|
-
*/
|
12
|
-
export { default as Widget } from './widget.js';
|
13
|
-
export { default as WidgetToolbarRepository } from './widgettoolbarrepository.js';
|
14
|
-
export { default as WidgetResize } from './widgetresize.js';
|
15
|
-
export { default as WidgetTypeAround } from './widgettypearound/widgettypearound.js';
|
16
|
-
export * from './utils.js';
|
17
|
-
import './augmentation.js';
|
package/dist/utils.d.ts
DELETED
@@ -1,219 +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 widget/utils
|
11
|
-
*/
|
12
|
-
import { Rect, type GetCallback } from '@ckeditor/ckeditor5-utils';
|
13
|
-
import { type HighlightDescriptor, type MapperViewToModelPositionEvent, type DocumentSelection, type DowncastWriter, type Model, type Range, type Selection, type ViewEditableElement, type ViewElement, type ViewTypeCheckable } from '@ckeditor/ckeditor5-engine';
|
14
|
-
/**
|
15
|
-
* CSS class added to each widget element.
|
16
|
-
*/
|
17
|
-
export declare const WIDGET_CLASS_NAME = "ck-widget";
|
18
|
-
/**
|
19
|
-
* CSS class added to currently selected widget element.
|
20
|
-
*/
|
21
|
-
export declare const WIDGET_SELECTED_CLASS_NAME = "ck-widget_selected";
|
22
|
-
/**
|
23
|
-
* Returns `true` if given {@link module:engine/view/node~Node} is an {@link module:engine/view/element~Element} and a widget.
|
24
|
-
*/
|
25
|
-
export declare function isWidget(node: ViewTypeCheckable): boolean;
|
26
|
-
/**
|
27
|
-
* Converts the given {@link module:engine/view/element~Element} to a widget in the following way:
|
28
|
-
*
|
29
|
-
* * sets the `contenteditable` attribute to `"false"`,
|
30
|
-
* * adds the `ck-widget` CSS class,
|
31
|
-
* * adds a custom {@link module:engine/view/element~Element#getFillerOffset `getFillerOffset()`} method returning `null`,
|
32
|
-
* * adds a custom property allowing to recognize widget elements by using {@link ~isWidget `isWidget()`},
|
33
|
-
* * implements the {@link ~setHighlightHandling view highlight on widgets}.
|
34
|
-
*
|
35
|
-
* This function needs to be used in conjunction with
|
36
|
-
* {@link module:engine/conversion/downcasthelpers~DowncastHelpers downcast conversion helpers}
|
37
|
-
* like {@link module:engine/conversion/downcasthelpers~DowncastHelpers#elementToElement `elementToElement()`}.
|
38
|
-
* Moreover, typically you will want to use `toWidget()` only for `editingDowncast`, while keeping the `dataDowncast` clean.
|
39
|
-
*
|
40
|
-
* For example, in order to convert a `<widget>` model element to `<div class="widget">` in the view, you can define
|
41
|
-
* such converters:
|
42
|
-
*
|
43
|
-
* ```ts
|
44
|
-
* editor.conversion.for( 'editingDowncast' )
|
45
|
-
* .elementToElement( {
|
46
|
-
* model: 'widget',
|
47
|
-
* view: ( modelItem, { writer } ) => {
|
48
|
-
* const div = writer.createContainerElement( 'div', { class: 'widget' } );
|
49
|
-
*
|
50
|
-
* return toWidget( div, writer, { label: 'some widget' } );
|
51
|
-
* }
|
52
|
-
* } );
|
53
|
-
*
|
54
|
-
* editor.conversion.for( 'dataDowncast' )
|
55
|
-
* .elementToElement( {
|
56
|
-
* model: 'widget',
|
57
|
-
* view: ( modelItem, { writer } ) => {
|
58
|
-
* return writer.createContainerElement( 'div', { class: 'widget' } );
|
59
|
-
* }
|
60
|
-
* } );
|
61
|
-
* ```
|
62
|
-
*
|
63
|
-
* See the full source code of the widget (with a nested editable) schema definition and converters in
|
64
|
-
* [this sample](https://github.com/ckeditor/ckeditor5-widget/blob/master/tests/manual/widget-with-nestededitable.js).
|
65
|
-
*
|
66
|
-
* @param options Additional options.
|
67
|
-
* @param options.label Element's label provided to the {@link ~setLabel} function. It can be passed as
|
68
|
-
* a plain string or a function returning a string. It represents the widget for assistive technologies (like screen readers).
|
69
|
-
* @param options.hasSelectionHandle If `true`, the widget will have a selection handle added.
|
70
|
-
* @returns Returns the same element.
|
71
|
-
*/
|
72
|
-
export declare function toWidget(element: ViewElement, writer: DowncastWriter, options?: {
|
73
|
-
label?: string | (() => string);
|
74
|
-
hasSelectionHandle?: boolean;
|
75
|
-
}): ViewElement;
|
76
|
-
/**
|
77
|
-
* Sets highlight handling methods. Uses {@link module:widget/highlightstack~HighlightStack} to
|
78
|
-
* properly determine which highlight descriptor should be used at given time.
|
79
|
-
*/
|
80
|
-
export declare function setHighlightHandling(element: ViewElement, writer: DowncastWriter, add?: (element: ViewElement, descriptor: HighlightDescriptor, writer: DowncastWriter) => void, remove?: (element: ViewElement, descriptor: HighlightDescriptor, writer: DowncastWriter) => void): void;
|
81
|
-
/**
|
82
|
-
* Sets label for given element.
|
83
|
-
* It can be passed as a plain string or a function returning a string. Function will be called each time label is retrieved by
|
84
|
-
* {@link ~getLabel `getLabel()`}.
|
85
|
-
*/
|
86
|
-
export declare function setLabel(element: ViewElement, labelOrCreator: string | (() => string)): void;
|
87
|
-
/**
|
88
|
-
* Returns the label of the provided element.
|
89
|
-
*/
|
90
|
-
export declare function getLabel(element: ViewElement): string;
|
91
|
-
/**
|
92
|
-
* Adds functionality to the provided {@link module:engine/view/editableelement~EditableElement} to act as a widget's editable:
|
93
|
-
*
|
94
|
-
* * sets the `contenteditable` attribute to `true` when {@link module:engine/view/editableelement~EditableElement#isReadOnly} is `false`,
|
95
|
-
* otherwise sets it to `false`,
|
96
|
-
* * adds the `ck-editor__editable` and `ck-editor__nested-editable` CSS classes,
|
97
|
-
* * adds the `ck-editor__nested-editable_focused` CSS class when the editable is focused and removes it when it is blurred.
|
98
|
-
* * implements the {@link ~setHighlightHandling view highlight on widget's editable}.
|
99
|
-
*
|
100
|
-
* Similarly to {@link ~toWidget `toWidget()`} this function should be used in `editingDowncast` only and it is usually
|
101
|
-
* used together with {@link module:engine/conversion/downcasthelpers~DowncastHelpers#elementToElement `elementToElement()`}.
|
102
|
-
*
|
103
|
-
* For example, in order to convert a `<nested>` model element to `<div class="nested">` in the view, you can define
|
104
|
-
* such converters:
|
105
|
-
*
|
106
|
-
* ```ts
|
107
|
-
* editor.conversion.for( 'editingDowncast' )
|
108
|
-
* .elementToElement( {
|
109
|
-
* model: 'nested',
|
110
|
-
* view: ( modelItem, { writer } ) => {
|
111
|
-
* const div = writer.createEditableElement( 'div', { class: 'nested' } );
|
112
|
-
*
|
113
|
-
* return toWidgetEditable( nested, writer, { label: 'label for editable' } );
|
114
|
-
* }
|
115
|
-
* } );
|
116
|
-
*
|
117
|
-
* editor.conversion.for( 'dataDowncast' )
|
118
|
-
* .elementToElement( {
|
119
|
-
* model: 'nested',
|
120
|
-
* view: ( modelItem, { writer } ) => {
|
121
|
-
* return writer.createContainerElement( 'div', { class: 'nested' } );
|
122
|
-
* }
|
123
|
-
* } );
|
124
|
-
* ```
|
125
|
-
*
|
126
|
-
* See the full source code of the widget (with nested editable) schema definition and converters in
|
127
|
-
* [this sample](https://github.com/ckeditor/ckeditor5-widget/blob/master/tests/manual/widget-with-nestededitable.js).
|
128
|
-
*
|
129
|
-
* @param options Additional options.
|
130
|
-
* @param options.label Editable's label used by assistive technologies (e.g. screen readers).
|
131
|
-
* @returns Returns the same element that was provided in the `editable` parameter
|
132
|
-
*/
|
133
|
-
export declare function toWidgetEditable(editable: ViewEditableElement, writer: DowncastWriter, options?: {
|
134
|
-
label?: string;
|
135
|
-
}): ViewEditableElement;
|
136
|
-
/**
|
137
|
-
* Returns a model range which is optimal (in terms of UX) for inserting a widget block.
|
138
|
-
*
|
139
|
-
* For instance, if a selection is in the middle of a paragraph, the collapsed range before this paragraph
|
140
|
-
* will be returned so that it is not split. If the selection is at the end of a paragraph,
|
141
|
-
* the collapsed range after this paragraph will be returned.
|
142
|
-
*
|
143
|
-
* Note: If the selection is placed in an empty block, the range in that block will be returned. If that range
|
144
|
-
* is then passed to {@link module:engine/model/model~Model#insertContent}, the block will be fully replaced
|
145
|
-
* by the inserted widget block.
|
146
|
-
*
|
147
|
-
* @param selection The selection based on which the insertion position should be calculated.
|
148
|
-
* @param model Model instance.
|
149
|
-
* @returns The optimal range.
|
150
|
-
*/
|
151
|
-
export declare function findOptimalInsertionRange(selection: Selection | DocumentSelection, model: Model): Range;
|
152
|
-
/**
|
153
|
-
* A util to be used in order to map view positions to correct model positions when implementing a widget
|
154
|
-
* which renders non-empty view element for an empty model element.
|
155
|
-
*
|
156
|
-
* For example:
|
157
|
-
*
|
158
|
-
* ```
|
159
|
-
* // Model:
|
160
|
-
* <placeholder type="name"></placeholder>
|
161
|
-
*
|
162
|
-
* // View:
|
163
|
-
* <span class="placeholder">name</span>
|
164
|
-
* ```
|
165
|
-
*
|
166
|
-
* In such case, view positions inside `<span>` cannot be correctly mapped to the model (because the model element is empty).
|
167
|
-
* To handle mapping positions inside `<span class="placeholder">` to the model use this util as follows:
|
168
|
-
*
|
169
|
-
* ```ts
|
170
|
-
* editor.editing.mapper.on(
|
171
|
-
* 'viewToModelPosition',
|
172
|
-
* viewToModelPositionOutsideModelElement( model, viewElement => viewElement.hasClass( 'placeholder' ) )
|
173
|
-
* );
|
174
|
-
* ```
|
175
|
-
*
|
176
|
-
* The callback will try to map the view offset of selection to an expected model position.
|
177
|
-
*
|
178
|
-
* 1. When the position is at the end (or in the middle) of the inline widget:
|
179
|
-
*
|
180
|
-
* ```
|
181
|
-
* // View:
|
182
|
-
* <p>foo <span class="placeholder">name|</span> bar</p>
|
183
|
-
*
|
184
|
-
* // Model:
|
185
|
-
* <paragraph>foo <placeholder type="name"></placeholder>| bar</paragraph>
|
186
|
-
* ```
|
187
|
-
*
|
188
|
-
* 2. When the position is at the beginning of the inline widget:
|
189
|
-
*
|
190
|
-
* ```
|
191
|
-
* // View:
|
192
|
-
* <p>foo <span class="placeholder">|name</span> bar</p>
|
193
|
-
*
|
194
|
-
* // Model:
|
195
|
-
* <paragraph>foo |<placeholder type="name"></placeholder> bar</paragraph>
|
196
|
-
* ```
|
197
|
-
*
|
198
|
-
* @param model Model instance on which the callback operates.
|
199
|
-
* @param viewElementMatcher Function that is passed a view element and should return `true` if the custom mapping
|
200
|
-
* should be applied to the given view element.
|
201
|
-
*/
|
202
|
-
export declare function viewToModelPositionOutsideModelElement(model: Model, viewElementMatcher: (element: ViewElement) => boolean): GetCallback<MapperViewToModelPositionEvent>;
|
203
|
-
/**
|
204
|
-
* Starting from a DOM resize host element (an element that receives dimensions as a result of resizing),
|
205
|
-
* this helper returns the width of the found ancestor element.
|
206
|
-
*
|
207
|
-
* * It searches up to 5 levels of ancestors only.
|
208
|
-
*
|
209
|
-
* @param domResizeHost Resize host DOM element that receives dimensions as a result of resizing.
|
210
|
-
* @returns Width of ancestor element in pixels or 0 if no ancestor with a computed width has been found.
|
211
|
-
*/
|
212
|
-
export declare function calculateResizeHostAncestorWidth(domResizeHost: HTMLElement): number;
|
213
|
-
/**
|
214
|
-
* Calculates a relative width of a `domResizeHost` compared to its ancestor in percents.
|
215
|
-
*
|
216
|
-
* @param domResizeHost Resize host DOM element.
|
217
|
-
* @returns Percentage value between 0 and 100.
|
218
|
-
*/
|
219
|
-
export declare function calculateResizeHostPercentageWidth(domResizeHost: HTMLElement, resizeHostRect?: Rect): number;
|
@@ -1,19 +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 widget/verticalnavigation
|
11
|
-
*/
|
12
|
-
import { type GetCallback } from '@ckeditor/ckeditor5-utils';
|
13
|
-
import type { EditingController, ViewDocumentArrowKeyEvent } from '@ckeditor/ckeditor5-engine';
|
14
|
-
/**
|
15
|
-
* Returns 'keydown' handler for up/down arrow keys that modifies the caret movement if it's in a text line next to an object.
|
16
|
-
*
|
17
|
-
* @param editing The editing controller.
|
18
|
-
*/
|
19
|
-
export default function verticalNavigationHandler(editing: EditingController): GetCallback<ViewDocumentArrowKeyEvent>;
|
package/dist/widget.d.ts
DELETED
@@ -1,111 +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 widget/widget
|
11
|
-
*/
|
12
|
-
import { Plugin } from '@ckeditor/ckeditor5-core';
|
13
|
-
import { type Element, type Node } from '@ckeditor/ckeditor5-engine';
|
14
|
-
import { Delete } from '@ckeditor/ckeditor5-typing';
|
15
|
-
import WidgetTypeAround from './widgettypearound/widgettypearound.js';
|
16
|
-
import '../theme/widget.css';
|
17
|
-
/**
|
18
|
-
* The widget plugin. It enables base support for widgets.
|
19
|
-
*
|
20
|
-
* See {@glink api/widget package page} for more details and documentation.
|
21
|
-
*
|
22
|
-
* This plugin enables multiple behaviors required by widgets:
|
23
|
-
*
|
24
|
-
* * The model to view selection converter for the editing pipeline (it handles widget custom selection rendering).
|
25
|
-
* If a converted selection wraps around a widget element, that selection is marked as
|
26
|
-
* {@link module:engine/view/selection~Selection#isFake fake}. Additionally, the `ck-widget_selected` CSS class
|
27
|
-
* is added to indicate that widget has been selected.
|
28
|
-
* * The mouse and keyboard events handling on and around widget elements.
|
29
|
-
*/
|
30
|
-
export default class Widget extends Plugin {
|
31
|
-
/**
|
32
|
-
* Holds previously selected widgets.
|
33
|
-
*/
|
34
|
-
private _previouslySelected;
|
35
|
-
/**
|
36
|
-
* @inheritDoc
|
37
|
-
*/
|
38
|
-
static get pluginName(): "Widget";
|
39
|
-
/**
|
40
|
-
* @inheritDoc
|
41
|
-
*/
|
42
|
-
static get isOfficialPlugin(): true;
|
43
|
-
/**
|
44
|
-
* @inheritDoc
|
45
|
-
*/
|
46
|
-
static get requires(): readonly [typeof WidgetTypeAround, typeof Delete];
|
47
|
-
/**
|
48
|
-
* @inheritDoc
|
49
|
-
*/
|
50
|
-
init(): void;
|
51
|
-
/**
|
52
|
-
* Handles {@link module:engine/view/document~Document#event:mousedown mousedown} events on widget elements.
|
53
|
-
*/
|
54
|
-
private _onMousedown;
|
55
|
-
/**
|
56
|
-
* Selects entire block content, e.g. on triple click it selects entire paragraph.
|
57
|
-
*/
|
58
|
-
private _selectBlockContent;
|
59
|
-
/**
|
60
|
-
* Handles {@link module:engine/view/document~Document#event:keydown keydown} events and changes
|
61
|
-
* the model selection when:
|
62
|
-
*
|
63
|
-
* * arrow key is pressed when the widget is selected,
|
64
|
-
* * the selection is next to a widget and the widget should become selected upon the arrow key press.
|
65
|
-
*
|
66
|
-
* See {@link #_preventDefaultOnArrowKeyPress}.
|
67
|
-
*/
|
68
|
-
private _handleSelectionChangeOnArrowKeyPress;
|
69
|
-
/**
|
70
|
-
* Handles {@link module:engine/view/document~Document#event:keydown keydown} events and prevents
|
71
|
-
* the default browser behavior to make sure the fake selection is not being moved from a fake selection
|
72
|
-
* container.
|
73
|
-
*
|
74
|
-
* See {@link #_handleSelectionChangeOnArrowKeyPress}.
|
75
|
-
*/
|
76
|
-
private _preventDefaultOnArrowKeyPress;
|
77
|
-
/**
|
78
|
-
* Handles delete keys: backspace and delete.
|
79
|
-
*
|
80
|
-
* @param isForward Set to true if delete was performed in forward direction.
|
81
|
-
* @returns Returns `true` if keys were handled correctly.
|
82
|
-
*/
|
83
|
-
private _handleDelete;
|
84
|
-
/**
|
85
|
-
* Sets {@link module:engine/model/selection~Selection document's selection} over given element.
|
86
|
-
*
|
87
|
-
* @internal
|
88
|
-
*/
|
89
|
-
_setSelectionOverElement(element: Node): void;
|
90
|
-
/**
|
91
|
-
* Checks if {@link module:engine/model/element~Element element} placed next to the current
|
92
|
-
* {@link module:engine/model/selection~Selection model selection} exists and is marked in
|
93
|
-
* {@link module:engine/model/schema~Schema schema} as `object`.
|
94
|
-
*
|
95
|
-
* @internal
|
96
|
-
* @param forward Direction of checking.
|
97
|
-
*/
|
98
|
-
_getObjectElementNextToSelection(forward: boolean): Element | null;
|
99
|
-
/**
|
100
|
-
* Removes CSS class from previously selected widgets.
|
101
|
-
*/
|
102
|
-
private _clearPreviouslySelectedWidgets;
|
103
|
-
/**
|
104
|
-
* Moves the document selection into the first nested editable.
|
105
|
-
*/
|
106
|
-
private _selectFirstNestedEditable;
|
107
|
-
/**
|
108
|
-
* Updates the document selection so that it selects first ancestor widget.
|
109
|
-
*/
|
110
|
-
private _selectAncestorWidget;
|
111
|
-
}
|