File tree Expand file tree Collapse file tree
packages/super-editor/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- : root {
2- --sd-editor-separator-height : 18px ;
3- }
4-
51.pagination-section-header {
62 cursor : default;
73}
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 : 18 px ;
27+ min-height : 18 px ;
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 ;
Original file line number Diff line number Diff 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- } ;
Original file line number Diff line number Diff line change 1- import { parseMarks } from './markImporter.js' ;
2-
31/**
42 * @type {import("docxImporter").NodeHandler }
53 */
You can’t perform that action at this time.
0 commit comments