A web-based “round-trip” HTML editor. You can code HTML and see how it looks on the side, or write text with formatting and see corresponding HTML interactively. Uses IE specific functions so currently works only with IE, but should give you ideas.
Following is a link to a web-based “round-trip” HTML editor. You can code HTML and see how it looks on the side, or write text with HTML formatting and see corresponding HTML interactively. Uses IE specific functions so currently works only with IE, but should give you ideas even if you want to work with other browsers.
11 Comments
When do you think we will be able to insert images into the page? It wouldn’t be a problem for me to have an images folder sitting in the folder with the editor. Is this something i will have to code on my own?
add this function:
function doInsertImage()
{
var tr= frames.myEditor.document.selection.createRange()
tr.execCommand(“InsertImage”, true);
doCopyValue();
}
Then add a new icon on the toolbar:
and that is it.
Thanks zan! I guess you emailed me with th is note? Never really got down to adding that code, but hope people get ideas from here.
Dear Shashank Tripathi,
I have to say, you are pretty damn honest with your sw ‘SnipDHTML Editor’. I thought I’ll drop an email to say thank you for letting me using this sw. I’ll leave the copyright text on the script.
Keep up the good work and thank you dearly.
Kosala
Great Editor, fully using the W3C Document Object Model. The only thing I have doubts is on inserting, modifying, deleting tables and the use of stylesheets. For example, reading the style sheet and presenting a drop down for adding the style sheet. Does anybody have any ideas??
I currently revamped this editor to work with ColdFusion and Dynamically load tempaltes for editing and revision. A great Content Manager. I also made it so that a non-html header can be read, modified and updated.
Luis Majano
Sounds good, Luis! Would be great if you could share a URL to your CF/template modifications. Thanks!
Are you planning to update this code? Great stuff!
Fantastic prog. Just works great. How would one make it insert html from an existing file. i cant see how to do that…
How would you go about inserting tables with the execCommand, it doesn’t seem to work. Also, how would you specify the execCommand(“Open”) to open in the iframe?
I expanded somewhat on the WYSIWYG editor, and I made an option to open a file in the iFrame. It works, but you can’t see the source code. The error says ‘Access Denied’. Editor is at http://geocities.com/albino_doom/
Does anyone come here anymore?
http://semlar.com/editor.htm