Download Firefox: WindowsMac OS X
logo       
Google Custom Search
    AddThis Social Bookmark Button

Re: advance on bxe: msg#00009

Subject: Re: advance on bxe
Hi Valentin

On 24.5.2004 9:45 Uhr, valentin vago wrote:

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  |  chregu@xxxxxxxxxx  |  gnupg-keyid 0x5CE1DECB
--
bx-editor-dev mailing list
bx-editor-dev@xxxxxxxxxxxxxxxx
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-dev



<Prev in Thread] Current Thread [Next in Thread>