Skip to content

Commit

Permalink
fix: conflict with some custon patched editor plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
Quorafind committed Apr 17, 2024
1 parent 697b76b commit d6aeb31
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "canvas-mindmap",
"name": "Canvas Mindmap",
"version": "0.1.9",
"version": "0.1.10",
"minAppVersion": "1.4.0",
"description": "A plugin to make your canvas work like a mindmap.",
"author": "Boninall",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "canvas-mindmap",
"version": "0.1.9",
"version": "0.1.10",
"description": "A plugin to make your canvas work like a mindmap.",
"main": "main.js",
"scripts": {
Expand Down
3 changes: 3 additions & 0 deletions src/canvasMindMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,10 @@ export default class CanvasMindMap extends Plugin {
patchMarkdownFileInfo() {
const patchEditor = () => {
const editorInfo = app.workspace.activeEditor;

console.log(editorInfo);
if (!editorInfo) return false;
if (!editorInfo || !editorInfo.containerEl || editorInfo.containerEl.closest('.common-editor-inputer')) return false;

Check failure on line 603 in src/canvasMindMap.ts

View workflow job for this annotation

GitHub Actions / build

Property 'containerEl' does not exist on type 'MarkdownFileInfo'.

Check failure on line 603 in src/canvasMindMap.ts

View workflow job for this annotation

GitHub Actions / build

Property 'containerEl' does not exist on type 'MarkdownFileInfo'.

Check failure on line 603 in src/canvasMindMap.ts

View workflow job for this annotation

GitHub Actions / build

Property 'containerEl' does not exist on type 'MarkdownFileInfo'.

Check failure on line 603 in src/canvasMindMap.ts

View workflow job for this annotation

GitHub Actions / build

Property 'containerEl' does not exist on type 'MarkdownFileInfo'.

const patchEditorInfo = editorInfo.constructor;

Expand Down
3 changes: 2 additions & 1 deletion versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@
"0.1.6": "1.4.0",
"0.1.7": "1.4.0",
"0.1.8": "1.4.0",
"0.1.9": "1.4.0"
"0.1.9": "1.4.0",
"0.1.10": "1.4.0"
}

0 comments on commit d6aeb31

Please sign in to comment.