Re: Questions about images
Allie Micka <[email protected]>
| Newsgroups | gmane.editors.bitflux.general |
|---|---|
| Message-ID | <[email protected]> |
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? 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 -- bx-editor-users mailing list [email protected] http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-users