I'm using Drupal 4.5.2, with the cvs version of FCKEditor.

When I go into edit, the cursor is placed in the "wrong" textbox on the page. It seems to be defaulting to the lower-most editor box (coming from another module), rather than, for example Title or the Body.

Is it not possible to make it choose a more logical box?

Comments

Rick Cogley’s picture

FYI - This happens for either new or existing posts.

jtite’s picture

Assigned: Unassigned » jtite

This behavior is managed by FCKeditor library. To prevent the editor gets the focus on page load edit fckconfig.js file and set the property FCKConfig.StartupFocus to false.

// Force the editor to get the focus on startup (page load).
FCKConfig.StartupFocus = false ;

If you need further information about how to set up FCKeditor library please download the official distribution from http://www.fckeditor.net. Note that FCKeditor is an external library and its development and maintenance is not part of FCKEditor for Drupal module

Rick Cogley’s picture

Thank you. I tried searching for docs and reading through sourceforge forums on it. May I suggest giving a list of hints in the readme/install file that comes with the module? Something like:

==
Please refer to the FCKeditor site for detailed information, as this module is a link between Drupal and the editor. Some hints:

* Configuration - fckconfig.js -
-- Turn on Debug - etc
-- Set focus - etc
* Image Downloads - asdf asdf asdf asdf
* etc
==

At any rate, it looks like there are still a bunch of issues with image uploads and such. I looked at sourceforge a lot trying to find some hints but I cannot get mine to work. At any rate, it looks like they are working on it, so maybe we'll have an easier time of it at some point.

Regards
Rick Cogley
Tokyo

Rick Cogley’s picture

Just wanted to say that I tried the change mentioned, setting the focus to false, and now when I edit a page it just opens with no focus. This seems to be a bit better than having the cursor jump to the last box on the page.

Regards and thanks again,
Rick