@bigbinary/neeto-editor-frontend 2.0.1 → 2.0.2
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/dist/.ready +1 -1
- package/dist/Editor.js +2 -0
- package/dist/Editor.js.map +1 -1
- package/dist/cjs/Editor.cjs.js +2 -0
- package/dist/cjs/Editor.cjs.js.map +1 -1
- package/dist/cjs/v2/Editor.cjs.js +2 -0
- package/dist/cjs/v2/Editor.cjs.js.map +1 -1
- package/dist/editor-stats.html +1 -19
- package/dist/v2/Editor.js +2 -0
- package/dist/v2/Editor.js.map +1 -1
- package/package.json +5 -5
package/dist/cjs/Editor.cjs.js
CHANGED
|
@@ -2385,6 +2385,7 @@ var Placeholder = useEditorStore.Extension.create({
|
|
|
2385
2385
|
var SelectionDecoration = fuzzySearch.src_default$4.extend({
|
|
2386
2386
|
name: "selectionDecorator",
|
|
2387
2387
|
addProseMirrorPlugins: function addProseMirrorPlugins() {
|
|
2388
|
+
var editor = this.editor;
|
|
2388
2389
|
return [new index.Plugin({
|
|
2389
2390
|
key: new index.PluginKey("selectionDecorator"),
|
|
2390
2391
|
state: {
|
|
@@ -2418,6 +2419,7 @@ var SelectionDecoration = fuzzySearch.src_default$4.extend({
|
|
|
2418
2419
|
},
|
|
2419
2420
|
props: {
|
|
2420
2421
|
decorations: function decorations(state) {
|
|
2422
|
+
if (editor.isFocused) return useEditorStore.DecorationSet.empty;
|
|
2421
2423
|
return this.getState(state).decorations;
|
|
2422
2424
|
}
|
|
2423
2425
|
}
|