@manuscripts/body-editor 1.7.26 → 1.7.27

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.
@@ -43,10 +43,6 @@ class LinkEditableView extends link_1.LinkView {
43
43
  if (!this.props.getCapabilities().editArticle) {
44
44
  return;
45
45
  }
46
- if (!this.popperContainer) {
47
- this.popperContainer = document.createElement('div');
48
- this.popperContainer.className = 'link-editor';
49
- }
50
46
  const originalValue = {
51
47
  href: this.node.attrs.href,
52
48
  title: this.node.attrs.title,
@@ -58,7 +54,7 @@ class LinkEditableView extends link_1.LinkView {
58
54
  handleRemove: this.handleRemove,
59
55
  handleSave: this.handleSave,
60
56
  };
61
- this.popperContainer = (0, ReactSubView_1.default)(this.props, LinkForm_1.LinkForm, componentProps, this.node, this.getPos, this.view);
57
+ this.popperContainer = (0, ReactSubView_1.default)(this.props, LinkForm_1.LinkForm, componentProps, this.node, this.getPos, this.view, 'link-editor');
62
58
  this.props.popper.show(this.dom, this.popperContainer, 'bottom');
63
59
  };
64
60
  this.handleCancel = () => {
@@ -37,10 +37,6 @@ export class LinkEditableView extends LinkView {
37
37
  if (!this.props.getCapabilities().editArticle) {
38
38
  return;
39
39
  }
40
- if (!this.popperContainer) {
41
- this.popperContainer = document.createElement('div');
42
- this.popperContainer.className = 'link-editor';
43
- }
44
40
  const originalValue = {
45
41
  href: this.node.attrs.href,
46
42
  title: this.node.attrs.title,
@@ -52,7 +48,7 @@ export class LinkEditableView extends LinkView {
52
48
  handleRemove: this.handleRemove,
53
49
  handleSave: this.handleSave,
54
50
  };
55
- this.popperContainer = ReactSubView(this.props, LinkForm, componentProps, this.node, this.getPos, this.view);
51
+ this.popperContainer = ReactSubView(this.props, LinkForm, componentProps, this.node, this.getPos, this.view, 'link-editor');
56
52
  this.props.popper.show(this.dom, this.popperContainer, 'bottom');
57
53
  };
58
54
  this.handleCancel = () => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@manuscripts/body-editor",
3
3
  "description": "Prosemirror components for editing and viewing manuscripts",
4
- "version": "1.7.26",
4
+ "version": "1.7.27",
5
5
  "repository": "github:Atypon-OpenSource/manuscripts-body-editor",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/cjs",