Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validate Summernote #1201

Closed
MehGokalp opened this issue Jul 3, 2015 · 4 comments
Closed

Validate Summernote #1201

MehGokalp opened this issue Jul 3, 2015 · 4 comments

Comments

@MehGokalp
Copy link

Hi all, i use @1000hz 's bootstrap validator. This api use data attributes to validate something. I wrote an custom validator to validate summernote and i have to add data attribute into it. When i add data attiribute summernote remove it.
I add attribute by this code:

$('.note-codable').attr('required', true).attr('data-summernote', true)

How can i add this attribute? Anybody help?

@MehGokalp
Copy link
Author

++

@felixschul
Copy link

+1 Summernote seems to remove data-* attributes (or all unknown or unsupported attributes) from the HTML.

@screenager
Copy link

This makes the use of the editor indeed pretty annoying, as I now have to fall back on validation with javascript

@lqez
Copy link
Member

lqez commented Nov 20, 2017

Let's keep talking at #2540.

@lqez lqez closed this as completed Nov 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants