Hey all

A little background, I like to setup input filters in an installation profile and try to configure the text editor as much as I can. This used to work, until I upgraded to the newest CK Editor module and Drupal 6.16.

Here's how to recreate the issue:

Fresh install of Drupal 6.16...

Add your own custom toolbar to config.ckeditor.js

Go to CK Editor, either click on Default or Advanced profile and change it to your custom toolbar you just added.

Add/edit content, you should see your custom toolbar.

Go back to CK Editor config, delete whatever profile you edited, and create a new one. Call it whatever, and tell it to use your toolbar (or any of them). Go edit content, bam, editor is gone. This must be something in the new version, because I can't get it to break at all in 6.x-1.0 / D 6.16.

Any ideas?

I was up until 4 AM trying to isolate the issue and I can't pinpoint it. No JS error on the page, nothing like that. Leads me to think something changed in the code regarding the profile it loads up. I was logged in as user 1, so no permission was getting in the way.

CommentFileSizeAuthor
#3 ckeditor-742244.patch1001 bytesmephir

Comments

kevinquillen’s picture

Forgot to mention, if I use the CK profiles that come installed by default (Default, Administrator) this all works as expected. But when I want to use my own, the whole thing vanishes until I delete my profile.

mephir’s picture

Assigned: Unassigned » mephir
Priority: Normal » Critical
Status: Active » Needs work

Thanks for step by step instruction, i will fix this asap. I take it on a first place to do.

mephir’s picture

Status: Needs work » Needs review
StatusFileSize
new1001 bytes

Here is small patch which should fixed your issue. The problem was setting up min_rows to high in new profile.

kevinquillen’s picture

Thanks, that appears to work. I will have to try a full install and add my code back in and see if it works. Then I'll have a ready to go CK editor right out of Drupal install :D

mephir’s picture

Status: Needs review » Reviewed & tested by the community

So, i will commit it to cvs.

mephir’s picture

Status: Reviewed & tested by the community » Fixed

Changes commited to CVS.

kevinquillen’s picture

Status: Fixed » Needs review

Okay, that may have fixed it post-install, but I just tried a fresh install with our install profile and got the same result. The editor just isn't there unless I delete the custom CK Editor profile and start over. When I created a new profile and set the settings to what I want, that part now works (previously did not).

All I am doing is updating ck editor settings table with the global settings, and inserting my new profile into the ck editor settings table as a serialized string. It appears to make it in correctly, and the settings look right. However, nothing shows up when I go to a node add/edit.

Could this have to do with an internal drupal cache, some kind of difference between configuring something during install versus in an installed site?

kevinquillen’s picture

Could also be how I am trying to do this.


$custom_profile_settings = 'a:37:{s:15:"allow_user_conf";s:1:"f";s:7:"filters";a:11:{s:11:"lightbox2/6";i:0;s:6:"gmap/0";i:0;s:8:"filter/3";i:1;s:8:"filter/0";i:1;s:11:"lightbox2/1";i:0;s:11:"lightbox2/0";i:0;s:11:"lightbox2/3";i:0;s:11:"lightbox2/5";i:0;s:11:"lightbox2/2";i:0;s:11:"lightbox2/4";i:0;s:10:"swftools/0";i:0;}s:2:"ss";s:1:"2";s:8:"min_rows";s:1:"5";s:9:"excl_mode";s:1:"0";s:4:"excl";s:0:"";s:11:"simple_incl";s:0:"";s:7:"default";s:1:"t";s:11:"show_toggle";s:1:"t";s:5:"popup";s:1:"f";s:4:"skin";s:4:"kama";s:7:"uicolor";s:7:"default";s:16:"uicolor_textarea";s:95:"<p>
	Click on the <strong>UI Color Picker</strong> button to set your color preferences.</p>
";s:12:"uicolor_user";s:7:"default";s:7:"toolbar";s:14:"MyBasicToolbar";s:6:"expand";s:1:"t";s:5:"width";s:4:"100%";s:4:"lang";s:2:"en";s:9:"auto_lang";s:1:"t";s:10:"enter_mode";s:1:"p";s:16:"shift_enter_mode";s:2:"br";s:11:"font_format";s:35:"p;div;pre;address;h1;h2;h3;h4;h5;h6";s:8:"css_mode";s:5:"theme";s:8:"css_path";s:0:"";s:9:"css_style";s:5:"theme";s:11:"styles_path";s:0:"";s:11:"filebrowser";s:4:"none";s:17:"filebrowser_image";s:0:"";s:17:"filebrowser_flash";s:0:"";s:13:"UserFilesPath";s:5:"%b%f/";s:21:"UserFilesAbsolutePath";s:7:"%d%b%f/";s:20:"ckeditor_load_method";s:11:"ckeditor.js";s:22:"ckeditor_load_time_out";s:1:"0";s:15:"theme_config_js";s:1:"f";s:7:"js_conf";s:0:"";s:10:"excl_regex";s:0:"";s:17:"simple_incl_regex";s:0:"";}';
  
 
  db_query('INSERT INTO {ckeditor_settings} (name, settings) VALUES ("%s", "%s")', 'Custom Profile', $custom_profile_settings);



I do notice that its not selecting my toolbar by default.

Is there any easy way to configure CK Editor like this during install?

dczepierga’s picture

Status: Needs review » Closed (fixed)

This issue is inactive over half year, so i closed it.