Can we get support for CKEditor to be placed in a libraries folder like wysiwyg uses?

Check
sites/all/libraries/ckeditor
sites//libraries/ckeditor
then

/ckeditor

I know I want this so when i update the module with drush and it moved the ckeditor module folder to backups it doesn't take the downloaded copy of ckeditor with it.

I'm going to checkout CVS and see if i can make a patch

CommentFileSizeAuthor
#1 ckeditor.module.patch2.81 KBedhaber
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

edhaber’s picture

FileSize
2.81 KB

So I have recently added the Admin module. It is pretty cool, but it was hiding some of the help text.
I found the area in the global options that you can set any path you want for the library's location.

I made my changes to the function ckeditor_path

I added a check for /sites/all/libraries/ckeditor and if that fails it falls back to the module directory.

This worked for me and here is my patch.

wwalc’s picture

Version: » 6.x-1.0-beta1
Status: Active » Fixed

Check the beta version, it should automatically find CKEditor in sites/all/libriaries and update the global profile (where path to CKEditor may be set).

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

geerlingguy’s picture

Version: 6.x-1.0-beta1 » 6.x-1.1
Status: Closed (fixed) » Active

Just FYI - if you have a ckeditor folder in the module folder, as well as the sites/*/libraries folder, then the user-configurable 'Path to CKEditor' is not actually user-configurable.

I tried changing the path from %m/ckeditor to %b/sites/all/libraries/ckeditor, but when I hit save, the original value appears when I go back to the Advanced settings on the Global profile.

If this path is truly user configurable, then it should be able to be whatever the user chooses, even if there's a version of CKEditor inside the module directory. Just a little UI gotcha.

mephir’s picture

Status: Active » Closed (fixed)

@geerlingguy: i don't see anything worring about this functionality. I have ckeditor in library folder and also in module directory, changing %m/ckeditor and save produce proper settings. Return to %b/sites/all/libraries/ckeditor, works fine to. Maybe you have some typo in path's.

If you have any lack of clarity about issue, feel free to reopen it.