pro-editor-schema 1.6.14-dev.0 → 1.6.14-dev.1
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/index.js +7 -1
- package/dist/index.mjs +7 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1011,7 +1011,11 @@ var LINE_SCHEMA = createSchema({
|
|
|
1011
1011
|
optionalAttributes: ["role"],
|
|
1012
1012
|
allowedChildrenCodes: [
|
|
1013
1013
|
...ATOM_CODES_ALLOWED_CHILDREN,
|
|
1014
|
-
...INLINE_ELEMENT_CODES_ALLOWED_CHILDREN
|
|
1014
|
+
...INLINE_ELEMENT_CODES_ALLOWED_CHILDREN,
|
|
1015
|
+
// Typesetting accepts a fixed or floating figure anchored inside a poem
|
|
1016
|
+
// or dialogue line, so it stays where the author placed it.
|
|
1017
|
+
{ code: "informalfigure", required: false },
|
|
1018
|
+
{ code: "figure1", required: false }
|
|
1015
1019
|
]
|
|
1016
1020
|
});
|
|
1017
1021
|
|
|
@@ -1495,6 +1499,8 @@ var FIGURE_SCHEMA = createSchema({
|
|
|
1495
1499
|
allowedChildrenCodes: [
|
|
1496
1500
|
{ code: "mediaobject", required: false },
|
|
1497
1501
|
{ code: "label1", required: false },
|
|
1502
|
+
// The editor separates the label from the caption with <punc type="caption-seperator">.
|
|
1503
|
+
{ code: "punc", required: false },
|
|
1498
1504
|
{ code: "caption1", required: false },
|
|
1499
1505
|
{ code: "figsource", required: false },
|
|
1500
1506
|
{ code: "fignote", required: false }
|
package/dist/index.mjs
CHANGED
|
@@ -885,7 +885,11 @@ var LINE_SCHEMA = createSchema({
|
|
|
885
885
|
optionalAttributes: ["role"],
|
|
886
886
|
allowedChildrenCodes: [
|
|
887
887
|
...ATOM_CODES_ALLOWED_CHILDREN,
|
|
888
|
-
...INLINE_ELEMENT_CODES_ALLOWED_CHILDREN
|
|
888
|
+
...INLINE_ELEMENT_CODES_ALLOWED_CHILDREN,
|
|
889
|
+
// Typesetting accepts a fixed or floating figure anchored inside a poem
|
|
890
|
+
// or dialogue line, so it stays where the author placed it.
|
|
891
|
+
{ code: "informalfigure", required: false },
|
|
892
|
+
{ code: "figure1", required: false }
|
|
889
893
|
]
|
|
890
894
|
});
|
|
891
895
|
|
|
@@ -1369,6 +1373,8 @@ var FIGURE_SCHEMA = createSchema({
|
|
|
1369
1373
|
allowedChildrenCodes: [
|
|
1370
1374
|
{ code: "mediaobject", required: false },
|
|
1371
1375
|
{ code: "label1", required: false },
|
|
1376
|
+
// The editor separates the label from the caption with <punc type="caption-seperator">.
|
|
1377
|
+
{ code: "punc", required: false },
|
|
1372
1378
|
{ code: "caption1", required: false },
|
|
1373
1379
|
{ code: "figsource", required: false },
|
|
1374
1380
|
{ code: "fignote", required: false }
|