I am running the 5.3 version of Drupal that was provided by the fantastico installation. Things were running pretty smoothly until the time I installed FCKEditor. Now the content shows up totally unformatted in both the teaser version and the full page versions. When I do an 'Edit' then it shows up correctly in the FCKEditor window. Again when I submit or preview, the content loses all its formatting. I dont understand why this is happening.
One problem especially is that the images are not displayed at all in the displayed content. I had a look at the source within FCKEditor and I saw the img tags were all correct as I had entered. But when I view the source in the displayed page there are no IMG tags at all. Of course the a-href tags that surrounded the img are there in the source. I just had a look whether the nested img content was removed, but no, its just that all img content is being removed. Of course, somehow the breaks are also being removed since all the formatting is being lost.
Example Page -> http://prashu.com/content/2007/10/0012-focal-length-and-angle-view
How it should look -> http://blogs.prashu.com/photography/2007/10/focal-length-and-angle-of-vi...
I wonder if this is something specific to FCKEditor. Is there a bug or is there some configuration that I have missed out?
Thanks in Advance,
Prashanth
Comments
You probably havn't set
You probably havn't set fckeditor to use full html.
Just go to Admin > Input formats and set full html as the default. That should fix your problem.
I also suggest updating your Drupal to 5.7
I didnt want to set the
I didnt want to set the default as Full HTML because then that would mean that even the anon users have access to full HTML. If the anon user switches to the plain text editor then he can use all HTML. Is my understanding right?
I was having a look at some
I was having a look at some of the configurations and I dont know if this could be the problem and even if it is, then what do I do about it?
In the Input Formats, I have the basic list enabled for all users and the full set enabled for authenticated and admin users.
Also in the FCKEditor configurations, I have enabled drupalbasic toolbar for anon users and drupalfull toolbar for admin and authenticated users.
Now in the basic list of allowed html tags, the img tag is not present. Maybe not even the BR tag. I suspect that the fckeditor is using this basic filtered list intead of the full list, which I think it should be using, because I am logged in as an authenticated user.
Solved: Ah, beautiful. Got it figured now. When I am posting using the fckeditor, I go to the Input Formats dropdown area and choose Full HTML. Now the img tags are submitted and so are all the other formatting elements. I wonder if this cannot be done by default. I dont want to go and choose the input format everytime I make a post.
=-=
you can add the img tag or any other tags for that matter to the FILTERED HTML input format by editing said input format
_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )