The Little Guy Posted January 30, 2010 Share Posted January 30, 2010 I am using tinymce, it works an all, but when I use AJAX to generate a textarea, it doesn't convert the textarea. Anyone know how I could do this? Quote Link to comment Share on other sites More sharing options...
mubarakabbas Posted February 2, 2010 Share Posted February 2, 2010 Hi, Me too running the same problem, not only TINYMCE, fckeditor too having the same problem, where it is not functioning in javascript call.. Quote Link to comment Share on other sites More sharing options...
The Little Guy Posted February 3, 2010 Author Share Posted February 3, 2010 Dude! I found a sweet tutorial on how to make your own WYSIWYG! The following will make selected text bold: <html> <head> <title> Using execCommand to bold text </title> <script language="JavaScript"> function Init() { iView.document.designMode = 'On'; } function boldIt(){ iView.document.execCommand('bold', false, null); } </script> <body onLoad="Init()"> <iframe id="iView" style="width: 200px; height:70px"></iframe> <br><br> <input type="button" onClick="boldIt()" value="Toggle Bold"> </body> </html> Tutorial: http://www.devarticles.com/c/a/HTML/Building-a-WYSIWYG-HTML-Editor-Part-1/ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.