Editor mangles html source

2 views
Skip to first unread message

Kaan

unread,
Jun 10, 2006, 1:42:31 AM6/10/06
to Docudo
Has anyone tried the html source button in the editor yet? It inserts a
<pre> tag at the beginning of the document and doesn't close it until
the end. The when you click 'update' the pre tag is still there and the
article looks completely wrong.

The editor seems to insert empty divs pretty easily that end up working
like line breaks. I haven't found a way to get rid of these except for
going right into the source. So editing documents and having them look
ok is a bit... hard.

This is on Firefox 1.5.0.4 on XP SP2

Kevin Dangoor

unread,
Jun 14, 2006, 7:32:56 AM6/14/06
to doc...@googlegroups.com
I noticed that, too. It's really annoying.

FWIW, I don't see that behavior on my WordPress blog.


--
Kevin Dangoor
TurboGears / Zesty News

email: k...@blazingthings.com
company: http://www.BlazingThings.com
blog: http://www.BlueSkyOnMars.com

Kaan

unread,
Jun 16, 2006, 2:07:42 PM6/16/06
to Docudo
I've been looking over the source code and I think I've found something
a bit weird. I'm not sure how it works but look at
http://trac.docudo.org/docudo/browser/trunk/Docudo/docudo/document.py?rev=107#L16
and a little bit below at the text_area functions. Could these be
causing our troubles?

I can't quite follow all of the code but the regexp's look extremely
permissive when converting the text areas, yet it's a bit more
restrictive when converting them back.

Reply all
Reply to author
Forward
0 new messages