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

Different behaviour while pasting content on Chrome or Firefox #39

Closed
brazorf opened this issue Jun 25, 2015 · 2 comments
Closed

Different behaviour while pasting content on Chrome or Firefox #39

brazorf opened this issue Jun 25, 2015 · 2 comments

Comments

@brazorf
Copy link
Contributor

brazorf commented Jun 25, 2015

I've noticed this difference in the code processor. Take these cases:

1.a) I copy a paragraph from a web page using Firefox
1.b) I paste that paragraph to a medium-editor in Firefox
The result will be a paragraph without the wrapping <p>

2.a) I copy a paragraph from a web page using Firefox
2.b) I paste that paragraph to a medium-editor in Chrome
The result will be a paragraph properly wrapped in <p> tags.

Assuming the latter is the designed behaviour, i would say this is a bug.

@brazorf
Copy link
Contributor Author

brazorf commented Jun 25, 2015

I've tried to add this line of code:

iElement.on('blur', onChange);
iElement.on('input', onChange);
iElement.on('paste', onChange); // < --- This

Adding the same handler on the paste event seemed to solve my issue randomly but not always.

I didn't go through the whole library code, so i'm asking: mabye the medium-editor paste capabilities are not enabled at all?

@brazorf
Copy link
Contributor Author

brazorf commented Nov 23, 2015

I suppose #42 fixes this.

@brazorf brazorf closed this as completed Nov 23, 2015
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

1 participant