@manuscripts/body-editor 3.7.19 → 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.
|
@@ -25,7 +25,8 @@ const placeholderMap = {
|
|
|
25
25
|
const placeholderWidget = (placeholder) => (view, getPos) => {
|
|
26
26
|
const element = document.createElement('span');
|
|
27
27
|
element.className = 'placeholder-text';
|
|
28
|
-
element.
|
|
28
|
+
element.setAttribute('aria-hidden', 'true');
|
|
29
|
+
element.dataset.placeholder = placeholder;
|
|
29
30
|
element.addEventListener('click', (event) => {
|
|
30
31
|
event.preventDefault();
|
|
31
32
|
const pos = getPos();
|
package/dist/cjs/versions.js
CHANGED
|
@@ -23,7 +23,8 @@ const placeholderMap = {
|
|
|
23
23
|
const placeholderWidget = (placeholder) => (view, getPos) => {
|
|
24
24
|
const element = document.createElement('span');
|
|
25
25
|
element.className = 'placeholder-text';
|
|
26
|
-
element.
|
|
26
|
+
element.setAttribute('aria-hidden', 'true');
|
|
27
|
+
element.dataset.placeholder = placeholder;
|
|
27
28
|
element.addEventListener('click', (event) => {
|
|
28
29
|
event.preventDefault();
|
|
29
30
|
const pos = getPos();
|
package/dist/es/versions.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '3.7.
|
|
1
|
+
export const VERSION = '3.7.21';
|
|
2
2
|
export const MATHJAX_VERSION = '3.2.2';
|
package/dist/types/versions.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "3.7.
|
|
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.
|
|
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 {
|