Skip to content

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

@DaniilMusinCallibri

Description

@DaniilMusinCallibri

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions