Tag Archives: Code Document

WYSIWYG Input Editor

How ought to be a go about creating a WYSIWYG web-based manager for input, ie. for news creation in a very CMS. We’ve used google a lttle bit to find an answer, but when rendering comes around, Personally i think like I’ve missed something. There’s no doubt that the general idea would be to have a iframe rather than a textarea. That you just then via JavaScript first turn on designMode on this document(iframe) Code: document. getElementById(editor). contentDocument. designMode = " on"; After this somewhat unsure. I have following, just a text hyperlink in making the text bold Code: < some sort of href=" javascript:; " onclick=" formatButton(‘teaser’, ‘Bold’); " unselectable=" on" > Bold< /a> But it lets you do nothing. Also, I can’t give any data towards the iframe. So when editing a preexisting news article the item just shows nothing at all. Tried using JS to write (. innerHTML) towards the iframe, but very little luck. Any help is great guys I’m assuming you no longer want to employ, for example, FCKEditor Probably not. I’d really like to understand how to do it by myself, for future benchmark. Also, I’ll be using it in some sort of commercial … Continue reading

Posted in Web Design | Tagged , , , , , , , , , , , , , , , , , , , | Leave a comment