@ckeditor/ckeditor5-widget 0.0.0-nightly-next-20250305.0 → 0.0.0-nightly-20250306.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.
Potentially problematic release.
This version of @ckeditor/ckeditor5-widget might be problematic. Click here for more details.
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ckeditor/ckeditor5-widget",
|
3
|
-
"version": "0.0.0-nightly-
|
3
|
+
"version": "0.0.0-nightly-20250306.0",
|
4
4
|
"description": "Widget API for CKEditor 5.",
|
5
5
|
"keywords": [
|
6
6
|
"ckeditor",
|
@@ -12,13 +12,13 @@
|
|
12
12
|
"type": "module",
|
13
13
|
"main": "src/index.js",
|
14
14
|
"dependencies": {
|
15
|
-
"@ckeditor/ckeditor5-core": "0.0.0-nightly-
|
16
|
-
"@ckeditor/ckeditor5-engine": "0.0.0-nightly-
|
17
|
-
"@ckeditor/ckeditor5-enter": "0.0.0-nightly-
|
18
|
-
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-
|
19
|
-
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-
|
20
|
-
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-
|
21
|
-
"@ckeditor/ckeditor5-typing": "0.0.0-nightly-
|
15
|
+
"@ckeditor/ckeditor5-core": "0.0.0-nightly-20250306.0",
|
16
|
+
"@ckeditor/ckeditor5-engine": "0.0.0-nightly-20250306.0",
|
17
|
+
"@ckeditor/ckeditor5-enter": "0.0.0-nightly-20250306.0",
|
18
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250306.0",
|
19
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250306.0",
|
20
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250306.0",
|
21
|
+
"@ckeditor/ckeditor5-typing": "0.0.0-nightly-20250306.0",
|
22
22
|
"es-toolkit": "1.32.0"
|
23
23
|
},
|
24
24
|
"author": "CKSource (http://cksource.com/)",
|
@@ -14,6 +14,7 @@ import { Delete } from '@ckeditor/ckeditor5-typing';
|
|
14
14
|
import { env, isForwardArrowKeyCode } from '@ckeditor/ckeditor5-utils';
|
15
15
|
import { isTypeAroundWidget, getClosestTypeAroundDomButton, getTypeAroundButtonPosition, getClosestWidgetViewElement, getTypeAroundFakeCaretPosition, TYPE_AROUND_SELECTION_ATTRIBUTE } from './utils.js';
|
16
16
|
import { isWidget } from '../utils.js';
|
17
|
+
// @if CK_DEBUG_TYPING // const { _buildLogMessage } = require( '@ckeditor/ckeditor5-engine/src/dev-utils/utils.js' );
|
17
18
|
import '../../theme/widgettypearound.css';
|
18
19
|
const POSSIBLE_INSERTION_POSITIONS = ['before', 'after'];
|
19
20
|
// Do the SVG parsing once and then clone the result <svg> DOM element for each new button.
|
@@ -155,9 +156,9 @@ export default class WidgetTypeAround extends Plugin {
|
|
155
156
|
return false;
|
156
157
|
}
|
157
158
|
// @if CK_DEBUG_TYPING // if ( ( window as any ).logCKETyping ) {
|
158
|
-
// @if CK_DEBUG_TYPING // console.info(
|
159
|
-
// @if CK_DEBUG_TYPING // '
|
160
|
-
// @if CK_DEBUG_TYPING // );
|
159
|
+
// @if CK_DEBUG_TYPING // console.info( ..._buildLogMessage( this, 'WidgetTypeAround',
|
160
|
+
// @if CK_DEBUG_TYPING // 'Fake caret -> insert paragraph',
|
161
|
+
// @if CK_DEBUG_TYPING // ) );
|
161
162
|
// @if CK_DEBUG_TYPING // }
|
162
163
|
const selectedModelElement = modelSelection.getSelectedElement();
|
163
164
|
this._insertParagraph(selectedModelElement, typeAroundFakeCaretPosition);
|