Skip to content
This repository has been archived by the owner on Mar 8, 2019. It is now read-only.

Pasted paragraphs collectively wrapped in extra <p> tag #223

Closed
mikejustdoit opened this issue Sep 26, 2012 · 5 comments
Closed

Pasted paragraphs collectively wrapped in extra <p> tag #223

mikejustdoit opened this issue Sep 26, 2012 · 5 comments
Milestone

Comments

@mikejustdoit
Copy link

Since using

useLineBreaks: false

To clarify, I paste something like

Paragraph one here.
Paragraph two here.

And get back
<p><p>Paragraph one here.</p><p>Paragraph two here.</p></p>

If this is a bug I'd be more than happy to try to fix it, but any suggestions of where to begin would be appreciated.

@tiff
Copy link
Owner

tiff commented Sep 27, 2012

I will look asap into this. Thanks very much for testing it!

@tomtaylor
Copy link

I've had a go at fixing this, but I don't know the code well enough to know exactly where to adjust the behaviour. I believe it's due to there being a root <p> tag at the text cursor, before paste, so everything goes inside it.

@tiff tiff closed this as completed in b0c281b Nov 9, 2012
@tiff
Copy link
Owner

tiff commented Nov 9, 2012

Hi @tomtaylor,

I was only able to reproduce this in Chrome + Safari and I think I found a fix.
Please compile master and check. Feel free to reopen if this still doesn't behave as expected.

Thanks!

@dhoulb
Copy link

dhoulb commented Dec 12, 2012

I just hit the same issue (in Chrome, with useLineBreaks = false and <p> in the parser rules whitelist).

Can confirm that b0c281b has fixed it :D Thanks!

@tomtaylor
Copy link

Thanks a lot, this seems to work for us!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants