@wangeditor-next/editor 5.6.56 → 5.7.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/README.md +48 -0
- package/dist/basic-modules/src/modules/color/render-style.d.ts +3 -1
- package/dist/basic-modules/src/modules/color/style-to-html.d.ts +3 -1
- package/dist/basic-modules/src/modules/font-size-family/render-style.d.ts +3 -1
- package/dist/basic-modules/src/modules/font-size-family/style-to-html.d.ts +3 -1
- package/dist/basic-modules/src/modules/image/elem-to-html.d.ts +2 -1
- package/dist/basic-modules/src/modules/indent/render-style.d.ts +3 -1
- package/dist/basic-modules/src/modules/indent/style-to-html.d.ts +2 -1
- package/dist/basic-modules/src/modules/justify/render-style.d.ts +3 -1
- package/dist/basic-modules/src/modules/justify/style-to-html.d.ts +2 -1
- package/dist/basic-modules/src/modules/line-height/render-style.d.ts +3 -1
- package/dist/basic-modules/src/modules/line-height/style-to-html.d.ts +2 -1
- package/dist/basic-modules/src/utils/style-class.d.ts +14 -0
- package/dist/basic-modules/src/utils/vdom.d.ts +14 -0
- package/dist/core/src/config/interface.d.ts +33 -1
- package/dist/core/src/config/style-mode.d.ts +8 -0
- package/dist/core/src/editor/dom-editor.d.ts +9 -0
- package/dist/core/src/index.d.ts +13 -2
- package/dist/core/src/render/element/renderStyle.d.ts +3 -1
- package/dist/core/src/render/index.d.ts +2 -2
- package/dist/core/src/render/text/renderStyle.d.ts +3 -1
- package/dist/core/src/to-html/index.d.ts +2 -2
- package/dist/core/src/upload/createUploader.d.ts +7 -3
- package/dist/core/src/upload/createUppyUploader.d.ts +7 -0
- package/dist/core/src/upload/index.d.ts +4 -3
- package/dist/core/src/upload/interface.d.ts +37 -9
- package/dist/core/src/upload.d.ts +5 -0
- package/dist/core.js +13 -0
- package/dist/core.js.map +1 -0
- package/dist/core.mjs +13 -0
- package/dist/core.mjs.map +1 -0
- package/dist/css/style.css +4 -4
- package/dist/editor/src/core.d.ts +54 -0
- package/dist/editor/src/index.d.ts +3 -2
- package/dist/editor/src/upload.d.ts +6 -0
- package/dist/index.js +18 -18
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/dist/list-module/src/module/elem-to-html.d.ts +2 -1
- package/dist/list-module/src/module/style-class.d.ts +6 -0
- package/dist/table-module/src/module/elem-to-html.d.ts +3 -2
- package/dist/table-module/src/module/style-to-html.d.ts +2 -1
- package/dist/upload.js +13 -0
- package/dist/upload.js.map +1 -0
- package/dist/upload.mjs +13 -0
- package/dist/upload.mjs.map +1 -0
- package/dist/video-module/src/module/elem-to-html.d.ts +2 -1
- package/dist/video-module/src/utils/dom.d.ts +1 -1
- package/package.json +18 -8
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
* @description to html
|
|
3
3
|
* @author wangfupeng
|
|
4
4
|
*/
|
|
5
|
+
import { IDomEditor } from '@wangeditor-next/core';
|
|
5
6
|
import { Element } from 'slate';
|
|
6
|
-
declare function videoToHtml(elemNode: Element, _childrenHtml?: string): string;
|
|
7
|
+
declare function videoToHtml(elemNode: Element, _childrenHtml?: string, editor?: IDomEditor): string;
|
|
7
8
|
export declare const videoToHtmlConf: {
|
|
8
9
|
type: string;
|
|
9
10
|
elemToHtml: typeof videoToHtml;
|
|
@@ -25,5 +25,5 @@ export declare function getTagName($elem: Dom7Array): string;
|
|
|
25
25
|
* @param height height
|
|
26
26
|
* @returns iframe html string with size style
|
|
27
27
|
*/
|
|
28
|
-
export declare function genSizeStyledIframeHtml(iframeHtml: string, width?: string, height?: string, style?: videoStyle): string;
|
|
28
|
+
export declare function genSizeStyledIframeHtml(iframeHtml: string, width?: string, height?: string, style?: videoStyle, classMode?: boolean): string;
|
|
29
29
|
export { DOMComment, DOMElement, DOMNode, DOMRange, DOMSelection, DOMStaticRange, DOMText, };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wangeditor-next/editor",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.7.1",
|
|
4
4
|
"description": "Web rich text editor, Web 富文本编辑器",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"wangeditor",
|
|
@@ -22,6 +22,16 @@
|
|
|
22
22
|
"import": "./dist/index.mjs",
|
|
23
23
|
"require": "./dist/index.js"
|
|
24
24
|
},
|
|
25
|
+
"./core": {
|
|
26
|
+
"types": "./dist/editor/src/core.d.ts",
|
|
27
|
+
"import": "./dist/core.mjs",
|
|
28
|
+
"require": "./dist/core.js"
|
|
29
|
+
},
|
|
30
|
+
"./upload": {
|
|
31
|
+
"types": "./dist/editor/src/upload.d.ts",
|
|
32
|
+
"import": "./dist/upload.mjs",
|
|
33
|
+
"require": "./dist/upload.js"
|
|
34
|
+
},
|
|
25
35
|
"./package.json": "./package.json",
|
|
26
36
|
"./dist/css/style.css": "./dist/css/style.css"
|
|
27
37
|
},
|
|
@@ -45,13 +55,13 @@
|
|
|
45
55
|
"dependencies": {
|
|
46
56
|
"@uppy/core": "^2.1.1",
|
|
47
57
|
"@uppy/xhr-upload": "^2.0.3",
|
|
48
|
-
"@wangeditor-next/basic-modules": "
|
|
49
|
-
"@wangeditor-next/code-highlight": "
|
|
50
|
-
"@wangeditor-next/core": "1.
|
|
51
|
-
"@wangeditor-next/list-module": "
|
|
52
|
-
"@wangeditor-next/table-module": "
|
|
53
|
-
"@wangeditor-next/upload-image-module": "
|
|
54
|
-
"@wangeditor-next/video-module": "
|
|
58
|
+
"@wangeditor-next/basic-modules": "2.0.1",
|
|
59
|
+
"@wangeditor-next/code-highlight": "2.0.1",
|
|
60
|
+
"@wangeditor-next/core": "1.8.1",
|
|
61
|
+
"@wangeditor-next/list-module": "2.0.1",
|
|
62
|
+
"@wangeditor-next/table-module": "2.0.1",
|
|
63
|
+
"@wangeditor-next/upload-image-module": "2.0.1",
|
|
64
|
+
"@wangeditor-next/video-module": "2.0.1",
|
|
55
65
|
"dom7": "^4.0.0",
|
|
56
66
|
"is-hotkey": "^0.2.0",
|
|
57
67
|
"lodash.camelcase": "^4.3.0",
|