@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
|
@@ -2382,6 +2382,7 @@ var Placeholder = useEditorStore.Extension.create({
|
|
|
2382
2382
|
var SelectionDecoration = fuzzySearch.src_default$4.extend({
|
|
2383
2383
|
name: "selectionDecorator",
|
|
2384
2384
|
addProseMirrorPlugins: function addProseMirrorPlugins() {
|
|
2385
|
+
var editor = this.editor;
|
|
2385
2386
|
return [new index.Plugin({
|
|
2386
2387
|
key: new index.PluginKey("selectionDecorator"),
|
|
2387
2388
|
state: {
|
|
@@ -2415,6 +2416,7 @@ var SelectionDecoration = fuzzySearch.src_default$4.extend({
|
|
|
2415
2416
|
},
|
|
2416
2417
|
props: {
|
|
2417
2418
|
decorations: function decorations(state) {
|
|
2419
|
+
if (editor.isFocused) return useEditorStore.DecorationSet.empty;
|
|
2418
2420
|
return this.getState(state).decorations;
|
|
2419
2421
|
}
|
|
2420
2422
|
}
|