My environment is a two node cluster, so I want the CK editor to store the smiley face image URLs as relative paths so the image can be referenced by both nodes. There is a security issue with having node 2 pick up images from node 1 directly - the image doesn't display properly.
So on node 2, if I save a CK editor's contents containing a smiley img, it will save the link like so - "<img alt="" height="20" src="http://bpmdev2.westernasset.com:8081/teamworks/html/ckeditor/plugins/smiley/images/angel_smile.gif" title..." where I'd like the path to be "/plugins/smiley/images/angel_smile.gif".
Not sure if config.baseHref is what I'm looking for.
Thanks,
Jimmy
Wed, 03/24/2010 - 00:52
#1
Is there already an solution
Is there already an solution/work around available for this?
Thanks in advance!
Ruud
found solution
Overlooked the documentation,
The solution to this is to change in the config file to the desired location:
note default was:
CKEDITOR.basePath + 'plugins/smiley/images/
CKEDITOR.basePath + 'plugins/smiley/images/
CKEDITOR.basePath + 'plugins/smiley/images/
CKEDITOR.basePath + 'plugins/smiley/images/'
CKEDITOR.basePath + "plugins/smiley/images/";