FCKEditior messes up text when trying to upload an image...
| Project: | Wysiwyg |
| Version: | 6.x-2.0 |
| Component: | Editor - FCKeditor |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
I have serious issue with this editor, first I couldn't see the browse button when trying to upload an image although I have the IMCE and IMCE Wysiwyg API bridge installed, so I had to go into the editor settings and enable all the buttons manually in order for it to show up.
After it showed up, I tried to insert an image to the text, it seems like it was doing it but when I went to view the page after saving changes, nothing showed up although the image was uploaded to the server, also, once I chose all the check boxes in the preferences, when I went to edit mode to insert an image, all the text converted into code mode so I lost all the formatting and all of a sudden all the html tags are visible. In desperation, I tried to replace FCKeditor with TinyMCE, and so I did, but when I'm going to edit mode the text editor doesn't show up, on both Input modes ( filtered and full HTML, I was originally on Full HTML ).
I finally found what's causing the text distortion- the fact that I chose few check boxes in the editors setting, however, I still can't use other editors.
Any solutions?
Drupal 6.14 with all the latest updates and modules running on a linux server and on a Macintosh ( I imported the site to my local computer to see if I could solve the issue localy, but the same problem occurs here )

#1
Yes you need to manually enable the IMCE plugin (provided by IMCE Wysiwyg bridge) for the "Browse" button to show up. Once you've changed the button/plugin configuration a new empty toolbar is used to display only those you've enabled. That is by design.
Since I don't have any examples of the code you put in, what you saw on the viewed node, and what you saw when editing, I can only guess what happened.
If you enabled all the buttons/plugins for your input format, I assume that included the BBCode plugin. Don't enable it unless you have a corresponding input filter active on your input format! It will make the editor output all code as BBCode, making your
<img src="something">Something</img>tags look like[IMG src="something"]Something[/IMG]. IE, they won't be real XHTML tags, just text.Also, make sure your input format allows
<img>tags. If it doesn't, Drupal will simply strip out the images from the viewed node.About the editor not showing up in the select box, read the FAQ entry Q: How do I select a different installed editor? The box is disabled.. Wysiwyg module keeps the settings for your editor profile as active until you explicitly 'Remove' them. And if it suddenly can't find your editor library where it used to be, it will revert to use 'None' instead of throwing a bunch of errors at your users. If you had kept the FCKeditor library where it was and just added TinyMCE to the folder, you would see 'FCKeditor version.num' just like before. There's no harm in keeping the FCKeditor library there (unless you're desperate about disk space of course. ;) ). The files are never modified and you can simply remove and re-enable FCKeditor for an input format and you'll have a new 'empty' profile.
If you want to know exactly what the code generated by the editor looks like, use the 'Disable Rich-Text' link. What's there is what will be submitted to the server, and once submitted it is not touched by Wysiwyg module again. The input format and its settings/filters rule what happens when the node is actually viewed. (And your theme of course) ;)
#2
Thanks for the complete explanation, I found it useful. One thing though, as far as the text editor my problem is that the system won't let me switch to a different editor other than FCKeditor, I have TinyMCE installed and I can even configure it to be my editor in the input panel ,however, when switching to TinyMce, no editor will appear in the page when trying to edit it's text as if no editor is installed.
Thanks.
#3
Automatically closed -- issue fixed for 2 weeks with no activity.