mirror of
https://github.com/zadam/trilium.git
synced 2025-11-07 05:46:10 +01:00
when canvas and mermaid are inserted using "include note", we insert them as images
This commit is contained in:
@@ -97,7 +97,7 @@ export default class IncludeNoteDialog extends BasicWidget {
|
||||
|
||||
const boxSize = $("input[name='include-note-box-size']:checked").val();
|
||||
|
||||
if (note.type === 'image') {
|
||||
if (['image', 'canvas', 'mermaid'].includes(note.type)) {
|
||||
// there's no benefit to use insert note functionlity for images,
|
||||
// so we'll just add an IMG tag
|
||||
this.textTypeWidget.addImage(noteId);
|
||||
|
||||
Reference in New Issue
Block a user