tiptap: remove unused code

This commit is contained in:
fantasticit 2022-08-19 10:37:29 +08:00
parent a7e787d758
commit ef2ed7eea9
1 changed files with 0 additions and 10 deletions

View File

@ -78,7 +78,6 @@ export const Title = Node.create<TitleOptions>({
addProseMirrorPlugins() {
const { editor } = this;
let shouldSelectTitleNode = true;
let editorView;
const closeSelectTitleNode = () => {
shouldSelectTitleNode = false;
@ -88,15 +87,6 @@ export const Title = Node.create<TitleOptions>({
return [
new Plugin({
key: TitlePluginKey,
view: (view) => {
editorView = view;
return {
update(view) {
editorView = view;
},
};
},
props: {
decorations: (state) => {
const { doc } = state;