Previously we've added the option to addMediaAfterBlocks. This works well with almost all the blocks but it doesn't work nicely with paragraphs. We want to be able to add images within paragraphs and not only after the currently selected paragraph. This is important for paragraphs with linebreaks (where the image should be logically positioned at the linebreak, not after the paragraph).
You can test this by setting EXAMPLE to
<p>test<br>
<br>
test</p>
Test
Turn on addMediaAfterBlocks on the visual editor
Run the app with the EXAMPLE set from the code above
Click between the lines
Add an image
Notice it gets added between the lines, not at the end of the document
Review
@danilo04
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.
Previously we've added the option to
addMediaAfterBlocks
. This works well with almost all the blocks but it doesn't work nicely with paragraphs. We want to be able to add images within paragraphs and not only after the currently selected paragraph. This is important for paragraphs with linebreaks (where the image should be logically positioned at the linebreak, not after the paragraph).You can test this by setting
EXAMPLE
toTest
addMediaAfterBlocks
on the visual editorEXAMPLE
set from the code aboveReview
@danilo04
Make sure strings will be translated:
strings.xml
as a part of the integration PR.