wordpress-mobile / AztecEditor-Android

A reusable native Android rich text editor component.
Mozilla Public License 2.0
673 stars 114 forks source link

Editor freezes on not very large HTML-text #1054

Open mx1234567 opened 9 months ago

mx1234567 commented 9 months ago

Editor freezes on not very large HTML-text

I need to edit entries from a dictionary. If I set, in my opinion, not very large text, then the editor freezes. I set the text in this line of code, instead of EXAMPLE. The file is attached with a large text.

\app\src\main\kotlin\org\wordpress\aztec\demo\MainActivity.kt

override fun onCreate(savedInstanceState: Bundle?) {

//aztec.sourceEditor?.displayStyledAndFormattedHtml(EXAMPLE)
aztec.sourceEditor?.displayStyledAndFormattedHtml(textFieldValue) //Set my text

I would also like to clarify how to disable the display in the editor, HTML comments? Such as:

<p></p>
<!-- Built-in comment 1 -->
<p></p>
<!-- Built-in comment 2 -->

They are visible, but I do not need it.

mx1234567 commented 9 months ago

The file on which the editor freezes: text1.txt