@manuscripts/body-editor 2.8.33 → 2.8.34
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/cjs/components/toolbar/helpers.js +1 -1
- package/dist/cjs/versions.js +1 -1
- package/dist/cjs/views/section_title.js +1 -1
- package/dist/es/components/toolbar/helpers.js +1 -1
- package/dist/es/versions.js +1 -1
- package/dist/es/views/section_title.js +1 -1
- package/dist/types/versions.d.ts +1 -1
- package/package.json +1 -1
- package/styles/Editor.css +8 -0
|
@@ -273,7 +273,7 @@ const unindentParagraph = () => (state, dispatch, view) => {
|
|
|
273
273
|
const newSection = schema.nodes.section.create({ id: (0, transform_1.generateNodeID)(schema.nodes.section) }, sectionContent);
|
|
274
274
|
tr.delete(paragraphPos, parentSectionEnd);
|
|
275
275
|
tr.insert(paragraphPos + 2, newSection);
|
|
276
|
-
tr.setSelection(prosemirror_state_1.TextSelection.create(tr.doc,
|
|
276
|
+
tr.setSelection(prosemirror_state_1.TextSelection.create(tr.doc, tr.mapping.map(paragraphPos) + 4));
|
|
277
277
|
dispatch((0, track_changes_plugin_1.skipTracking)(tr));
|
|
278
278
|
view === null || view === void 0 ? void 0 : view.focus();
|
|
279
279
|
};
|
package/dist/cjs/versions.js
CHANGED
|
@@ -62,7 +62,7 @@ class SectionTitleView extends block_view_1.default {
|
|
|
62
62
|
this.contentDOM.setAttribute('data-placeholder', `Optional box title...`);
|
|
63
63
|
}
|
|
64
64
|
else {
|
|
65
|
-
this.contentDOM.setAttribute('data-placeholder', `
|
|
65
|
+
this.contentDOM.setAttribute('data-placeholder', `Type heading here`);
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
if (sectionTitleState && sectionNumber) {
|
|
@@ -261,7 +261,7 @@ export const unindentParagraph = () => (state, dispatch, view) => {
|
|
|
261
261
|
const newSection = schema.nodes.section.create({ id: generateNodeID(schema.nodes.section) }, sectionContent);
|
|
262
262
|
tr.delete(paragraphPos, parentSectionEnd);
|
|
263
263
|
tr.insert(paragraphPos + 2, newSection);
|
|
264
|
-
tr.setSelection(TextSelection.create(tr.doc,
|
|
264
|
+
tr.setSelection(TextSelection.create(tr.doc, tr.mapping.map(paragraphPos) + 4));
|
|
265
265
|
dispatch(skipTracking(tr));
|
|
266
266
|
view === null || view === void 0 ? void 0 : view.focus();
|
|
267
267
|
};
|
package/dist/es/versions.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '2.8.
|
|
1
|
+
export const VERSION = '2.8.34';
|
|
2
2
|
export const MATHJAX_VERSION = '3.2.2';
|
|
@@ -56,7 +56,7 @@ export class SectionTitleView extends BlockView {
|
|
|
56
56
|
this.contentDOM.setAttribute('data-placeholder', `Optional box title...`);
|
|
57
57
|
}
|
|
58
58
|
else {
|
|
59
|
-
this.contentDOM.setAttribute('data-placeholder', `
|
|
59
|
+
this.contentDOM.setAttribute('data-placeholder', `Type heading here`);
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
if (sectionTitleState && sectionNumber) {
|
package/dist/types/versions.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "2.8.
|
|
1
|
+
export declare const VERSION = "2.8.34";
|
|
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": "2.8.
|
|
4
|
+
"version": "2.8.34",
|
|
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
|
@@ -586,6 +586,14 @@
|
|
|
586
586
|
.ProseMirror .empty-node:hover::before {
|
|
587
587
|
color: #6e6e6e;
|
|
588
588
|
}
|
|
589
|
+
|
|
590
|
+
.ProseMirror h1.empty-node::before {
|
|
591
|
+
color: #6e6e6e;
|
|
592
|
+
font-family: 'PT Sans', sans-serif;
|
|
593
|
+
font-style: italic;
|
|
594
|
+
line-height: 32px;
|
|
595
|
+
}
|
|
596
|
+
|
|
589
597
|
.ProseMirror .empty-node .article-titles::before {
|
|
590
598
|
position: absolute;
|
|
591
599
|
color: #c9c9c9;
|