diff --git a/editors/editoria/src/layout/EditorElements.js b/editors/editoria/src/layout/EditorElements.js index 5ea4a6ac68fc9f1c243cc240a7e1c0efb673b3cc..c0dee5cb87eda857bc1a7db9faef01c54eac627e 100644 --- a/editors/editoria/src/layout/EditorElements.js +++ b/editors/editoria/src/layout/EditorElements.js @@ -14,6 +14,7 @@ export default css` .ProseMirror { background: white; counter-reset: footnote; + line-height: 1.6; ${fontWriting} p::selection, @@ -45,7 +46,7 @@ export default css` } .ProseMirror footnote { - font-size: 0; + font-variant-numeric: lining-nums proportional-nums; display: inline-block; text-align: center; width: 17px; diff --git a/wax-prosemirror-services/src/SchemaService/DefaultSchema.js b/wax-prosemirror-services/src/SchemaService/DefaultSchema.js index 23653b144e7c4f1ba734999afe5ddecba5bb721f..26295da1435fc629db431c5f0e750133663e1c70 100644 --- a/wax-prosemirror-services/src/SchemaService/DefaultSchema.js +++ b/wax-prosemirror-services/src/SchemaService/DefaultSchema.js @@ -1,49 +1,49 @@ -import { SchemaHelpers } from "wax-prosemirror-utilities"; +import { SchemaHelpers } from 'wax-prosemirror-utilities'; export default { nodes: { doc: { - content: "block+" + content: 'block+', }, text: { - group: "inline" + group: 'inline', }, hard_break: { inline: true, - group: "inline", + group: 'inline', selectable: false, - parseDOM: [{ tag: "br" }], + parseDOM: [{ tag: 'br' }], toDOM() { - return ["br"]; - } + return ['br']; + }, }, paragraph: { - group: "block", - content: "inline*", + group: 'block', + content: 'inline*', attrs: { - id: { default: "" }, - class: { default: "paragraph" }, + id: { default: '' }, + class: { default: 'paragraph' }, track: { default: [] }, - group: { default: "" } + group: { default: '' }, }, parseDOM: [ { - tag: "p.paragraph", + tag: 'p.paragraph', getAttrs(dom) { return { id: dom.dataset.id, - class: dom.getAttribute("class"), + class: dom.getAttribute('class'), track: SchemaHelpers.parseTracks(dom.dataset.track), - group: dom.dataset.group + group: dom.dataset.group, }; - } - } + }, + }, ], toDOM(node) { const attrs = SchemaHelpers.blockLevelToDOM(node); - return ["p", attrs, 0]; - } - } + return ['p', attrs, 0]; + }, + }, }, - marks: {} + marks: {}, };