Save embedded images as attachments to note

Merged Igor Poboiko requested to merge work/embedded-images into master

... 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

Depends on akonadi-notes!1 (merged)

Edited by Igor Poboiko

Merge request reports