[Kde-pim] Text formatting stripped from text pasted into kmail composer.

Stephen Kelly steveire at gmail.com
Mon Mar 10 22:29:10 GMT 2008


Hi,

Pasting html into a kmail composer window strips all of the text character
formatting.

For example, put this in Kate and open it in konqueror:

<html>
<body>
<p>
one <b>two</b> <i>three</i> <u>four</u>.
</p>
</body>
</html>

Copy and paste into kmail(4) and the formatting is stripped. It can be
readded, but I'm not sure why it was removed at all.

Copy and pasting into kjots or qt-copy/demos/textedit does not remove the
formatting. Is this intended? Where in the code does it happen?


A second issue I'm looking for a workaround for is a link formatting issue.

This came up while I was trying to make it possible to insert change or
remove a link in the kmail composer (and kjots).

Apply the attached patch, and start the kmail composer. Turn a word into a
link with the new manage link action. Notice that the word hasn't changed
formatting (eg blue+underline). Save as draft and reopen. Notice that the
link text is now formatted as expected. This was submitted to qt-bugs, but
I've so far only had an auto-reply (auto issue number #201993). Also,
removing the link doesn't unformat the text. Any ideas for a workaround?



_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/



More information about the kde-pim mailing list