In this PR I'm replacing the functionality when pasting text into the empty aztec editor. Currently this triggers setText which removes all the formatting spans. However, I think it's a valid use case to turn on formatting and paste text and expect the pasted text to be formatted. Otherwise the functionality remains unchanged
Test
Set EXAMPLE field in the MainActivity to <h1></h1>
Run the app
Paste text to the editor
Notice it gets formatted with h1 (previously it didn't keep the formatting)
Review
@AmandaRiu
Make sure strings will be translated:
[x] If there are new strings that have to be translated, I have added them to the client's strings.xml as a part of the integration PR.
Fix
In this PR I'm replacing the functionality when pasting text into the empty aztec editor. Currently this triggers
setText
which removes all the formatting spans. However, I think it's a valid use case to turn on formatting and paste text and expect the pasted text to be formatted. Otherwise the functionality remains unchangedTest
EXAMPLE
field in theMainActivity
to<h1></h1>
h1
(previously it didn't keep the formatting)Review
@AmandaRiu
Make sure strings will be translated:
strings.xml
as a part of the integration PR.