Diffusion KJots 8b838d5e8842

Save embedded images as attachments to note

Authored by poboiko on Jun 1 2020, 9:17 AM.

Description

Save embedded images as attachments to note

... instead of inline base64, as it seems to be more appropriate.

  • Use contentID to uniquely identify them in the note html code (i.e. <img src="cid:XXX@KDE" />);
  • When saving, use RichTextComposerImages routines to obtain contentIDs and to replace img src to cid:...
  • When loading, use QTextDocument::addResource to make QTextDocument recognize attachments

Details

Committed
poboikoJun 1 2020, 9:17 AM
Parents
R573:177291cdd536: GIT_SILENT Added .gitlab-ci.yml
Branches
Unknown
Tags
Unknown