@worktile/theia 2.1.8 → 2.1.12
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/bundles/worktile-theia.umd.js +148 -127
- package/bundles/worktile-theia.umd.js.map +1 -1
- package/constants/index.d.ts +1 -2
- package/editor.component.d.ts +1 -0
- package/esm2015/components/toolbar/toolbar.component.js +1 -1
- package/esm2015/constants/index.js +2 -3
- package/esm2015/editor.component.js +10 -4
- package/esm2015/interfaces/editor.js +1 -1
- package/esm2015/plugins/align/align.editor.js +2 -2
- package/esm2015/plugins/code/code.component.js +2 -2
- package/esm2015/plugins/common/move-selection.plugin.js +47 -2
- package/esm2015/plugins/font-size/font-size.editor.js +11 -14
- package/esm2015/plugins/image/image.component.js +4 -3
- package/esm2015/plugins/inline-code/inline-code.plugin.js +1 -39
- package/esm2015/plugins/link/link.component.js +7 -9
- package/esm2015/plugins/vertical-align/toolbar-item.component.js +3 -3
- package/esm2015/utils/is-inline.js +10 -0
- package/fesm2015/worktile-theia.js +153 -134
- package/fesm2015/worktile-theia.js.map +1 -1
- package/interfaces/editor.d.ts +1 -0
- package/package.json +1 -1
- package/plugins/font-size/font-size.editor.d.ts +1 -1
- package/styles/editor.scss +11 -0
- package/utils/is-inline.d.ts +2 -0
package/interfaces/editor.d.ts
CHANGED
|
@@ -70,6 +70,7 @@ export interface TheOptions {
|
|
|
70
70
|
autoFocus?: boolean;
|
|
71
71
|
placeholder?: string;
|
|
72
72
|
placeholderDecorate?: (editor: Editor) => SlatePlaceholder[];
|
|
73
|
+
inlineToobarVisible?: boolean;
|
|
73
74
|
quickInsertVisible?: boolean;
|
|
74
75
|
scrollContainer?: string;
|
|
75
76
|
maxHeight?: number;
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@ import { FontSizes } from '../../constants/node-types';
|
|
|
4
4
|
export declare const FontSizeEditor: {
|
|
5
5
|
setFontSize(editor: TheEditor, size: FontSizes): void;
|
|
6
6
|
setFontSizeMark(editor: Editor, size: FontSizes): void;
|
|
7
|
-
unsetFontSize(editor: Editor, size: FontSizes
|
|
7
|
+
unsetFontSize(editor: Editor, size: FontSizes): void;
|
|
8
8
|
isFontSizeActive(editor: Editor, size: FontSizes): boolean;
|
|
9
9
|
isDisabled(editor: TheEditor): boolean;
|
|
10
10
|
};
|
package/styles/editor.scss
CHANGED
|
@@ -127,6 +127,17 @@ $thy-icon-nav-link-margin-right: 5px;
|
|
|
127
127
|
color: $gray-700;
|
|
128
128
|
}
|
|
129
129
|
|
|
130
|
+
.leaf-with-placeholder {
|
|
131
|
+
background-color: $white;
|
|
132
|
+
}
|
|
133
|
+
[data-slate-placeholder] {
|
|
134
|
+
color: initial;
|
|
135
|
+
font-weight: initial;
|
|
136
|
+
font-style: initial;
|
|
137
|
+
text-decoration: initial;
|
|
138
|
+
background-color: initial;
|
|
139
|
+
}
|
|
140
|
+
|
|
130
141
|
// list: fontSize, li marginLeft, multiDigit li marginLeft
|
|
131
142
|
@each $size, $liMl, $liMultiDigitMl in (12, 13, 14, 15, 16, 18, 20, (24 null 35px), (28 null 42px), (32 33px 50px), (40 40px 62px), (48 50px 78px)) {
|
|
132
143
|
[the-font-size="#{$size}"] {
|