lakelib 0.0.3 → 0.0.5
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/dist/lake.css +3 -4
- package/dist/lake.min.js +10 -10
- package/dist/lake.min.js.map +1 -1
- package/lib/lake.css +3 -4
- package/lib/lake.js +356 -271
- package/lib/lake.js.map +1 -1
- package/lib/types/editor.d.ts +3 -0
- package/lib/types/managers/command.d.ts +3 -1
- package/lib/types/models/range.d.ts +6 -6
- package/lib/types/plugins/escape-key.d.ts +3 -0
- package/lib/types/types/object.d.ts +2 -2
- package/lib/types/ui/toolbar.d.ts +12 -3
- package/lib/types/utils/split-nodes.d.ts +2 -2
- 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/dist/lake.css
CHANGED
|
@@ -826,9 +826,7 @@ lake-box[name="image"] .lake-box-selected .lake-image-error {
|
|
|
826
826
|
lake-box[name="codeBlock"] {
|
|
827
827
|
margin: 16px 0;
|
|
828
828
|
}
|
|
829
|
-
lake-box[name="codeBlock"] .lake-box-focused .lake-code-block
|
|
830
|
-
border-color: var(--box-border-color);
|
|
831
|
-
}
|
|
829
|
+
lake-box[name="codeBlock"] .lake-box-focused .lake-code-block,
|
|
832
830
|
lake-box[name="codeBlock"] .lake-box-activated .lake-code-block {
|
|
833
831
|
border-color: var(--box-border-color);
|
|
834
832
|
}
|
|
@@ -841,9 +839,10 @@ lake-box[name="codeBlock"] .lake-box-activated .lake-code-block {
|
|
|
841
839
|
.lake-code-block .lake-dropdown {
|
|
842
840
|
position: absolute;
|
|
843
841
|
top: 2px;
|
|
844
|
-
|
|
842
|
+
inset-inline-end: 2px;
|
|
845
843
|
display: none;
|
|
846
844
|
}
|
|
845
|
+
lake-box[name="codeBlock"] .lake-box-focused .lake-code-block .lake-dropdown,
|
|
847
846
|
lake-box[name="codeBlock"] .lake-box-activated .lake-code-block .lake-dropdown {
|
|
848
847
|
display: block;
|
|
849
848
|
}
|