cleanup
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user