I have what seems to be an unusual problem. I am testing the SMMRichEditor using the example app.
www.b4x.com
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?
RichEditor view
Hello all , A wrapper for this library https://github.com/wasabeef/richeditor-android SMMRichEditor Author: SMM Version: 0.05 SMMRichEditor Events: _textchanged (new As String) Fields: ba As BA Methods: AddToParent (Parent As ViewGroup, left As Int, top As Int, width As Int, height As Int)...

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: