Opened 14 years ago

Closed 14 months ago

#47 closed enhancement (wontfix)

Behaviour of Enter key - changing the style

Reported by: anzenews Owned by: yermol
Priority: low Milestone:
Component: Plugin_EnterParagraphs Version: trunk
Severity: normal Keywords: enter change style
Cc:

Description (last modified by gogo)

It would be nice (though it is not very high on my priority list) to have this feature:

Let's say you have four styles: h1 (Title), h2 (Subtitle), p (Text) and div.quotation (Quotation). The editor should start in 'Title' mode. Then when user presses Enter the editor should automatically switch to Subtitle (of course, the user could change the mode to some other).
When the user is inside Subtitle the enter key should go to Text. Inside Text mode the enter should keep it there, but it should close the current paragraph and start new one ('</p><p>').

Basically, the developer should have the way to determine starting style and for each style what its 'next style' should be.

Change History (3)

comment:1 Changed 14 years ago by gogo

  • Component changed from Plugin - Stylist to Plugin_EnterParagraphs
  • Description modified (diff)
  • Owner changed from gogo to yermol

This would probably be a job for EnterParagraphs? (although complicated as it would have to work in IE too).

comment:2 Changed 14 years ago by gogo

  • Version set to trunk

comment:3 Changed 14 months ago by gogo

  • Resolution set to wontfix
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.