Re: Questions about images

Christian Stocker <[email protected]>
Newsgroups gmane.editors.bitflux.general
Message-ID <[email protected]>
On Sun, 9 Feb 2003, Allie Micka wrote:

> I have been working with the Bitflux Editor for a few days now, and I'm
> excited about the progress you've made so far!
>
> I am hoping someone can help me with a pretty basic concept.  I have
> been trying to extend the packaged example for my needs, but am getting
> stuck on using images.
>
> The editor's image insert function creates xml like this:
>
> <media xmlns="http://www.w3.org/1999/xhtml">
> 	<media-reference id="BX_id_0" source="/images/myimage.jpg" />
> </media>
>
> And appears in the editable area.  After I save the item though, the
> image does not appear in the editor again.  When I view xml, I notice
> that it is inside of <p> tags.  Perhaps this is why the stylesheet
> isn't finding it?

For displaying images, we have to insert <img src="myimage.jpg"> in the
xhtml-namespace into the document. It does this, when you insert an image
within the media tag. But the demo-xml doesn't want it as "img" but as
"media-reference". So we insert the xhtml:img tag on startup and inserting
of new images and take it away again on saving or "get xml".

This is defineed in xml/transformxml-include.xsl

and is taken out on saving, because it has the attribute
bxe_temporaryelement="yes"

the code is generated at bxe/insertpicture/index.html. It's a little JS
thingie, which generates the needed XML/XHTML sequence.

If you have further questions. just ask again ;)

chregu

>
> What can I do/change to prevent this and/or deal with it?
>
> Thanks in advance,
> Allie
>
>

-- 
nam...christian stocker    adr...pflanzschulstr. 31, ch-8004 zurich
pho...+41 43 317 9984      www...http://blog.bitflux.ch
mob...+41 76 561 8860      [email protected]
wor...+41  1 240 5670      gpg...0x5CE1DECB

-- 
bx-editor-users mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.