mirror of https://github.com/fantasticit/think.git
tiptap: remove unused code
This commit is contained in:
parent
a7e787d758
commit
ef2ed7eea9
|
@ -78,7 +78,6 @@ export const Title = Node.create<TitleOptions>({
|
||||||
addProseMirrorPlugins() {
|
addProseMirrorPlugins() {
|
||||||
const { editor } = this;
|
const { editor } = this;
|
||||||
let shouldSelectTitleNode = true;
|
let shouldSelectTitleNode = true;
|
||||||
let editorView;
|
|
||||||
|
|
||||||
const closeSelectTitleNode = () => {
|
const closeSelectTitleNode = () => {
|
||||||
shouldSelectTitleNode = false;
|
shouldSelectTitleNode = false;
|
||||||
|
@ -88,15 +87,6 @@ export const Title = Node.create<TitleOptions>({
|
||||||
return [
|
return [
|
||||||
new Plugin({
|
new Plugin({
|
||||||
key: TitlePluginKey,
|
key: TitlePluginKey,
|
||||||
view: (view) => {
|
|
||||||
editorView = view;
|
|
||||||
|
|
||||||
return {
|
|
||||||
update(view) {
|
|
||||||
editorView = view;
|
|
||||||
},
|
|
||||||
};
|
|
||||||
},
|
|
||||||
props: {
|
props: {
|
||||||
decorations: (state) => {
|
decorations: (state) => {
|
||||||
const { doc } = state;
|
const { doc } = state;
|
||||||
|
|
Loading…
Reference in New Issue