I've build a solution that uses FCKeditor that has a utility for inserting images (image tags) from a collection of server based images. When the image selection tool (div on the same page) is used the FCKeditor loses it's focus and the cursor location. If I then use InsertHtml, it gets inserted at the beginning of the html in FCKeditor. Is there some way to get the cursor location first, save it, and then reset it it before calling InsertHtml? I see in the API documentation there is a reference to a Selection Object but I don't see any more information on the interface for the Selection Object. Can someone point me in the right direction.
Thanks.
Thanks.
Re: How to save and reuse cursor location in FCKeditor?
There's very little documentation about the internals of FCKEditor. I dug this up for someone else the other day...
Re: How to save and reuse cursor location in FCKeditor?
Re: How to save and reuse cursor location in FCKeditor?
Re: How to save and reuse cursor location in FCKeditor?
At initial time, do this before any other code that may cause the focus to go off the FCKEditor:
This creates a "placeholder" element in the Editor at whatever the current cursor location is.
Then when I'm ready to insert my html clip:
This will completely replace the placeholder node so you don't get left with any dirty/extra underlying html, either.
I found that if you enable javascript debugging in IE and attach using Visual Studio, you can "Quick View" the FCKEditor object and list all it's properties and methods on down the child tree, and at least see what the property and method names are.
how to insert uploaded image at current cursor position in ckedi
In my application have used CKEDITOR. Using modal box am allowing the user to browse the image and upload it to the current cursor postion in CKEDITOR. how can I do so?