mirror of https://github.com/fantasticit/think.git
tiptap: remove unused code
parent
a7e787d758
commit
ef2ed7eea9
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue