Re: handling of tags as images

Christian Stocker <[email protected]> Wed, 22 Sep 2004 13:28:13 +0200
Newsgroups gmane.editors.bitflux.general
Message-ID <[email protected]>

On 22.9.2004 10:45 Uhr, Patrick Kollitsch wrote:
> hi all,
> 
> is there any possibility to get mozilla or the editor (dont know, who is 
> responsible for that) handling (non-xhtml-)tags like images? we tried 
> the css-property content like "content: attr(url);" but it only shows 
> the path of the image, not the image itself.

yep, big problem... You have to hack the js for doing it correctly

In theory, if you have <myimage src="pic.gif"/>
this has to be converted (internally) to

<span class="myimage" src="pic.gif">
<img src="pic.gif" _edom_internal_node="true"/>
</span>

(bxe then takes care of the problem, if _edom_internal_node is set)

As far as I can see (wrote that code ages ago), the best place to handle 
that is in

bxe_Node_createNS() in js/bxeNodeElements.js

HTH

chregu
> 
> greetings
> Patrick

-- 
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  |  [email protected]  |  gnupg-keyid 0x5CE1DECB
-- 
bx-editor-users mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-users