Skip to content

Insert inline image removes existing node.note images and replaces them with the imported image #12

@victorburgos12

Description

@victorburgos12

First of all, want to express how amazed I am by freeplane and it's features, thanks for this tool to all developers.
I just installed the addon Insert inline image.
I am experiencing a strange behavior.
If I import an image, the image gets imported correctly on the node notes section:
image
image

Then if I want to import another image, the previous one gets deleted and the new one appears:
image

I am not a developer, but with the help of ChatGPT I was trying to fix it without success.
Here is the code change that was proposed by ChatGPT on line 739 but could not make it work:

`def existingNoteContent = node.note // Get the existing content of the 'note' node

def newNoteContent = insertTag(existingNoteContent, imageTag) // Insert the image tag below the existing content

node.note = newNoteContent // Update the 'note' node with the new content
`

Thanks for the help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions