This commit is contained in:
JesmoDev
2024-09-12 15:11:21 +02:00
parent 2d6c358a98
commit ce8d6225ef
3 changed files with 1 additions and 7 deletions

View File

@@ -28,7 +28,6 @@ export class UmbInputTiptapElement extends UUIFormControlMixin(UmbLitElement, ''
const json = this.value && typeof this.value === 'string' ? JSON.parse(this.value) : this.value;
// TODO: Try Disable css inject to remove prosemirror css
this._editor = new Editor({
element: editor,
extensions: [
@@ -40,10 +39,6 @@ export class UmbInputTiptapElement extends UUIFormControlMixin(UmbLitElement, ''
Underline,
],
content: json,
onSelectionUpdate: ({ editor }) => {
const { $from } = editor.state.selection;
const activeMarks = $from.node();
},
onUpdate: ({ editor }) => {
const json = editor.getJSON();
this.value = JSON.stringify(json);

View File

@@ -17,7 +17,6 @@ import {
strikethrough,
underline,
} from './icons.js';
import type { PropertyValues } from '@umbraco-cms/backoffice/external/lit';
import { LitElement, css, customElement, html, property, state } from '@umbraco-cms/backoffice/external/lit';
import type { Editor } from '@umbraco-cms/backoffice/external/tiptap';

View File

@@ -1,4 +1,4 @@
import { LitElement, PropertyValues, css, customElement, html, property } from '@umbraco-cms/backoffice/external/lit';
import { LitElement, css, customElement, html, property } from '@umbraco-cms/backoffice/external/lit';
import type { Editor } from '@umbraco-cms/backoffice/external/tiptap';
@customElement('umb-tiptap-hover-menu')