@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.
@@ -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, parentSectionEnd + 2));
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
  };
@@ -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 = '2.8.33';
4
+ exports.VERSION = '2.8.34';
5
5
  exports.MATHJAX_VERSION = '3.2.2';
@@ -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', `Subsection Heading`);
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, parentSectionEnd + 2));
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
  };
@@ -1,2 +1,2 @@
1
- export const VERSION = '2.8.33';
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', `Subsection Heading`);
59
+ this.contentDOM.setAttribute('data-placeholder', `Type heading here`);
60
60
  }
61
61
  }
62
62
  if (sectionTitleState && sectionNumber) {
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "2.8.33";
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.33",
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;