lakelib 0.1.5 → 0.1.7
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 +1 -1
- package/dist/lake.css +13 -3
- package/dist/lake.min.js +16 -16
- package/dist/lake.min.js.map +1 -1
- package/lib/lake.css +13 -3
- package/lib/lake.js +88 -48
- package/lib/lake.js.map +1 -1
- package/lib/types/editor.d.ts +3 -0
- package/lib/types/ui/button.d.ts +2 -1
- package/lib/types/ui/dropdown.d.ts +3 -1
- package/lib/types/ui/link-popup.d.ts +5 -3
- package/lib/types/ui/toolbar.d.ts +4 -1
- package/lib/types/ui/upload.d.ts +2 -2
- package/lib/types/utils/index.d.ts +0 -1
- package/package.json +1 -1
- package/lib/types/utils/for-each.d.ts +0 -5
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
Lake is a rich text editor for the web. It has a good user experience and provides easy-to-use programming interface to allow further extension.
|
|
10
10
|
|
|
11
|
-
[Examples](https://lakejs.org/examples/) · [Getting started](https://lakejs.org/guide/
|
|
11
|
+
[Examples](https://lakejs.org/examples/) · [Getting started](https://lakejs.org/guide/) · [Reference](https://lakejs.org/reference/)
|
|
12
12
|
|
|
13
13
|
## Development
|
|
14
14
|
|
package/dist/lake.css
CHANGED
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
|
|
35
35
|
.lake-container {
|
|
36
36
|
box-sizing: content-box;
|
|
37
|
+
position: relative;
|
|
37
38
|
font-family: var(--font-family);
|
|
38
39
|
font-size: 16px;
|
|
39
40
|
font-weight: normal;
|
|
@@ -48,6 +49,14 @@
|
|
|
48
49
|
color: inherit;
|
|
49
50
|
background: var(--selection-background-color);
|
|
50
51
|
}
|
|
52
|
+
.lake-container.lake-show-placeholder::before {
|
|
53
|
+
position: absolute;
|
|
54
|
+
top: 8px;
|
|
55
|
+
left: 12px;
|
|
56
|
+
color: var(--secondary-text-color);
|
|
57
|
+
content: attr(placeholder);
|
|
58
|
+
pointer-events: none;
|
|
59
|
+
}
|
|
51
60
|
.lake-container bookmark {
|
|
52
61
|
display: inline;
|
|
53
62
|
}
|
|
@@ -240,6 +249,10 @@ button.lake-text-button span {
|
|
|
240
249
|
box-shadow: var(--popup-shadow);
|
|
241
250
|
display: none;
|
|
242
251
|
}
|
|
252
|
+
.lake-dropdown[placement="top"] .lake-dropdown-menu {
|
|
253
|
+
top: auto;
|
|
254
|
+
bottom: 30px;
|
|
255
|
+
}
|
|
243
256
|
.lake-dropdown .lake-dropdown-menu li {
|
|
244
257
|
display: flex;
|
|
245
258
|
align-items: center;
|
|
@@ -851,9 +864,6 @@ lake-box[name="image"] .lake-box-selected .lake-image-error {
|
|
|
851
864
|
lake-box[name="codeBlock"] {
|
|
852
865
|
margin: 16px 0;
|
|
853
866
|
}
|
|
854
|
-
lake-box[name="codeBlock"] .lake-box-container {
|
|
855
|
-
overflow-x: auto;
|
|
856
|
-
}
|
|
857
867
|
lake-box[name="codeBlock"] .lake-box-focused .lake-code-block,
|
|
858
868
|
lake-box[name="codeBlock"] .lake-box-activated .lake-code-block {
|
|
859
869
|
border-color: var(--box-border-color);
|