@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/v2/Editor.js
CHANGED
|
@@ -2333,6 +2333,7 @@ var Placeholder = Extension.create({
|
|
|
2333
2333
|
var SelectionDecoration = src_default$4.extend({
|
|
2334
2334
|
name: "selectionDecorator",
|
|
2335
2335
|
addProseMirrorPlugins: function addProseMirrorPlugins() {
|
|
2336
|
+
var editor = this.editor;
|
|
2336
2337
|
return [new Plugin({
|
|
2337
2338
|
key: new PluginKey("selectionDecorator"),
|
|
2338
2339
|
state: {
|
|
@@ -2366,6 +2367,7 @@ var SelectionDecoration = src_default$4.extend({
|
|
|
2366
2367
|
},
|
|
2367
2368
|
props: {
|
|
2368
2369
|
decorations: function decorations(state) {
|
|
2370
|
+
if (editor.isFocused) return DecorationSet.empty;
|
|
2369
2371
|
return this.getState(state).decorations;
|
|
2370
2372
|
}
|
|
2371
2373
|
}
|