lakelib 0.0.3 → 0.0.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 +4 -5
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -44,15 +44,14 @@ Then, in the HTML page add the following HTML code that will serve as a placehol
|
|
|
44
44
|
Finally, call the following JavaScript code to render the editor.
|
|
45
45
|
|
|
46
46
|
```js
|
|
47
|
+
const toolbar = new Lake.Toolbar({
|
|
48
|
+
root: '.lake-toolbar-root',
|
|
49
|
+
});
|
|
47
50
|
const editor = new Lake.Editor({
|
|
48
51
|
root: '.lake-root',
|
|
49
|
-
|
|
52
|
+
toolbar,
|
|
50
53
|
});
|
|
51
54
|
editor.render();
|
|
52
|
-
new Lake.Toolbar({
|
|
53
|
-
editor,
|
|
54
|
-
root: '.lake-toolbar-root',
|
|
55
|
-
}).render();
|
|
56
55
|
```
|
|
57
56
|
|
|
58
57
|
### Development
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lakelib",
|
|
3
3
|
"description": "Rich text editor based on the browser",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.4",
|
|
5
5
|
"author": "Luo Longhao <luolonghao@gmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "http://lakejs.com",
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
"type": "git",
|
|
10
10
|
"url": "git+https://github.com/lakejs/lake.git"
|
|
11
11
|
},
|
|
12
|
-
"main": "./lib/lake",
|
|
12
|
+
"main": "./lib/lake.js",
|
|
13
|
+
"types": "./lib/types/index.d.ts",
|
|
13
14
|
"files": [
|
|
14
15
|
"dist",
|
|
15
16
|
"lib"
|