Your theme may be missing:
<?php print $scripts; ?>
Add that line of code in the head section of your theme.
The other possibility may be that:
<?php print $closure; ?>
is missing in your theme (solution similar as above, add that line of code to your theme at the end).
You can also use a different theme.
At this moment, FCKeditor will not show up, when the following modules are enabled:
You probably must configure properly the input format. Either set it to Full HTML or add <img> tag to Filtered HTML.
The full list of tags, which should be allowed, is available in README.txt file.
First of all make sure, that FCKeditor is enabled on this specific page. Take a look into source code of your page and search for something similar to:
var oFCK_1 = new FCKeditor( 'oFCK_1' ); oFCK_1.BasePath = '/modules/fckeditor/fckeditor/';
If you can't find similar code, then it means that FCKeditor is disabled on that page/field. Make sure that you have the right permissions to use FCKeditor and check your FCKeditor profile (include/exclude settings, minimum rows value).
If FCKeditor is enabled, but it doesn't show up, try the following steps:
1. Switch to default theme (Garland), if FCKeditor appears, read the "FCKeditor don't work in xxx theme" instructions. If your theme already has "closure" and "scripts" statements, read below.
2. Make sure that you're using browser compatible with FCKeditor.
3. On some occasions, other installed modules may cause that FCKeditor will not show up (although if you look at page source, you'll see FCKeditor code).
Instead of FCKeditor you may see a very small textarea. This mostly happens, when some other module cause a javascript error and FCKeditor can't load because of this. To check this:
4. Finally, if nothing helped, to find out where exactly error occured, you may use Firefox with Firebug extension. Use the project's site to create a new support request providing as much information as possible, including the exact javascript error message that you got.
Please remember that installing FCKeditor module is a two step process. You have to download and unpack:
If your FCKeditor does not show you must check if all files are extracted correctly. The directory /modules/fckeditor/fckeditor/ should have the following files fckeditor.js, fckconfig.js, fckstyles.xml, fcktemplates.xml, fckeditor.php, fckeditor_php4.php, fckeditor_php5.php and a directory named editor.
The correct directory structure is as follows:
[modules]
[fckeditor]
fckeditor.module
fckeditor.install
fckeditor.info (...and other files from the FCKeditor module)
[fckeditor]
COPY_HERE.txt
_samples
editor
fckconfig.js
fckstyles.xml
...This may happen if your server is configured to parse .xml files just like .php files. You may need to contact your server administrator / hosting provider to get a help regarding this issue.
You can also try to add to .htaccess file the following directive:
AddType text/xml xml
This may be caused by the browser's cache. Clear your browser's cache, restart the browser if it didn't help.
You may also need to clear Drupal's cache and any cache you can think of (for example server cache, Drupal may be caching javascript files as well if you're using some contributed modules to speed up Drupal).
If you upgraded FCKeditor module, make sure that all roles with "access fckeditor" permissions are assigned to at least one FCKeditor profile.
In fckeditor.config.js (located in fckeditor module directory), the following classes are defined to provide text alignment functionality:
FCKConfig.JustifyClasses = ['rteleft','rtecenter','rteright','rtejustify'] ;
Unfortunately, some themes may override those styles and text alignment may not work as expected.
If you're using Full HTML input format, you may simply comment out this line:
//FCKConfig.JustifyClasses = ['rteleft','rtecenter','rteright','rtejustify'] ;
and FCKeditor will use inline styles instead: <p style="text-align: right;">sample text</p>. The problem is that inline styles may be used only with Full HTML. Filtered HTML will strip that code, so don't use this solution with Filtered HTML input format.
For Filtered HTML things are a bit more complicated. For example if your theme defines such CSS style:
.content p { text-align: left; }
text-align property set in .rteright class will not work. To align <p> tag, you will have to edit modules/fckeditor/fckeditor.css file and create a style, that will be applied to <p> tag:
.content p.rteleft {
text-align: left;
}
.content p.rteright {
text-align: right;
}
.content p.rtecenter {
text-align: center;
}
.content p.rtejustify {
text-align: justify;
}Use DOM inspector (in Firefox) to check why alignment doesn't work and to correct CSS styles. There is no universal workaround for this.
The problems is in the way how did you configure your input filters. Before you enabled FCKeditor, you probably had Line break converter enabled.
Now you're trying to edit the same content with Line break converter disabled, thus your linebreaks are removed.
Possible workarounds:
Well, it's probably one of the less intuitive things in FCKeditor.
When you upload image directly through the image dialog box, "QuickUpload" command is executed. The problem is that by default, "QuickUpload" command uploads files to "root directory" of the file browser. However, when you click "browse server" button, all three resource types: "Image", "Files", "Flash" point to subdirectories inside of that directory, that's why you're not able to see uploaded files in the root directory.
The solution is to edit editor/filemanager/connectors/php/config.php. Scroll down to the bottom of this file and find:
$Config['FileTypesPath']['Image'] = $Config['UserFilesPath'] . 'image/' ; $Config['FileTypesAbsolutePath']['Image'] = ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'image/' ; $Config['QuickUploadPath']['Image'] = $Config['UserFilesPath'] ; $Config['QuickUploadAbsolutePath']['Image']= $Config['UserFilesAbsolutePath'] ;
change it to something similar to:
$Config['FileTypesPath']['Image'] = $Config['UserFilesPath'] . 'image/' ; $Config['FileTypesAbsolutePath']['Image']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'image/' ; $Config['QuickUploadPath']['Image'] = $Config['FileTypesPath']['Image']; $Config['QuickUploadAbsolutePath']['Image']= $Config['FileTypesAbsolutePath']['Image'];
(apply the same change to each resource type, I've changed the last two lines)
The idea is that FileTypesPath and QuickUploadPath should point to the same path (same rule applies to FileTypesAbsolutePath and QuickUploadAbsolutePath). Note that now "QuickUploadPath" points to the subdirectory, so you'll be able to see only newly uploaded files with the QuickUpload command.
You can also change FileTypesPath (QuickUploadPath and so on) of each resource type so that it pointed to the "root directory" ($Config['UserFilesPath']), but this way all files will be uploaded to the same directory.
This error appears when trying to use the built-in file browser in FCKeditor and is caused by invalid $Config['UserFilesAbsolutePath'] in FCKeditor configuration file. The reason of such message may be tricky, it usually means that you didn't follow the instructions from README.txt strictly (see "How to enable the file browser" section).
Usually it is enough to check these two things:
Some modules like Typogrify or SmartyPants require special handling of HTML entities. For example, by default, FCKeditor will convert double quote (") to ". To disable processing HTML entities, add the following line to modules/fckeditor/fckeditor.config.js:
FCKConfig.ProcessHTMLEntities = false ;
It is also possible to disable processing HTML entities for selected FCKeditor profile, by adding this line in "Advanced Options" -> "Custom javascript configuration":
ProcessHTMLEntities = false ;
One of FCKeditors many features is its ability to detect the language of the user and load the appropriate language file. At first, it might tempting to leave out all language files except the one you're using when you upload FCKeditor. But when people using other languages are using that FCKeditor installation, FCKeditor will try to load a language file that isn't available and a Javascript error concerning FCKLang appears. Either upload all language files or disable the "Auto-detect language" setting in your FCKeditor profile.