Hello again, how could I create a custom button for CkeEditor so it could insert an image for highslide (which is a image thumbnail viewer)? All I would like it to do is open the window to select an image, change to accommodate for the image location... and put a div tag underneath.. Does anyone have any ideas how to do that? Thanks!
Code To Generate:
-Dillon
Code To Generate:
<td> <a href="IMAGE LOCATION" class="highslide" onclick="return hs.expand(this)"> <img id="name" border="0" src="IMAGE LOCATION" width="120" height="90" /> </a> <div class="highslide-caption">TEXT HERE</div></td>
-Dillon

Re: Create Custom Button
http://code.google.com/p/lajox/download ... :highslide
Re: Create Custom Button
-Dillon
Re: Create Custom Button
/public_html
/public_html/index.php
http://yoursite.com/index.php
/public_html/editor/ckeditor
/public_html/editor/ckeditor/plugins/highslide/js/graphics/
http://yoursite.com/editor/ckeditor/plugins/highslide/js/graphics/
hs.graphicsDir/editor/ckeditor/plugins/highslide/js/graphics/
That means "hs.graphicsDir" is the relative Web Root Path, not a local absolute path!
Re: Create Custom Button
http://www.websitehere.com/fd/login/ckeditor/
http://www.websitehere.com/fd/login/cke ... /graphics/
Re: Create Custom Button
Hi guys!
Hi guys!
Can you help with highslide plugin for ckeditor? I just installed it and it's just fine apart from one issue. It replaces original link to a picture with it's own putting into "href=" and "src=" link to the same file. I just want it to leave it like below:
<a href="my image.jpg" class="highslide" onclick="return hs.expand(this)"> <img id="name" border="0" src="small image.jpg" /> </a>Probably it's a matter of changing $[3] variable (below), but unfortunatelly I do not know JS and I am quite poor in regexps too.
str = str.replace(/^|(<a\b[^>]*>)?\s*(<img\b[^/>]*(?:src=("[^"]*"|'[^']*'|\S+))[^>]*>)\s*(?:<\/a>)?/ig, function() { var $ = arguments; if ($[0].length) { return [ '<a href=' + $[3] + ' class="highslide" onclick="return hs.expand(this)">' , '<img src=' + $[3] + ' alt="Highslide JS" title="Click to enlarge image"></a>' ].join("\r\n"); } else {return JSVar;} });Can you help me?
opencart issue
Hello, i tried to install the plugin in the opencart but i not succeed!
One button appeared to the editor and when i push it the screen becomes white and that's it
Thank you!