fresh-web-editor 0.0.0-stage → 0.1.4
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 +158 -3
- package/adapters/react.d.ts +4 -0
- package/adapters/react.js +28 -0
- package/adapters/vue.d.ts +8 -0
- package/adapters/vue.js +30 -0
- package/core.js +39 -0
- package/dist/document.js +1 -0
- package/examples/react/DocumentForm.jsx +20 -0
- package/examples/react/index.html +12 -0
- package/examples/react/main.jsx +4 -0
- package/examples/react/package-lock.json +1695 -0
- package/examples/react/package.json +18 -0
- package/examples/react/vite.config.js +7 -0
- package/examples/vue/DocumentForm.vue +20 -0
- package/examples/vue/index.html +12 -0
- package/examples/vue/main.js +4 -0
- package/examples/vue/package-lock.json +1238 -0
- package/examples/vue/package.json +17 -0
- package/examples/vue/vite.config.js +7 -0
- package/index.d.ts +14 -0
- package/package.json +56 -6
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "fresh-editor-vue-example",
|
|
3
|
+
"private": true,
|
|
4
|
+
"type": "module",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"predev": "npm --prefix ../.. run build",
|
|
7
|
+
"dev": "vite"
|
|
8
|
+
},
|
|
9
|
+
"dependencies": {
|
|
10
|
+
"fresh-web-editor": "file:../..",
|
|
11
|
+
"vue": "^3.3.0"
|
|
12
|
+
},
|
|
13
|
+
"devDependencies": {
|
|
14
|
+
"@vitejs/plugin-vue": "^5.0.0",
|
|
15
|
+
"vite": "^5.0.0"
|
|
16
|
+
}
|
|
17
|
+
}
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface EditorOptions {
|
|
2
|
+
value?: string;
|
|
3
|
+
draftKey?: string;
|
|
4
|
+
label?: string;
|
|
5
|
+
onChange?: (html: string) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare function mountEditor(
|
|
8
|
+
container: HTMLElement,
|
|
9
|
+
options?: EditorOptions,
|
|
10
|
+
): {
|
|
11
|
+
getHTML(): string;
|
|
12
|
+
setHTML(html: string): void;
|
|
13
|
+
destroy(): void;
|
|
14
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,56 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "fresh-web-editor",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "fresh-web-editor",
|
|
3
|
+
"version": "0.1.4",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"files": [
|
|
6
|
+
"core.js",
|
|
7
|
+
"dist",
|
|
8
|
+
"adapters",
|
|
9
|
+
"examples",
|
|
10
|
+
"index.d.ts"
|
|
11
|
+
],
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"types": "./index.d.ts",
|
|
15
|
+
"default": "./core.js"
|
|
16
|
+
},
|
|
17
|
+
"./react": {
|
|
18
|
+
"types": "./adapters/react.d.ts",
|
|
19
|
+
"default": "./adapters/react.js"
|
|
20
|
+
},
|
|
21
|
+
"./vue": {
|
|
22
|
+
"types": "./adapters/vue.d.ts",
|
|
23
|
+
"default": "./adapters/vue.js"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"scripts": {
|
|
27
|
+
"build": "node scripts/build.mjs",
|
|
28
|
+
"prepare": "npm run build"
|
|
29
|
+
},
|
|
30
|
+
"peerDependencies": {
|
|
31
|
+
"react": ">=18 <20",
|
|
32
|
+
"vue": "^3.3.0"
|
|
33
|
+
},
|
|
34
|
+
"peerDependenciesMeta": {
|
|
35
|
+
"react": {
|
|
36
|
+
"optional": true
|
|
37
|
+
},
|
|
38
|
+
"vue": {
|
|
39
|
+
"optional": true
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"description": "한국어 문서 편집기와 React·Vue 컴포넌트",
|
|
43
|
+
"keywords": [
|
|
44
|
+
"rich-text-editor",
|
|
45
|
+
"wysiwyg",
|
|
46
|
+
"html-editor",
|
|
47
|
+
"document-editor",
|
|
48
|
+
"react",
|
|
49
|
+
"vue3",
|
|
50
|
+
"vanilla-js",
|
|
51
|
+
"contenteditable",
|
|
52
|
+
"korean",
|
|
53
|
+
"웹에디터",
|
|
54
|
+
"문서편집기"
|
|
55
|
+
]
|
|
56
|
+
}
|