Android Question SMMRichEditor not saving colors or text styles in html

B G

Member
Licensed User
Longtime User
I have what seems to be an unusual problem. I am testing the SMMRichEditor using the example app.
To test the html, I have inserted various Log statements in the code to view the html being generated by the control at various points.
It turns out that on the emulator (API 7), everything seems to work as it should. That is, the html reflects any style and color changes made to the text.
However, when I run the same code on my Samsung tablet (API 26), neither any style or color changes are reflected in the html. It is always just the plain text with the line break tags (<br>) in them.

Test on both devices. Run the app, highlight the line '5ABC', change it to bold and also change it's color.
On the screen (on both devices), both the bold and the color is displayed correctly. The problem is the generated html (via the html property)
On the emulator:
html=0ABC<br>1ABC<br>2ABC<br><b>3ABC</b><br>4ABC<br><b style="color: rgb(14, 221, 45);">5ABC</b><br>
On the tablet:
html=0ABC<br>1ABC<br>2ABC<br>3ABC<br>4ABC<br>5ABC<br>

Don't know if it's relevant but the manifest editor shows;
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="33"/>

Does anyone have any suggestions?
 
Last edited:
Top