zenpen icon indicating copy to clipboard operation
zenpen copied to clipboard

Blockquote isn't reversible

Open JulianBirch opened this issue 12 years ago • 3 comments

If you hit the demo page, select two paragraphs and then hit quote twice, it sticks the two paragraphs together.

Not the world's biggest problem, I'll admit...

JulianBirch avatar Aug 15 '13 11:08 JulianBirch

This bug is really frustrating me... I'm struggling a bit to get solid (bug free) on/off states for block quotes. The rich text api is really very flakey... I'm starting to think resorting to manual dom parsing/editing will be the way to go, but then the text highlighting becomes a problem.

tholman avatar Aug 18 '13 21:08 tholman

I feel bad about reporting it now. Sounds really messy. :( Sorry I can't really help.

JulianBirch avatar Aug 19 '13 10:08 JulianBirch

Anyone else, feel free to have a crack at this. It feels like the execcommand api is pretty inconcistent when it comes to indenting, and unindenting areas... so I expect the bug free solution will involve changing the "p" tags to blockquotes, and back again on press... but will also need to re-highlight the same text area after those elements are replaced.

tholman avatar Aug 22 '13 20:08 tholman