Opened 6 years ago

Last modified 4 years ago

#1310 new defect

Can't escape from a <pre> element

Reported by: guest Owned by: gogo
Priority: normal Milestone: 2.0
Component: Xinha Core Version: trunk
Severity: normal Keywords:
Cc: ianb@…

Description

When the last element in the WYSIWYG editor is a <pre> element, there's no clear way to get out of that element and into a normal paragraph. Hitting enter just expands the pre.

Even without a control to add pre elements, you can get them in your content pretty easily through copy-and-paste.

Change History (4)

comment:1 Changed 6 years ago by nicholasbs

You can actually insert <pre> elements using the format menu (though, somewhat bizarrely, it's listed as "Formatted").

I think the behavior here should be the same as that for headings, where pressing enter gets you out of the formatting and shift-enter keeps you inside of it. (Note that this doesn't currently work in FF3; I think this is related to #1226, which Doug has a nearly finished fix for).

comment:2 Changed 6 years ago by guest

Shift-Enter would work well, though it would be hard to discover. Is it possible to put a message into the status based on the element you are in?

comment:3 Changed 6 years ago by nicholasbs

I agree, it's definitely hard to discover (I didn't know about it until someone told me) and should be made more obvious. I've created ticket #1368 to address this.

Thanks!

comment:4 Changed 4 years ago by gogo

  • Milestone changed from 0.96 to 2.0
Note: See TracTickets for help on using tickets.