Skip to content

BR tag inside the autoresize textarea makes textarea higher than wanted - Here is a fix #2

@bongobongo

Description

@bongobongo

Hi.

Just installed this awesome plugin.

Found one issue though...
If I enter BR tags inside the textarea (entering raw text in Joomla textareas, where HTML tags are allowed)... then the textarea grow vertically for each BR tag added.

Is it possible that you could add a fix or a workaround for this issue?
I know it can be avoided by entering the tags using the &lt and &gt notation... but that makes the text pretty hard to maintain as well as the readability is getting messed up...

Here is my proposal for how to fix this:
When copying the content of the textarea into the DIV which is used to get the height... replace all the instances of
or
with or , just so the same amount of character space is used, but characters which do not affect the height of the div.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions