editor_js icon indicating copy to clipboard operation
editor_js copied to clipboard

Is/will there be an option to alter the safe_tags within Block classes?

Open DaniilMusinCallibri opened this issue 5 months ago • 0 comments

Is/will there be an option to alter the safe_tags within Block classes?

Have been using this gem for my project and needed to automatically wrap every outer link with a rel="noopener noreferrer" target="_blank" via an included module within my classes (editing html elements Nokogiri before giving out the json collection back to the EditorJS::Document), but stumbled upon a problem of not being able to do so because the only attribute considered 'safe' within def safe_tags in my Block class was ref. Yes, I figured everything out and made a neat monkey patch to solve my case, but is there another way already implemented/planned to be implemented?

Thank you for the gem, by the way, it's really simple to use in all other ways

DaniilMusinCallibri avatar Sep 05 '24 12:09 DaniilMusinCallibri