i’m using ckEditor together with its own jQuery adapter and i’d like to define the editor’s baseUrl in order that it will show images in the html.
here’s my code – unfortunately doesnt work:
var txt = $("textarea");
txt.ckeditor();
var editor = txt.ckeditorGet();
editor.baseurl = "/myweb1/test/";
any ideas what’s wrong?
thanks
The configuration property which you are looking for is actually ckeditor.config.baseHref
You can pass in configuration options through the ckeditor() initializer like this:
You can also do it more dynamically like so:
Some more info can be found here – http://ckeditor.com/blog/CKEditor_for_jQuery