If we could set the editor file url in config then I'd just swap mysite.com/fckeditor/fckeditor.js with mine in theme/functions.php ie.
$_CONF['adv_editor_path'] = /layout/foley/js/ckeditor/ckeditor.js;
$_CONF['adv_editor_js'] = /layout/foley/js/adv-editor.js;
Looking over things I wonder if this is the easier way to go since with the other way you are never sure when things get set (ie contribute form, story, comment, staticpage). Setting the paths at the begining would solve this problem.
Here is for the most part the following javascript that gets set when the advance editor is used:
Text Formatted Code
// Add JavaScript
$_SCRIPTS->setJavaScriptFile('fckeditor','/fckeditor/fckeditor.js');
$js = 'geeklogEditorBasePath = "' . $_CONF['site_url'] . '/fckeditor/";';
// Hide the Advanced Editor as Javascript is required. If JS is enabled then the JS below will un-hide it
$js .= 'document.getElementById("advanced_editor").style.display="";';
$_SCRIPTS->setJavaScript($js, true);
$_SCRIPTS->setJavaScriptFile('submitstory_fckeditor', '/javascript/submitstory_fckeditor.js');
The story editor also sets this which is just used for archive along with showhideEditorDiv:
Text Formatted Code
$_SCRIPTS->setJavaScriptFile('advanced_editor', '/javascript/advanced_editor.js');
The question is what can we do to make it easy to allow for other editors. The path idea will work for the 2 js files (I am asuming we can combine advanced_editor and storyeditor_fckeditor together).
What should we do for the non file stuff (that is fckeditor related)? I guess we could add a config option for that as well...
Thoughts
Tom
One of the Geeklog Core Developers.