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

Paste from word now respect enter_br mode #826

Merged
merged 10 commits into from
Aug 24, 2017
Merged

Paste from word now respect enter_br mode #826

merged 10 commits into from
Aug 24, 2017

Conversation

msamsel
Copy link
Contributor

@msamsel msamsel commented Aug 24, 2017

What is the purpose of this pull request?

Bug fix

Does your PR contain necessary tests?

yes

This PR contains

  • Unit tests
  • Manual tests

What changes did you make?

  • Adapt pasting text from word to respect ENTER_BR mode in editor.

Close: #423

@mlewand mlewand requested a review from Comandeer August 24, 2017 11:08
@@ -0,0 +1,4 @@
<p class=MsoNormal><b style='mso-bidi-font-weight:normal'><i style='mso-bidi-font-style:normal'>Paste from word<br>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if it's correct fixture for Firefox. It should like like the one from Chrome, containing all HTML as Firefox also supports fetching HTML from native dataTransfer.

@bender-ckeditor-plugins: pastefromword,toolbar,basicstyles,wysiwygarea,sourcearea

----
1. Open [docx file](https://github.com/ckeditor/ckeditor-dev/blob/master/tests/plugins/pastefromword/generated/_fixtures/Enter_BR/Enter_BR.docx) in Microsft Word.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's better to use relative path as this one is not working currently.

1. Copy text from file and paste it to editor.
1. Check Source in editor.

**Expected:** There is no `<p>` tags in source. Every pparagraph is replaced wit `<br />`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, fix typos.

Copy link
Member

@Comandeer Comandeer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually there is also one more problem: issue is not reproducible in the given manual test, but it's reproducible in /plugins/enterkey/samples/enterkey.html. Please, update manual test.

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

Successfully merging this pull request may close these issues.

2 participants