@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/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Webcomponent nile-elements following open-wc recommendations",
4
4
  "license": "MIT",
5
5
  "author": "nile-elements",
6
- "version": "1.6.6",
6
+ "version": "1.6.7",
7
7
  "main": "dist/src/index.js",
8
8
  "type": "module",
9
9
  "module": "dist/src/index.js",
@@ -3,7 +3,10 @@ import { css } from 'lit';
3
3
 
4
4
  export const styles = css`
5
5
  .editor { all: revert;
6
- -webkit-user-modify: read-write; }
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(var(--nile-font-family-sans-serif), var(--ng-font-family-body));
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(