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 into an empty pre tag and then the pre tag disappears #349

Open
sohee-lee7 opened this issue Feb 20, 2019 · 0 comments
Open

Paste into an empty pre tag and then the pre tag disappears #349

sohee-lee7 opened this issue Feb 20, 2019 · 0 comments

Comments

@sohee-lee7
Copy link

sohee-lee7 commented Feb 20, 2019

Version

v1.9.0

Current Behavior

Make pre tag using code of squire api and then paste text into pre tag.
After paste, pre tag disappears. (Example Code)

In the case of blockquote, the text is pasted well into the empty blockquote.

squire-paste

I think that squire need to consider pre tag when check empty block in paste logic.
https://github.com/neilj/Squire/blob/7cef58bda854c49989c429d90756bff8d6fe758c/source/Range.js#L259-L263

Expected Behavior

Text should be pasted into empty pre tag.

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