André van Toly schreef:
Op 17-sep-2007, om 16:29 heeft Ernst Bunders het volgende geschreven:
hello

at least in mmbase 1.8 the htmlarea doesn't work so wel anymore.
for bold and italic it creats things like '<span style="font-weight: bold">' and then in my-htmlarea.js in the function clean() <span> elements are removed completely and style elements are removed as well.

Are you sure you are using HTMLarea or Xinha? You can replace the default HTMLarea with Xinha or TinyMCE by doing some shifting with the provided xsl's in '/mmbase/edit/wizard/data/xsl'.

I am sure i am using the htmlarea thing. when i hack htmlarea files, the changes show. Changing to another richtext tool is not an option for now. it would take some experimenting i have no time for.

This is a bit odd. I suppose that in the past bold was just done like this: <b>

But it changed, and my-htmlarea.js was not updated. I have been looking but could not find a relevant bug in jira.

Is this a known problem?

I want to fix it, which can be done in twoo ways:

1 remove the offending lines in the clean() function

The clean method in the Xinha version of my-htmlarea.js (that is '/mmbase/edit/wizard/xinha/my-htmlarea.js') is a bit different then the 'default' clean() method.

i didn't look at that...

2 somehow make htmlarea use <b> and <i> tags again.

Use the Xinha version.

What disturbs me is that the version of Xinha that ships with MMBase uses <b> and <i> instead of <strong> and <em> which makes for incorrect html at the frontend in a lot of sites. And that the newest, current version of Xinha is completely incompatible with the EditWizards since the wizards are made of some self-thought-up version of HTML (something in between HTML 4 and or xhtml 1.0 for that matter).

---André


--
André van Toly
MMBase development & Userfriendly webdesign

W: http://www.toly.nl
M: +31(0)627233562
------------------------------------------------------------------~~<<>>~~


_______________________________________________
Developers mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/developers




_______________________________________________
Developers mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/developers

Reply via email to