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

Value of empty summernote is not empty string #53

Closed
im1dermike opened this issue May 12, 2015 · 4 comments
Closed

Value of empty summernote is not empty string #53

im1dermike opened this issue May 12, 2015 · 4 comments
Assignees

Comments

@im1dermike
Copy link

The value of a summernote model before entering text is an empty string as expected. But if you enter text and then remove it, the value of the summernote model is <br>. This ruins ngRequired.

Oddly enough, in my testing, if you type text into an empty summernote, then remove it, its value is <br>. But if you add some hard returns to the empty summernote, then delete them, its value is an empty string.

@outsideris
Copy link
Member

Ok. I will test it.

@outsideris outsideris self-assigned this May 14, 2015
@outsideris
Copy link
Member

I can't reproduce it.
Can you explain more detail with version of summernote and angular-summernote or browser you tested.

@im1dermike
Copy link
Author

Unfortunately, neither summernote nor your angular-summernote JS files supply a version. summernote.js does supply Date: 2015-04-29T19:41Z for whatever that's worth.

Hopefully this screencast will help: http://www.screencast.com/t/EchUew7sx3g

@outsideris
Copy link
Member

I will try to fix it if summernote/#1097 is merged and released.

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

2 participants