wordpress-mobile / AztecEditor-Android

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

Editor freezes on not very large HTML-text #1054

Open mx1234567 opened 1 year ago

mx1234567 commented 1 year 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 1 year ago

The file on which the editor freezes: text1.txt