Hi everyone!
This is first time i post a problem about CKEditor so i wish you help me early. Thanks!
In my site, i have a button include link of image (this button is outside CKEditor), now I press this button and i want embed link inside button to CKEditor with format same this:
Thanks for read.
This is first time i post a problem about CKEditor so i wish you help me early. Thanks!
In my site, i have a button include link of image (this button is outside CKEditor), now I press this button and i want embed link inside button to CKEditor with format same this:
[img src="Link in button will stay here"][/img].
Thanks for read.
Re: Insert external link to ckEditor
Does the button need to be outside the editor?
I created a simple plugin that works like this:
You create an element in your page and assign the code for your link to the value of the element.
The plugin grabs the value of that element when you click the button in the CKEditor toolbar and inserts it into the editor content area.
You put an element in your page like this:
<input type="text" id="link_code" value="<a href='http://www.YourDomain.com/'>Your Text</a>" />
It could be a hidden input:
<input type="hidden" id="link_code" value="<a href='http://www.YourDomain.com/'>Your Text</a>" />
Any element will work:
<div id="link_code"><a href='http://www.YourDomain.com/'>Your Text</a></div>
I can post the code if will work for your situation.
Be Well,
Joe
Re: Insert external link to ckEditor
I will description my situation follow:
I allow user upload multi file image with uploadify and with an image i have a button include link near image name.
After, user click a button, i'll get link of image to embed to CKEditor. And I need find cursor position to embed image link.
End, i have many link of image. I'm finding a solution for my problem.
Everyone help me. Thanks so much.