@manuscripts/body-editor 3.7.20 → 3.7.21

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.
@@ -26,7 +26,7 @@ const placeholderWidget = (placeholder) => (view, getPos) => {
26
26
  const element = document.createElement('span');
27
27
  element.className = 'placeholder-text';
28
28
  element.setAttribute('aria-hidden', 'true');
29
- element.textContent = placeholder;
29
+ element.dataset.placeholder = placeholder;
30
30
  element.addEventListener('click', (event) => {
31
31
  event.preventDefault();
32
32
  const pos = getPos();
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MATHJAX_VERSION = exports.VERSION = void 0;
4
- exports.VERSION = '3.7.20';
4
+ exports.VERSION = '3.7.21';
5
5
  exports.MATHJAX_VERSION = '3.2.2';
@@ -24,7 +24,7 @@ const placeholderWidget = (placeholder) => (view, getPos) => {
24
24
  const element = document.createElement('span');
25
25
  element.className = 'placeholder-text';
26
26
  element.setAttribute('aria-hidden', 'true');
27
- element.textContent = placeholder;
27
+ element.dataset.placeholder = placeholder;
28
28
  element.addEventListener('click', (event) => {
29
29
  event.preventDefault();
30
30
  const pos = getPos();
@@ -1,2 +1,2 @@
1
- export const VERSION = '3.7.20';
1
+ export const VERSION = '3.7.21';
2
2
  export const MATHJAX_VERSION = '3.2.2';
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "3.7.20";
1
+ export declare const VERSION = "3.7.21";
2
2
  export declare const MATHJAX_VERSION = "3.2.2";
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": "3.7.20",
4
+ "version": "3.7.21",
5
5
  "repository": "github:Atypon-OpenSource/manuscripts-body-editor",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/cjs",
package/styles/Editor.css CHANGED
@@ -155,9 +155,16 @@
155
155
  .ProseMirror .pullquote figure {
156
156
  margin: 0;
157
157
  }
158
- .ProseMirror .pullquote footer.empty-node:after,
158
+ .ProseMirror .pullquote footer.empty-node:after {
159
+ background: #ddf3fa;
160
+ color: #6e6e6e;
161
+ }
162
+
159
163
  .ProseMirror .pullquote .placeholder-text {
160
164
  background: #ddf3fa;
165
+ }
166
+
167
+ .ProseMirror .pullquote .placeholder-text::before {
161
168
  color: #6e6e6e;
162
169
  }
163
170
 
@@ -572,8 +579,13 @@
572
579
 
573
580
  .ProseMirror .placeholder-text {
574
581
  font-style: italic;
575
- color: #c9c9c9;
576
582
  margin: 0;
583
+ cursor: text;
584
+ }
585
+
586
+ .ProseMirror .placeholder-text::before {
587
+ content: attr(data-placeholder);
588
+ color: #c9c9c9;
577
589
  }
578
590
 
579
591
  .ProseMirror .add-subtitle {