Re: Questions about images

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

> By changing the "<media ... " tag to an "<img src=..." tag in the
> insertpicture popup, I can build an image tag that works properly on
> the main web site.
>
> But the image tag doesn't show up at all in the editor.  Can you
> suggest where I might start troubleshooting this?

Maybe it's not in the xhtml namespace. try to write
<img  xmlns="http://www.w3.org/1999/xhtml" src="..."/>
and see if that works.

If that's the case, you could adjust transformxml-include.xsl for doing
that automatically ;)

chregu
>
> Thanks again,
> Allie
>
> >>> 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.