[kupu-dev] why does kupu switch to "no style" rather than "normal" on a new line after a heading?
Duncan Booth
duncan.booth at suttoncourtenay.org.uk
Fri Dec 29 22:22:43 CET 2006
"Jon Stahl" <jon at onenw.org> wrote:
> I suspect there may be a good-but-not-obvious reason for this, but I
> can't help but wonder why the following behavior occurs, and if it can
> be modfied:
>
> When set a line to "heading" or "subheading" format, then hit "enter" to
> start a new line, the style for the next paragraph becomes "no style"
> rather than "normal". That seems very unintuitive. Worse, it often
> seems to result in content authors creating lots of unstyled paragraphs,
> which under Plone's default styles looks really weird because the
> leading of "no style" paragraphs is much tighter than "normal"
> paragaphs.
>
> Is there anything that can safely be done to make the next paragraph
> after an <h> style be "normal" style?
>
I know, but I'm not sure there is much I can do about it. Kupu used to try
to ensure that everything you entered was inside a paragraph (i.e. Normal
style), but that hit problems at the end of the buffer when interactions
with Firefox's attempts to insert <br/> at the end of the buffer but not
inside a paragraph resulted in infinite loops of kupu vs Firefox. I changed
it to just accept what the browser did which is why you now get the 'no
style' effect.
Perhaps there is a better way to handle it, but if so I haven't yet found
it.
More information about the kupu-dev
mailing list