Skip to content

Carriage return HTML customized #1517

Open
@Wintxer

Description

Hi, I am using the latest JS version with CDN

I added two tags in the addTagsWhitelist property (button and div). My problem is that when I do a carriage return at the end of a button or div line, the next line written takes the exact same HTML code.

For example :
If I have this line written : <div class="test" style="color: red; background: cyan"><button type="button">Click Here</button></div>
The next line with a carriage return will be : <div class="test" style="color: red; background: cyan"><button type="button"><br></button></div>

Instead of the default new line : <p><br></p>

Is there a way to force the next line to be a defined HTML line ? I'd be happy if it existed !

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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