QML TextEdit with RichText problem mixing text and image tag
-
Hello,
I'm triyng to use a TextEdit component mixing text and html tags such as <img> using TextEdit.RichText
The latter property causes to create all html stuff when using text property of TextEdit (e.g. <!DOCTYPE ...bla bla)...
When I write a simple word WITHOUT put a space after that, the text property doesn't consider that text as part of html and so I see html like this (retrieving it using text property):
@
<!DOCTYPE>
...
...
<body></body>
@If I put a space immediately after word, I see this html:
@
<!DOCTYPE>
...
...
<body>simpleword </body>
@This causes a problem when I put img tag AFTER a word without space, it create html like this:
@
<!DOCTYPE>
...
...
<body><img src=':/image/file.png'/> simpleword</body>
@That is not I have really put in TextEdit!
This behaviour is shown on harmattan, but I think it's the same on all platform.
Someone with a valid solution?