@aquera/nile-elements 1.6.6 → 1.6.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 +3 -0
- package/dist/index.js +6 -3
- package/dist/nile-rich-text-editor/nile-rich-text-editor.cjs.js +1 -1
- package/dist/nile-rich-text-editor/nile-rich-text-editor.cjs.js.map +1 -1
- package/dist/nile-rich-text-editor/nile-rich-text-editor.css.cjs.js +1 -1
- package/dist/nile-rich-text-editor/nile-rich-text-editor.css.cjs.js.map +1 -1
- package/dist/nile-rich-text-editor/nile-rich-text-editor.css.esm.js +5 -2
- package/dist/nile-rich-text-editor/nile-rich-text-editor.esm.js +1 -1
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.css.js +5 -2
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.css.js.map +1 -1
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.d.ts +2 -1
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.js +9 -0
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.js.map +1 -1
- package/dist/src/version.js +1 -1
- package/dist/src/version.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/nile-rich-text-editor/nile-rich-text-editor.css.ts +5 -2
- package/src/nile-rich-text-editor/nile-rich-text-editor.ts +12 -1
package/package.json
CHANGED
|
@@ -3,7 +3,10 @@ import { css } from 'lit';
|
|
|
3
3
|
|
|
4
4
|
export const styles = css`
|
|
5
5
|
.editor { all: revert;
|
|
6
|
-
|
|
6
|
+
}
|
|
7
|
+
.rte-container .editor.safari {
|
|
8
|
+
-webkit-user-modify: read-write;
|
|
9
|
+
}
|
|
7
10
|
|
|
8
11
|
nile-rich-text-editor {
|
|
9
12
|
position: relative;
|
|
@@ -202,7 +205,7 @@ nile-rich-text-editor[disabled] .editor a {
|
|
|
202
205
|
content: attr(data-placeholder);
|
|
203
206
|
color: var(--nile-colors-neutral-500, var(--ng-colors-text-secondary));
|
|
204
207
|
position: absolute;
|
|
205
|
-
font-family: var(
|
|
208
|
+
font-family: var(--nile-font-family-sans-serif, var(--ng-font-family-body));
|
|
206
209
|
pointer-events: none;
|
|
207
210
|
user-select: none;
|
|
208
211
|
padding-top: 16px;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
1
|
+
import { LitElement, PropertyValues } from 'lit';
|
|
2
2
|
import { customElement, property, state } from 'lit/decorators.js';
|
|
3
3
|
|
|
4
4
|
import './nile-rte-toolbar';
|
|
@@ -209,6 +209,17 @@ export class NileRichTextEditor extends LitElement {
|
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
211
|
|
|
212
|
+
protected firstUpdated(_changedProperties: PropertyValues): void {
|
|
213
|
+
super.firstUpdated(_changedProperties);
|
|
214
|
+
|
|
215
|
+
if (this.editorEl) {
|
|
216
|
+
const isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
|
|
217
|
+
if (isSafari) {
|
|
218
|
+
this.editorEl.classList.add('safari');
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
|
|
212
223
|
private updateContentWithMention(mentionDetail: any) {
|
|
213
224
|
this.updateContent();
|
|
214
225
|
this.dispatchEvent(
|