@kaitify/core 0.0.1-beta.2 → 0.0.1-beta.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.
@@ -496,7 +496,7 @@ export declare class Editor {
496
496
  /**
497
497
  * 获取编辑器的纯文本内容
498
498
  */
499
- getText(): string;
499
+ getContent(): string;
500
500
  /**
501
501
  * 配置编辑器,返回创建的编辑器
502
502
  */
package/package.json CHANGED
@@ -1,52 +1,52 @@
1
1
  {
2
- "name": "@kaitify/core",
3
- "version": "0.0.1-beta.2",
4
- "private": false,
5
- "type": "module",
6
- "author": "so-better",
7
- "main": "lib/kaitify-core.umd.js",
8
- "module": "lib/kaitify-core.es.js",
9
- "types": "lib/index.d.ts",
10
- "license": "MIT",
11
- "description": "基于原生JS的富文本编辑器核心库",
12
- "scripts": {
13
- "dev": "vite",
14
- "lib": "tsc && vite build",
15
- "docs:dev": "vitepress dev docs",
16
- "docs:build": "vitepress build docs"
17
- },
18
- "dependencies": {
19
- "csstype": "^3.1.3",
20
- "dap-util": "^1.5.8",
21
- "highlight.js": "^11.10.0",
22
- "interactjs": "^1.10.27",
23
- "katex": "^0.16.11",
24
- "vue": "^3.5.12"
25
- },
26
- "devDependencies": {
27
- "@types/katex": "^0.16.7",
28
- "@types/node": "^20.11.24",
29
- "@vitejs/plugin-vue": "^5.0.4",
30
- "less": "^3.0.4",
31
- "less-loader": "^5.0.0",
32
- "terser": "^5.16.9",
33
- "typescript": "^5.6.3",
34
- "vite": "^5.4.10",
35
- "vite-plugin-css-injected-by-js": "^3.5.1",
36
- "vite-plugin-dts": "^4.3.0",
37
- "vitepress": "^1.5.0"
38
- },
39
- "browserslist": [
40
- "> 1%",
41
- "last 2 versions",
42
- "not dead"
43
- ],
44
- "repository": {
45
- "type": "git",
46
- "url": "https://github.com/so-better/kaitify-core"
47
- },
48
- "publishConfig": {
49
- "access": "public",
50
- "registry": "https://registry.npmjs.org"
51
- }
2
+ "name": "@kaitify/core",
3
+ "version": "0.0.1-beta.4",
4
+ "private": false,
5
+ "type": "module",
6
+ "author": "so-better",
7
+ "main": "lib/kaitify-core.umd.js",
8
+ "module": "lib/kaitify-core.es.js",
9
+ "types": "lib/index.d.ts",
10
+ "license": "MIT",
11
+ "description": "基于原生JS的富文本编辑器核心库",
12
+ "scripts": {
13
+ "dev": "vite",
14
+ "lib": "tsc && vite build",
15
+ "docs:dev": "vitepress dev docs",
16
+ "docs:build": "vitepress build docs"
17
+ },
18
+ "dependencies": {
19
+ "csstype": "^3.1.3",
20
+ "dap-util": "^1.5.8",
21
+ "highlight.js": "^11.10.0",
22
+ "interactjs": "^1.10.27",
23
+ "katex": "^0.16.11",
24
+ "vue": "^3.5.12"
25
+ },
26
+ "devDependencies": {
27
+ "@types/katex": "^0.16.7",
28
+ "@types/node": "^20.11.24",
29
+ "@vitejs/plugin-vue": "^5.0.4",
30
+ "less": "^3.0.4",
31
+ "less-loader": "^5.0.0",
32
+ "terser": "^5.16.9",
33
+ "typescript": "^5.6.3",
34
+ "vite": "^5.4.10",
35
+ "vite-plugin-css-injected-by-js": "^3.5.1",
36
+ "vite-plugin-dts": "^4.3.0",
37
+ "vitepress": "^1.5.0"
38
+ },
39
+ "browserslist": [
40
+ "> 1%",
41
+ "last 2 versions",
42
+ "not dead"
43
+ ],
44
+ "repository": {
45
+ "type": "git",
46
+ "url": "https://github.com/so-better/kaitify-core"
47
+ },
48
+ "publishConfig": {
49
+ "access": "public",
50
+ "registry": "https://registry.npmjs.org"
51
+ }
52
52
  }