wordpress-mobile / AztecEditor-Android

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

Feature/implement delete or update #1034

Closed planarvoid closed 1 year ago

planarvoid commented 1 year ago

Fix

In this PR I'm adding a method that allows users to either remove or update a placeholder based on conditions. This is useful in cases like removing an image from a gallery. If the image is the last item in the gallery, we want to remove it instead of just updating the parameters. If it's not the last item, we'd probably want to remove the image params from the gallery.

Test

  1. This can be tested with the related Day One PR

Review

@[USER_NAME]

Make sure strings will be translated: