ProcessHannaCode icon indicating copy to clipboard operation
ProcessHannaCode copied to clipboard

Add conditional capability to the setting "Replace surrounding HTML tag?"

Open er314 opened this issue 1 year ago • 0 comments

This is a feature request, to add a config setting to hanna-codes : When the setting ""Replace surrounding HTML tag?" is enabled, it would be nice to have the capability to ALSO configure the list of applicable tags (white-list), or the non-applicable tags (black-list). Typical use case :

  • when the user of the editor is embedding his hanna-code in an otherwise empty "p" tag, it makes sense to remove the tag
  • but when he's embedding his hanna-code in an otherwise empty "td" tag, it makes NO SENSE AT ALL to remove the tag (as this breaks the table)

er314 avatar May 12 '24 14:05 er314