AztecEditor-Android icon indicating copy to clipboard operation
AztecEditor-Android copied to clipboard

Editor freezes on not very large HTML-text

Open mx1234567 opened this issue 3 years ago • 1 comments

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 avatar Jul 20 '23 20:07 mx1234567

The file on which the editor freezes: text1.txt

mx1234567 avatar Jul 20 '23 20:07 mx1234567