I am trying to combine CKEditor3 with a forum program. My question now is how can I show a image from local PC file into the textarea controled by CK?
Currently, I have attached CK successfully with my target <textarea> by CKEDITOR.replace() function and I have edited ckeditor\plugins\image\dialogs\image.js to turn on the Upload button but I do not quite understand how can I use CK's api to load the image from local for preview??
<body> <div id="upload-preview"> <img id="prevImage" style="display:none;" /> <form> <input type="file" name="imgFile" onchange="previewImg(this);" style="font-family: Verdana, Arial; font-size: 12px;" /> </form> </div> </body>