Skip to content

Curly brace-reliant HTML buttons breaking channel form jQuery assets #1788

Closed
@mcfarlandonline

Description

@mcfarlandonline

PHP 7.3
EE 6.2.4

I have a channel form that uses a couple RTE fields (CKeditor), so I'm including jQuery assets, (but not CSS).

None of my other form fields are textarea fields, but I'm seeing a call for the HTML buttons we set up in the EE control panel. One of our standard buttons (to help clients remember how to make sure their email addresses get encrypted), is "email" and we set up something like this...

Screen Shot 2022-02-04 at 2 11 31 PM

However, that type of HTML button will break the channel form's jQuery, as it gets read as an interrupting <script>. I finally tracked it down at the end of this line...

Screen Shot 2022-02-04 at 2 13 32 PM

I'm not sure why the HTML buttons are getting called in the first place, but is there a workaround for this? It's not always possible for us to just have "Render URLs and Email addresses as links?" turned on for each channel, so I'd still like to offer my clients a way to encrypt their emails, or create "Contact Foo" links that are encrypted mailto's.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bug: AcceptedBug has been confirmed, is reproducible, and ready to work on.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions