-
Notifications
You must be signed in to change notification settings - Fork 19
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
New lines are added when pasting formatted text on composer #523
Comments
Can reproduce with demo angular app (angular-seed) with angular-summernote plugin and summernote 0.8.18. |
|
@alagane great, thanks |
There seems to be no issue about the problem on angular-summernote, and the project development seems stopped or very slow. |
summernote/summernote#3370 |
Tests against summernote 0.8.18 (on angularjs demo, without angular-summernote)
Strange behaviour happens in: |
Summernote version 0.8.18
When I paste formatted text on the composer, newlines are added (
<p><br/></p>
), before what is pasted, and between lines.Example of formatted text with resulting pasted text is provided here: #522 (comment)
When I press backspace or delete before I paste the text, there are no newlines added, there seem to be a
<p><br/></p>
that is removed when pressing one of those keys.If I add a space before pasting (after removing the p), it does not seem to add newlines between pasted text paragraphs.
If I add space, move the cursor before and paste, the text is pasted last paragraph first (somewhat upside down).
Those problems do not happen on summernote standalone (simple html page with only summernote, same version 0.8.18). Note that we must use the
pasteHTML
command because this is what we use when we override the paste behaviour for HTML content on esn-frontend-inbox composer. Tests were done on summernote standalone the same way, with pasteHTML command.This is not related to options (setting
INBOX_SUMMERNOTE_OPTIONS
to{}
does not solve the problem).This problem might we related with AgularJS behaviour with summernote.
The text was updated successfully, but these errors were encountered: