Diffusion KJots 47577ba1a998

Save embedded images as attachments to note

Authored by poboiko on May 30 2020, 3:11 PM.

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
poboikoMay 31 2020, 8:25 PM
Parents
R573:177291cdd536: GIT_SILENT Added .gitlab-ci.yml
Branches
Unknown
Tags
Unknown