@ckeditor/ckeditor5-document-outline 47.6.1-alpha.1 → 48.0.0-alpha.0
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/LICENSE.md +1 -1
- package/ckeditor5-metadata.json +3 -3
- package/{src → dist}/documentoutline/documentoutlineui.d.ts +1 -1
- package/{src → dist}/documentoutline/documentoutlineutils.d.ts +3 -3
- package/{src → dist}/documentoutline/ui/documentoutlineitemview.d.ts +2 -2
- package/{src → dist}/documentoutline/ui/documentoutlineview.d.ts +2 -2
- package/{src → dist}/documentoutline/utils.d.ts +2 -2
- package/{src → dist}/documentoutline.d.ts +3 -3
- package/dist/index-content.css +24 -24
- package/dist/index-editor.css +91 -96
- package/dist/index.css +112 -141
- package/dist/index.js +1 -1
- package/{src → dist}/tableofcontents/headingid.d.ts +1 -1
- package/{src → dist}/tableofcontents/tableofcontentscommand.d.ts +1 -1
- package/{src → dist}/tableofcontents/tableofcontentsediting.d.ts +2 -2
- package/{src → dist}/tableofcontents/tableofcontentsui.d.ts +1 -1
- package/{src → dist}/tableofcontents.d.ts +1 -1
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/{src → dist}/utils/common-translations.d.ts +1 -1
- package/package.json +21 -45
- package/build/document-outline.js +0 -5
- package/build/translations/af.js +0 -1
- package/build/translations/ar.js +0 -1
- package/build/translations/ast.js +0 -1
- package/build/translations/az.js +0 -1
- package/build/translations/be.js +0 -1
- package/build/translations/bg.js +0 -1
- package/build/translations/bn.js +0 -1
- package/build/translations/bs.js +0 -1
- package/build/translations/ca.js +0 -1
- package/build/translations/cs.js +0 -1
- package/build/translations/da.js +0 -1
- package/build/translations/de-ch.js +0 -1
- package/build/translations/de.js +0 -1
- package/build/translations/el.js +0 -1
- package/build/translations/en-au.js +0 -1
- package/build/translations/en-gb.js +0 -1
- package/build/translations/eo.js +0 -1
- package/build/translations/es-co.js +0 -1
- package/build/translations/es.js +0 -1
- package/build/translations/et.js +0 -1
- package/build/translations/eu.js +0 -1
- package/build/translations/fa.js +0 -1
- package/build/translations/fi.js +0 -1
- package/build/translations/fr.js +0 -1
- package/build/translations/gl.js +0 -1
- package/build/translations/gu.js +0 -1
- package/build/translations/he.js +0 -1
- package/build/translations/hi.js +0 -1
- package/build/translations/hr.js +0 -1
- package/build/translations/hu.js +0 -1
- package/build/translations/hy.js +0 -1
- package/build/translations/id.js +0 -1
- package/build/translations/it.js +0 -1
- package/build/translations/ja.js +0 -1
- package/build/translations/jv.js +0 -1
- package/build/translations/kk.js +0 -1
- package/build/translations/km.js +0 -1
- package/build/translations/kn.js +0 -1
- package/build/translations/ko.js +0 -1
- package/build/translations/ku.js +0 -1
- package/build/translations/lt.js +0 -1
- package/build/translations/lv.js +0 -1
- package/build/translations/ms.js +0 -1
- package/build/translations/nb.js +0 -1
- package/build/translations/ne.js +0 -1
- package/build/translations/nl.js +0 -1
- package/build/translations/no.js +0 -1
- package/build/translations/oc.js +0 -1
- package/build/translations/pl.js +0 -1
- package/build/translations/pt-br.js +0 -1
- package/build/translations/pt.js +0 -1
- package/build/translations/ro.js +0 -1
- package/build/translations/ru.js +0 -1
- package/build/translations/si.js +0 -1
- package/build/translations/sk.js +0 -1
- package/build/translations/sl.js +0 -1
- package/build/translations/sq.js +0 -1
- package/build/translations/sr-latn.js +0 -1
- package/build/translations/sr.js +0 -1
- package/build/translations/sv.js +0 -1
- package/build/translations/th.js +0 -1
- package/build/translations/ti.js +0 -1
- package/build/translations/tk.js +0 -1
- package/build/translations/tr.js +0 -1
- package/build/translations/tt.js +0 -1
- package/build/translations/ug.js +0 -1
- package/build/translations/uk.js +0 -1
- package/build/translations/ur.js +0 -1
- package/build/translations/uz.js +0 -1
- package/build/translations/vi.js +0 -1
- package/build/translations/zh-cn.js +0 -1
- package/build/translations/zh.js +0 -1
- package/lang/contexts.json +0 -6
- package/lang/translations/af.po +0 -28
- package/lang/translations/ar.po +0 -28
- package/lang/translations/ast.po +0 -28
- package/lang/translations/az.po +0 -28
- package/lang/translations/be.po +0 -28
- package/lang/translations/bg.po +0 -28
- package/lang/translations/bn.po +0 -28
- package/lang/translations/bs.po +0 -28
- package/lang/translations/ca.po +0 -28
- package/lang/translations/cs.po +0 -28
- package/lang/translations/da.po +0 -28
- package/lang/translations/de-ch.po +0 -28
- package/lang/translations/de.po +0 -28
- package/lang/translations/el.po +0 -28
- package/lang/translations/en-au.po +0 -28
- package/lang/translations/en-gb.po +0 -28
- package/lang/translations/en.po +0 -28
- package/lang/translations/eo.po +0 -28
- package/lang/translations/es-co.po +0 -28
- package/lang/translations/es.po +0 -28
- package/lang/translations/et.po +0 -28
- package/lang/translations/eu.po +0 -28
- package/lang/translations/fa.po +0 -28
- package/lang/translations/fi.po +0 -28
- package/lang/translations/fr.po +0 -28
- package/lang/translations/gl.po +0 -28
- package/lang/translations/gu.po +0 -28
- package/lang/translations/he.po +0 -28
- package/lang/translations/hi.po +0 -28
- package/lang/translations/hr.po +0 -28
- package/lang/translations/hu.po +0 -28
- package/lang/translations/hy.po +0 -28
- package/lang/translations/id.po +0 -28
- package/lang/translations/it.po +0 -28
- package/lang/translations/ja.po +0 -28
- package/lang/translations/jv.po +0 -28
- package/lang/translations/kk.po +0 -28
- package/lang/translations/km.po +0 -28
- package/lang/translations/kn.po +0 -28
- package/lang/translations/ko.po +0 -28
- package/lang/translations/ku.po +0 -28
- package/lang/translations/lt.po +0 -28
- package/lang/translations/lv.po +0 -28
- package/lang/translations/ms.po +0 -28
- package/lang/translations/nb.po +0 -28
- package/lang/translations/ne.po +0 -28
- package/lang/translations/nl.po +0 -28
- package/lang/translations/no.po +0 -28
- package/lang/translations/oc.po +0 -28
- package/lang/translations/pl.po +0 -28
- package/lang/translations/pt-br.po +0 -28
- package/lang/translations/pt.po +0 -28
- package/lang/translations/ro.po +0 -28
- package/lang/translations/ru.po +0 -28
- package/lang/translations/si.po +0 -28
- package/lang/translations/sk.po +0 -28
- package/lang/translations/sl.po +0 -28
- package/lang/translations/sq.po +0 -28
- package/lang/translations/sr-latn.po +0 -28
- package/lang/translations/sr.po +0 -28
- package/lang/translations/sv.po +0 -28
- package/lang/translations/th.po +0 -28
- package/lang/translations/ti.po +0 -28
- package/lang/translations/tk.po +0 -28
- package/lang/translations/tr.po +0 -28
- package/lang/translations/tt.po +0 -28
- package/lang/translations/ug.po +0 -28
- package/lang/translations/uk.po +0 -28
- package/lang/translations/ur.po +0 -28
- package/lang/translations/uz.po +0 -28
- package/lang/translations/vi.po +0 -28
- package/lang/translations/zh-cn.po +0 -28
- package/lang/translations/zh.po +0 -28
- package/src/augmentation.js +0 -23
- package/src/documentoutline/documentoutlineui.js +0 -23
- package/src/documentoutline/documentoutlineutils.js +0 -23
- package/src/documentoutline/ui/documentoutlineitemview.js +0 -23
- package/src/documentoutline/ui/documentoutlineview.js +0 -23
- package/src/documentoutline/utils.js +0 -23
- package/src/documentoutline.js +0 -23
- package/src/index.js +0 -23
- package/src/legacyerrors.js +0 -23
- package/src/tableofcontents/headingid.js +0 -23
- package/src/tableofcontents/tableofcontentscommand.js +0 -23
- package/src/tableofcontents/tableofcontentsediting.js +0 -23
- package/src/tableofcontents/tableofcontentsui.js +0 -23
- package/src/tableofcontents.js +0 -23
- package/src/utils/common-translations.js +0 -23
- package/theme/documentoutline.css +0 -99
- package/theme/tableofcontents.css +0 -86
- /package/{src → dist}/augmentation.d.ts +0 -0
- /package/{src → dist}/index.d.ts +0 -0
- /package/{src → dist}/legacyerrors.d.ts +0 -0
package/LICENSE.md
CHANGED
|
@@ -14,7 +14,7 @@ Where not otherwise indicated, all CKEditor 5 content is authored by CKSour
|
|
|
14
14
|
|
|
15
15
|
The following libraries are included in CKEditor 5 under the [MIT license](https://opensource.org/licenses/MIT):
|
|
16
16
|
|
|
17
|
-
* es-toolkit - Copyright (c) 2024 Viva Republica, Inc.
|
|
17
|
+
* es-toolkit - Copyright (c) 2024 Viva Republica, Inc and Copyright OpenJS Foundation and other contributors.
|
|
18
18
|
|
|
19
19
|
Trademarks
|
|
20
20
|
----------
|
package/ckeditor5-metadata.json
CHANGED
|
@@ -5,19 +5,19 @@
|
|
|
5
5
|
"className": "DocumentOutline",
|
|
6
6
|
"description": "Displays a navigable list of document sections (headings) next to the editor.",
|
|
7
7
|
"docs": "features/document-outline.html",
|
|
8
|
-
"path": "src/documentoutline.
|
|
8
|
+
"path": "src/documentoutline.ts"
|
|
9
9
|
},
|
|
10
10
|
{
|
|
11
11
|
"name": "Table of contents",
|
|
12
12
|
"className": "TableOfContents",
|
|
13
13
|
"description": "Inserts a widget with a list of headings (section titles) that reflects the structure of the document.",
|
|
14
14
|
"docs": "features/table-of-contents.html",
|
|
15
|
-
"path": "src/tableofcontents.
|
|
15
|
+
"path": "src/tableofcontents.ts",
|
|
16
16
|
"uiComponents": [
|
|
17
17
|
{
|
|
18
18
|
"type": "Button",
|
|
19
19
|
"name": "tableOfContents",
|
|
20
|
-
"
|
|
20
|
+
"iconName": "IconTableOfContents"
|
|
21
21
|
}
|
|
22
22
|
],
|
|
23
23
|
"htmlOutput": [
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @module document-outline/documentoutline/documentoutlineui
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { Plugin, type Editor } from 'ckeditor5
|
|
9
|
+
import { Plugin, type Editor } from '@ckeditor/ckeditor5-core';
|
|
10
10
|
import { DocumentOutlineView } from './ui/documentoutlineview.js';
|
|
11
11
|
import '../../theme/documentoutline.css';
|
|
12
12
|
/**
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module document-outline/documentoutline/documentoutlineutils
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5
|
|
9
|
-
import { type ModelElement } from 'ckeditor5
|
|
10
|
-
import { diffToChanges } from 'ckeditor5
|
|
8
|
+
import { Plugin } from '@ckeditor/ckeditor5-core';
|
|
9
|
+
import { type ModelElement } from '@ckeditor/ckeditor5-engine';
|
|
10
|
+
import { diffToChanges } from '@ckeditor/ckeditor5-utils';
|
|
11
11
|
/**
|
|
12
12
|
* Document outline utilities.
|
|
13
13
|
*/
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module document-outline/documentoutline/ui/documentoutlineitemview
|
|
7
7
|
*/
|
|
8
|
-
import { View } from 'ckeditor5
|
|
9
|
-
import { type Locale } from 'ckeditor5
|
|
8
|
+
import { View } from '@ckeditor/ckeditor5-ui';
|
|
9
|
+
import { type Locale } from '@ckeditor/ckeditor5-utils';
|
|
10
10
|
/**
|
|
11
11
|
* An item of the document outline.
|
|
12
12
|
*/
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module document-outline/documentoutline/ui/documentoutlineview
|
|
7
7
|
*/
|
|
8
|
-
import { View, type ViewCollection } from 'ckeditor5
|
|
9
|
-
import { type Locale, type diffToChanges } from 'ckeditor5
|
|
8
|
+
import { View, type ViewCollection } from '@ckeditor/ckeditor5-ui';
|
|
9
|
+
import { type Locale, type diffToChanges } from '@ckeditor/ckeditor5-utils';
|
|
10
10
|
import type { OutlineItemDefinition } from '../documentoutlineutils.js';
|
|
11
11
|
import { DocumentOutlineItemView } from './documentoutlineitemview.js';
|
|
12
12
|
/**
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module document-outline/documentoutline/utils
|
|
7
7
|
*/
|
|
8
|
-
import { type ModelElement } from 'ckeditor5
|
|
9
|
-
import { type Editor } from 'ckeditor5
|
|
8
|
+
import { type ModelElement } from '@ckeditor/ckeditor5-engine';
|
|
9
|
+
import { type Editor } from '@ckeditor/ckeditor5-core';
|
|
10
10
|
/**
|
|
11
11
|
* Returns all text contents that are inside the given element and all its children.
|
|
12
12
|
*/
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @module document-outline/documentoutline
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { Plugin } from 'ckeditor5
|
|
9
|
+
import { Plugin } from '@ckeditor/ckeditor5-core';
|
|
10
10
|
import { DocumentOutlineUtils } from './documentoutline/documentoutlineutils.js';
|
|
11
11
|
import { DocumentOutlineUI } from './documentoutline/documentoutlineui.js';
|
|
12
12
|
/**
|
|
@@ -41,7 +41,7 @@ export declare class DocumentOutline extends Plugin {
|
|
|
41
41
|
*
|
|
42
42
|
* ```ts
|
|
43
43
|
* ClassicEditor
|
|
44
|
-
* .create(
|
|
44
|
+
* .create( {
|
|
45
45
|
* documentOutline: ... // Document outline feature configuration.
|
|
46
46
|
* } )
|
|
47
47
|
* .then( /* ... *\/ )
|
|
@@ -65,7 +65,7 @@ export interface DocumentOutlineConfig {
|
|
|
65
65
|
*
|
|
66
66
|
* ```ts
|
|
67
67
|
* ClassicEditor
|
|
68
|
-
* .create(
|
|
68
|
+
* .create( {
|
|
69
69
|
* plugins: [ DocumentOutline, /* ... *\/ ],
|
|
70
70
|
* documentOutline: {
|
|
71
71
|
* headings: [ 'heading1', 'heading2', /* ... *\/ ],
|
package/dist/index-content.css
CHANGED
|
@@ -3,42 +3,42 @@
|
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
:root{
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
--ck-content-table-of-contents-padding:1em;
|
|
7
|
+
--ck-content-table-of-contents-line-height:1.5;
|
|
8
|
+
--ck-content-table-of-contents-items-start-padding:24px;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
.ck-content .table-of-contents{
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
margin:.9em auto;
|
|
13
|
+
}
|
|
14
14
|
|
|
15
15
|
.ck-content .table-of-contents.table-of-contents_empty{
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
display:none;
|
|
17
|
+
}
|
|
18
18
|
|
|
19
19
|
.ck-content .table-of-contents .table-of-contents__placeholder{
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
padding:var(--ck-content-table-of-contents-padding);
|
|
21
|
+
margin:0;
|
|
22
|
+
font-style:italic;
|
|
23
|
+
}
|
|
24
24
|
|
|
25
25
|
.ck-content .table-of-contents > ol{
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
padding:var(--ck-content-table-of-contents-padding);
|
|
27
|
+
}
|
|
28
28
|
|
|
29
29
|
.ck-content .table-of-contents ol{
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
line-height:var(--ck-content-table-of-contents-line-height);
|
|
31
|
+
margin:0;
|
|
32
|
+
list-style-type:none;
|
|
33
|
+
}
|
|
34
34
|
|
|
35
35
|
.ck-content .table-of-contents ol ol{
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
padding-inline-start:var(--ck-content-table-of-contents-items-start-padding);
|
|
37
|
+
}
|
|
38
38
|
|
|
39
39
|
.ck-content .table-of-contents ol li{
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
40
|
+
white-space:nowrap;
|
|
41
|
+
text-overflow:ellipsis;
|
|
42
|
+
cursor:default;
|
|
43
|
+
overflow:hidden;
|
|
44
|
+
}
|
package/dist/index-editor.css
CHANGED
|
@@ -3,140 +3,135 @@
|
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
:root{
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
--ck-document-outline-item-default-color:hsl(0, 0%, 26%);
|
|
20
|
-
--ck-document-outline-item-hover-state-color:var(--ck-color-base-text);
|
|
6
|
+
--ck-document-outline-padding:var(--ck-spacing-large);
|
|
7
|
+
--ck-document-outline-base-font-size:.875em;
|
|
8
|
+
--ck-document-outline-placeholder-color:var(--ck-color-engine-placeholder-text);
|
|
9
|
+
--ck-document-outline-indent-level-1:0;
|
|
10
|
+
--ck-document-outline-indent-level-2:1.5em;
|
|
11
|
+
--ck-document-outline-indent-level-3:3em;
|
|
12
|
+
--ck-document-outline-indent-level-4:4.5em;
|
|
13
|
+
--ck-document-outline-indent-level-5:6em;
|
|
14
|
+
--ck-document-outline-indent-level-6:7.5em;
|
|
15
|
+
--ck-document-outline-item-padding:var(--ck-spacing-small);
|
|
16
|
+
--ck-document-outline-item-active-color:var(--ck-color-base-active);
|
|
17
|
+
--ck-document-outline-item-default-color:#424242;
|
|
18
|
+
--ck-document-outline-item-hover-state-color:var(--ck-color-base-text);
|
|
21
19
|
}
|
|
22
20
|
|
|
23
21
|
.ck.ck-document-outline{
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
padding:var(--ck-document-outline-padding);
|
|
23
|
+
font-size:var(--ck-document-outline-base-font-size);
|
|
24
|
+
user-select:none;
|
|
27
25
|
}
|
|
28
26
|
|
|
29
|
-
.ck.ck-document-outline:empty
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
27
|
+
.ck.ck-document-outline:empty:before{
|
|
28
|
+
content:attr(data-document-outline-empty-placeholder);
|
|
29
|
+
color:var(--ck-document-outline-placeholder-color);
|
|
30
|
+
display:inline-block;
|
|
31
|
+
}
|
|
34
32
|
|
|
35
33
|
.ck.ck-document-outline .ck-document-outline__item{
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
34
|
+
padding:var(--ck-document-outline-item-padding);
|
|
35
|
+
color:var(--ck-document-outline-item-default-color);
|
|
36
|
+
white-space:nowrap;
|
|
37
|
+
text-overflow:ellipsis;
|
|
38
|
+
cursor:pointer;
|
|
39
|
+
overflow:hidden;
|
|
40
|
+
}
|
|
43
41
|
|
|
44
42
|
.ck.ck-document-outline .ck-document-outline__item.ck-document-outline__item_empty{
|
|
45
|
-
|
|
46
|
-
|
|
43
|
+
font-style:italic;
|
|
44
|
+
}
|
|
47
45
|
|
|
48
|
-
.ck.ck-document-outline .ck-document-outline__item.ck-document-outline__item_empty:hover,
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}
|
|
46
|
+
.ck.ck-document-outline .ck-document-outline__item.ck-document-outline__item_empty:hover, .ck.ck-document-outline .ck-document-outline__item:hover{
|
|
47
|
+
color:var(--ck-document-outline-item-hover-state-color);
|
|
48
|
+
text-decoration:underline;
|
|
49
|
+
}
|
|
53
50
|
|
|
54
51
|
.ck.ck-document-outline .ck-document-outline__item.ck-document-outline__item_active{
|
|
55
|
-
|
|
56
|
-
|
|
52
|
+
color:var(--ck-document-outline-item-active-color);
|
|
53
|
+
}
|
|
57
54
|
|
|
58
55
|
.ck.ck-document-outline[dir="ltr"] .ck-document-outline__item.ck-document-outline__item_level-1{
|
|
59
|
-
|
|
60
|
-
|
|
56
|
+
padding-left:var(--ck-document-outline-indent-level-1);
|
|
57
|
+
}
|
|
61
58
|
|
|
62
59
|
.ck.ck-document-outline[dir="ltr"] .ck-document-outline__item.ck-document-outline__item_level-2{
|
|
63
|
-
|
|
64
|
-
|
|
60
|
+
padding-left:var(--ck-document-outline-indent-level-2);
|
|
61
|
+
}
|
|
65
62
|
|
|
66
63
|
.ck.ck-document-outline[dir="ltr"] .ck-document-outline__item.ck-document-outline__item_level-3{
|
|
67
|
-
|
|
68
|
-
|
|
64
|
+
padding-left:var(--ck-document-outline-indent-level-3);
|
|
65
|
+
}
|
|
69
66
|
|
|
70
67
|
.ck.ck-document-outline[dir="ltr"] .ck-document-outline__item.ck-document-outline__item_level-4{
|
|
71
|
-
|
|
72
|
-
|
|
68
|
+
padding-left:var(--ck-document-outline-indent-level-4);
|
|
69
|
+
}
|
|
73
70
|
|
|
74
71
|
.ck.ck-document-outline[dir="ltr"] .ck-document-outline__item.ck-document-outline__item_level-5{
|
|
75
|
-
|
|
76
|
-
|
|
72
|
+
padding-left:var(--ck-document-outline-indent-level-5);
|
|
73
|
+
}
|
|
77
74
|
|
|
78
75
|
.ck.ck-document-outline[dir="ltr"] .ck-document-outline__item.ck-document-outline__item_level-6{
|
|
79
|
-
|
|
80
|
-
|
|
76
|
+
padding-left:var(--ck-document-outline-indent-level-6);
|
|
77
|
+
}
|
|
81
78
|
|
|
82
79
|
.ck.ck-document-outline[dir="rtl"] .ck-document-outline__item.ck-document-outline__item_level-1{
|
|
83
|
-
|
|
84
|
-
|
|
80
|
+
padding-right:var(--ck-document-outline-indent-level-1);
|
|
81
|
+
}
|
|
85
82
|
|
|
86
83
|
.ck.ck-document-outline[dir="rtl"] .ck-document-outline__item.ck-document-outline__item_level-2{
|
|
87
|
-
|
|
88
|
-
|
|
84
|
+
padding-right:var(--ck-document-outline-indent-level-2);
|
|
85
|
+
}
|
|
89
86
|
|
|
90
87
|
.ck.ck-document-outline[dir="rtl"] .ck-document-outline__item.ck-document-outline__item_level-3{
|
|
91
|
-
|
|
92
|
-
|
|
88
|
+
padding-right:var(--ck-document-outline-indent-level-3);
|
|
89
|
+
}
|
|
93
90
|
|
|
94
91
|
.ck.ck-document-outline[dir="rtl"] .ck-document-outline__item.ck-document-outline__item_level-4{
|
|
95
|
-
|
|
96
|
-
|
|
92
|
+
padding-right:var(--ck-document-outline-indent-level-4);
|
|
93
|
+
}
|
|
97
94
|
|
|
98
95
|
.ck.ck-document-outline[dir="rtl"] .ck-document-outline__item.ck-document-outline__item_level-5{
|
|
99
|
-
|
|
100
|
-
|
|
96
|
+
padding-right:var(--ck-document-outline-indent-level-5);
|
|
97
|
+
}
|
|
101
98
|
|
|
102
99
|
.ck.ck-document-outline[dir="rtl"] .ck-document-outline__item.ck-document-outline__item_level-6{
|
|
103
|
-
|
|
104
|
-
|
|
100
|
+
padding-right:var(--ck-document-outline-indent-level-6);
|
|
101
|
+
}
|
|
105
102
|
|
|
106
103
|
:root{
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
104
|
+
--ck-content-table-of-contents-padding:1em;
|
|
105
|
+
--ck-content-table-of-contents-line-height:1.5;
|
|
106
|
+
--ck-content-table-of-contents-items-start-padding:24px;
|
|
107
|
+
--ck-table-of-contents-border-color:var(--ck-color-base-border);
|
|
108
|
+
--ck-table-of-contents-label-background-color:#757575;
|
|
109
|
+
--ck-table-of-contents-background-color:var(--ck-color-base-foreground);
|
|
113
110
|
}
|
|
114
111
|
|
|
115
112
|
.ck-editor__editable .ck-widget.table-of-contents{
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.ck-editor__editable .ck-widget.table-of-contents[data-table-of-contents-label]
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
right:auto;
|
|
142
|
-
}
|
|
113
|
+
background-color:var(--ck-table-of-contents-background-color);
|
|
114
|
+
border:1px solid var(--ck-table-of-contents-border-color);
|
|
115
|
+
min-width:15em;
|
|
116
|
+
display:flow-root;
|
|
117
|
+
position:relative;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.ck-editor__editable .ck-widget.table-of-contents[data-table-of-contents-label]:after{
|
|
121
|
+
content:attr(data-table-of-contents-label);
|
|
122
|
+
padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);
|
|
123
|
+
background-color:var(--ck-table-of-contents-label-background-color);
|
|
124
|
+
font-size:10px;
|
|
125
|
+
font-family:var(--ck-font-face);
|
|
126
|
+
color:#fff;
|
|
127
|
+
white-space:nowrap;
|
|
128
|
+
line-height:16px;
|
|
129
|
+
position:absolute;
|
|
130
|
+
top:-1px;
|
|
131
|
+
right:10px;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
[dir="rtl"] :is(.ck-editor__editable .ck-widget.table-of-contents[data-table-of-contents-label]:after){
|
|
135
|
+
left:10px;
|
|
136
|
+
right:auto;
|
|
137
|
+
}
|