Re: Staying in <P> mode after <H1>

Allan Pratt <[email protected]>
Newsgroups gmane.comp.mozilla.devel.editor
Message-ID <[email protected]>
I wrote:
> >Is there any hope? Some JavaScript I can use to configure the editor, or some mechanism to "trick" the editor into staying in paragraph mode?

And Neil <[email protected]> replied:
> I believe that's controlled by a user preference, editor.CR_creates_new_p

Fantastic! Thank you for the response, which gave me the keyword I
needed for more searching.

Unfortunately, I think I'm getting all the CR_creates_new_p behavior
FireFox has to offer, and it isn't enough.

The preference and the bugs that discuss it (including 285873, 305893,
and 92686, all fixed and closed) slightly miss the mark. They talk
specifically about behavior when you press CR while in a <P> tag. The
behavior I'm talking about different: I want to start a new <P> when I
press CR while at the end of an <H1> line, and when I press CR twice
to exit a list (<UL> or <OL>). Today the text you type after those
operations appears at the top level of the HTML, outside of all tags -
most importantly, not inside a <P> tag.

And I'm talking about the rich-text editor widget you get with
designMode for through-the-web content editing (like wikis - is this
what's called "Midas"?), not in mail message or newsgroup message
composing or local web page creation.

Is this just a new bug I need to file and stir up discussion about?
Thanks.

-- Allan Pratt, [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.