Discussion:
advance on bxe
Christian Stocker
2004-05-24 07:55:08 UTC
Permalink
Hi Valentin
Hi christian
I woke up this morning with an horrible problem... ;)
it was not that hard to made the docbook tables with css... but for the
docbook mediaobject it's an other challenge... because nothing seem to
exist in css and by the way it's a little more complex than an html
<img> tag...
i had to search more, but, i think it exceeds a little bit my skills, so
if you or any body else could help (just on the way i should use, not a
complete answer) it will be really nice!
Yep, that's quite a task ;) But there's a solution. You have to
translate the mediaobject to a <img> internally. We do that already for
<object> in the XHTML namespace in the function
documentCreateXHTMLElement() in js/bxeFunctions.js, now you should do
sth similar for mediaobject. The main task you will encounter is, that
documentCreateXHTMLELement() only is called for XHTML elements and
mediaobject isn't..

Therefore the best thing would be, if one could define in config.xml
which elements should be translated internally to something else (and
add a documentCreateXMLElement() function for that matter). Would be a
new feature...

You're best shot for a short term solution would be to have a look at
function bxe_Node_createNS() in bxeNodeElements.js and try to insert
something there. As far as I can tell, this is the main place for such a
thing, until I find the time to implement a better solution.

chregu
best regards
Valent!n
--
christian stocker | Bitflux GmbH | schoeneggstrasse 5 | ch-8004 zurich
phone +41 1 240 56 70 | mobile +41 76 561 88 60 | fax +41 1 240 56 71
http://www.bitflux.ch | ***@bitflux.ch | gnupg-keyid 0x5CE1DECB
--
bx-editor-dev mailing list
bx-editor-***@lists.bitflux.ch
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-dev
Loading...