[webkit-qt] Configuring behavior of <enter> in editing mode?

Antonio Gomes tonikitoo at gmail.com
Thu Jun 30 20:12:13 PDT 2011


what does it happen on safari or chromium browsers?

On Fri, Jun 3, 2011 at 9:19 AM, Roland Labrecque <roland at ics.com> wrote:

> **
> The html contains something like.
> ...
> *<div contenteditable="true">Edit Me ZZ</div>*
>
> If I place the cursor between the "Z"s and hit <enter> the resulting html
> looks like
>
> *<div contenteditable="true">Edit Me Z<div><br></div><div>Z</div></div>*
>
> This results in a whole lot of extra whitespace. Anyone know how to
> configure this?
> I would like the result to be
>
> *<div contenteditable="true">Edit Me Z<br>Z</div>*
>
> or maybe
>
> *<div contenteditable="true">Edit Me Z<p></p>Z</div>*
>
> I'm currently working on a hack which filters the <enter> and inserts a
> single "<br>" but this seems very kludgy...
>
> Any suggestions would be appreciated!
>
> Cheers,
> Roland L
>
> _______________________________________________
> webkit-qt mailing list
> webkit-qt at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-qt
>
>


-- 
--Antonio Gomes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-qt/attachments/20110630/56252300/attachment.html>


More information about the webkit-qt mailing list