Set EXAMPLE to "<placeholder type=\"image_with_caption\" src=\"https://file-examples.com/storage/febc474733629f43d9f078c/2017/10/file_example_JPG_100kB.jpg\" caption=\"1\"><br><placeholder type=\"image_with_caption\" src=\"https://file-examples.com/storage/febc474733629f43d9f078c/2017/10/file_example_JPG_100kB.jpg\" caption=\"2\">"
Run the app
Call the removeItem to remove a placeholder based on a predicate, for example I've tested it by adding the following call to the gallery button click:
Fix
This PR introduces a method to remove a placeholder from the AztecText programatically.
Test
PlaceholderManager
in theMainActivity.onCreate
methodaztec.addOnMediaDeletedListener(placeholderManager)
aztec.addPlugin(placeholderManager)
placeholderManager.registerAdapter(ImageWithCaptionAdapter())
EXAMPLE
to"<placeholder type=\"image_with_caption\" src=\"https://file-examples.com/storage/febc474733629f43d9f078c/2017/10/file_example_JPG_100kB.jpg\" caption=\"1\"><br><placeholder type=\"image_with_caption\" src=\"https://file-examples.com/storage/febc474733629f43d9f078c/2017/10/file_example_JPG_100kB.jpg\" caption=\"2\">"
removeItem
to remove a placeholder based on a predicate, for example I've tested it by adding the following call to the gallery button click:Review
@danilo04
Make sure strings will be translated:
strings.xml
as a part of the integration PR.