PD editor insert-image
The 'Pre-view' button: This button will trigger the pre-view window and change the image to the one selected in the menu. This button holds the OnClick event called 'viewImage'. <input type="button" name="viewimage" value="Pre-view" onClick="viewImage();"> The function is shown below and needs be inserted in the head tags:
This event will change the tag with the name image_main in the browser window display_window with the values of the hiddenfield prefix and the menu imagebank and sets focus to the window when we do this. That's it ! Note: the focus is on the texteditor in the HTML editor, so the browser window will dissapear to the back. When using pre-view the browser window will get focus. The pre-view function will only work when the browser window is open, if closed a re-load is needed. Requirements: IE 5+
|
Marcellino Bommezijn
Marcellino Bommezijn is one of the managers at dmxzone.com. He is a contributor on the tutorials section.
Owner of Senzes Media (http://www.activecontent.nl) which provides professional services and web applications for mid-sized companies.
ActiveContent CMS is the ASP.NET Content Management solution that is used for building professional and rich-featured websites.
Comments
Thanks
Align Image?
I've used your method to add images...Thanks for the help. How would I go about enhancing this to be able to insert the align="left" or "right" tag? The same goes for adding a border around the image.
RE: Align Image?
thats a big question!
do you have a answer now?
Style sheets?
You must me logged in to write a comment.