Skip to content

Commit ade8f83

Browse files
committed
latest
1 parent 8e86a2d commit ade8f83

4 files changed

Lines changed: 3 additions & 126 deletions

File tree

package-lock.json

Lines changed: 1 addition & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/super-editor/src/assets/styles/extensions/pagination.css

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
:root {
2-
--sd-editor-separator-height: 18px;
3-
}
4-
51
.pagination-section-header {
62
cursor: default;
73
}
@@ -27,27 +23,15 @@
2723
.pagination-separator {
2824
position: relative;
2925
display: block;
30-
height: var(--sd-editor-separator-height);
31-
min-height: var(--sd-editor-separator-height);
26+
height: 18px;
27+
min-height: 18px;
3228
min-width: 100%;
3329
width: 100%;
3430
border-top: 1px solid #DBDBDB;
3531
border-bottom: 1px solid #DBDBDB;
3632
cursor: default;
3733
}
3834

39-
.pagination-separator--table {
40-
border: 0;
41-
}
42-
43-
.pagination-separator-floating {
44-
position: absolute;
45-
height: var(--sd-editor-separator-height);
46-
border-top: 1px solid #DBDBDB;
47-
border-bottom: 1px solid #DBDBDB;
48-
pointer-events: none;
49-
}
50-
5135
.pagination-inner {
5236
position: absolute;
5337
top: 0;

packages/super-editor/src/core/super-converter/exporter.js

Lines changed: 0 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -2408,81 +2408,3 @@ function translateStructuredContent(params) {
24082408
elements: nodeElements,
24092409
};
24102410
};
2411-
2412-
const translatePageNumberNode = (params) => {
2413-
const outputMarks = processOutputMarks(params.node.attrs?.marksAsAttrs || []);
2414-
return getAutoPageJson('PAGE', outputMarks)
2415-
}
2416-
2417-
const translateTotalPageNumberNode = (params) => {
2418-
const outputMarks = processOutputMarks(params.node.attrs?.marksAsAttrs || []);
2419-
return getAutoPageJson('NUMPAGES', outputMarks)
2420-
}
2421-
2422-
const getAutoPageJson = (type, outputMarks = []) => {
2423-
return [
2424-
{
2425-
"name": "w:r",
2426-
"elements": [
2427-
{
2428-
"name": "w:rPr",
2429-
"elements": outputMarks,
2430-
},
2431-
{
2432-
"name": "w:fldChar",
2433-
"attributes": {
2434-
"w:fldCharType": "begin"
2435-
}
2436-
}
2437-
]
2438-
},
2439-
{
2440-
"name": "w:r",
2441-
"elements": [
2442-
{
2443-
"name": "w:rPr",
2444-
"elements": outputMarks,
2445-
},
2446-
{
2447-
"name": "w:instrText",
2448-
"elements": [
2449-
{
2450-
"type": "text",
2451-
"text": ` ${type}`
2452-
}
2453-
]
2454-
}
2455-
]
2456-
},
2457-
{
2458-
"name": "w:r",
2459-
"elements": [
2460-
{
2461-
"name": "w:rPr",
2462-
"elements": outputMarks,
2463-
},
2464-
{
2465-
"name": "w:fldChar",
2466-
"attributes": {
2467-
"w:fldCharType": "separate"
2468-
}
2469-
}
2470-
]
2471-
},
2472-
{
2473-
"name": "w:r",
2474-
"elements": [
2475-
{
2476-
"name": "w:rPr",
2477-
"elements": outputMarks,
2478-
},
2479-
{
2480-
"name": "w:fldChar",
2481-
"attributes": {
2482-
"w:fldCharType": "end"
2483-
}
2484-
}
2485-
]
2486-
}
2487-
]
2488-
};

packages/super-editor/src/core/super-converter/v2/importer/autoPageNumberImporter.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { parseMarks } from './markImporter.js';
2-
31
/**
42
* @type {import("docxImporter").NodeHandler}
53
*/

0 commit comments

Comments
 (0)