I have installed CKEditor and enabled it. It looks as though it is working and when I edit something it displays in the textarea as I would like it to display. When I click on the preview button, however, the formatting is gone and I see the HTML tags (only using <p> and <em> thus far but they display as text rather than modifying the format). The same happens when I go to display from a view on a page. I hope this is not a CSS thing as I still expect users to be able to format individual words or even letters simply by selecting the format in the editor menu.
It is probably some simple configuration issue, but I am still too much of a Drupal newbie to find it.
Any suggestions? Thanks in advance.
Comments
_
If using the 'filtered html' input format, make sure all the tags are in the allowed tags list. Another option is to use the 'full html' input format.
Changed Input format - Still displaying tags
I changed the Input Format to Full HTML. But the display page and the Preview are still showing the tags as data. I also turned off every Input Format configuration detail. But the result still displays the HTML tags of bracket-p-bracket and bracket-em-bracket and their corresponding close tags when you look at the content display.
When I look at the View source (in Firefox browser), I get the following:
Any more suggestions?
HTML Tags displaying in text - CKEditor or Drupal Display issue?
I have the simplest test for CKEditor
I go to create content for the type in question and in the text area I enter 3 words. It looks fine in the edit field but when I save it and it shows what was saved, I see the open and close paragraph tags (p) - just as though I were looking at the update of the field in Source mode. If I select the middle word and select italics, the display in the edit field shows as italicized. If I save the text, and look at the content in the display (or click the preview button in content edit) I now see the contents of the field with the open and closing p tags surrounding the entire text and em tag surrounding the middle word. In other words, it is displaying the raw html source and not interpreting the html.
I have CKEditor module in folder drupal/sites/all/modules and the CKEditor iteslf in drupal/sites/all/modules/ckeditor/ckeditor/ckeditor. I do not have WYSIWYG Module installed.
CKEditor is enabled and the users have access CKeditor permission as well as CRUD permissions to the content.
I have tried all the various css settings for CKEditor and that does not make any difference (I am currently set to CKEditor default). I have deleted the default CKEditor profile and have only the advanced profile (I initially had default and advanced and the problem was the same). Security filters in CKEditor configuration are all unchecked and "Always run security filters for CKEditor" is selected.
I am have tested this using 2 themes (Garland and Pixture). The problem remains the same.
Input Format is set to full HTML.
The only way I seem to be able to avoid this issue is to use Source mode and hand delete any HTML or use the plain text editor mode.
I am thinking this may be more of a situation of how Drupal displays the content rather than with CKEditor because in the end of the day I do want HTML embedded in my code.
Is there some place where one tells the system whether to display HTML as text or to execute the embedded HTML?
Thanks in advance for any assistance.
_
This is virtually always a problem with the input format-- check the actual configuration of the 'full html' input format and verify the individual filters that are applied to that input format.
Embedded HTML displays as text when no CKEditor
I tried 2 experiments:
I tried entering the text with the plain text editor. If I have embedded HTML, when I view the results, I get the tags displaying as text (even tried only with the P tag - still displayed).
I then tried embedding some HTML in a Text Field (as opposed to the Text Area). Again the HTML displayed as text rather than modifying the display (used em tag on middle word).
re. Configuring Full HTML.
1. when I click on Input Format under Site Configuration, the radio button has Full HTML as its default.
2. When I click on Configure for Full HTML, there are 3 tabs (Edit, Configure, Rearrange)
2.a. Edit Name = Full HTML, All Roles are checked (albeit greyed out checkboxes - cannot change here), All Filters are unchecked, Formatting guidelines: message: No guidelines available.
2.b. Configure Tab (for Full HTML): I get the message: "If you cannot find the settings for a certain filter, make sure you have enabled it on the view tab first (2.a. above).
No settings are available."
2.c. Rearrange apparently could have some values for Name and Weight, but there are no values set.
Do I need to have at least some Filters on the Full HTML edit page checked?
Thanks for your help.
Bill
I found it. In CCK, not in CKEditor
I found it. The problem was in CCK and not CKEditor.
There is a Text Processing parameter in the field configuration that was set to plain text.
Thanks for your help though. You got me to persevere and keep looking.
Bill
_
ack... I should have asked if you were talking about a field, lol. At least you got it figure out. ;-)
I admire your systematic approach to troubleshooting.
CKEditor worked fine in Page and Story, but showed dreaded HTML tags in my Content Profile text areas, made with CCK.
Thanks to your findings, I fixed my problem in five minutes. Bravo Bill.
:)
ahahahah!!! thank you!!!!
Same Problem, Not solved on uneditable fields
I am having this same problem and I can fix the problem on fields I have created. However, when I look at other fields (body etc) I see that I do not have options to configure them so the problem persists.
Something is overriding somewhere I think.
Any thoughts? or Can I edit these other fields somewhere?
Thanks
Happy Drupaling :-)
The Site Lady
thesitelady.com
Take it back
I fixed it in the other fields and it "unfixed" itself on the next page creation.
Happy Drupaling :-)
The Site Lady
thesitelady.com
Found that problem, now moving on to other problem!
I found my error!
It actually was an old fashioned editor junk error.
I am revamping a community site and so I was short cutting some of the code writing by some copy paste. Well the clipboard was picking up junk like WYSIWYG editors do sometimes.
I discovered the error by accident after working with trying to hide the tags with configs etc I noticed an open bracket on the first line of one my content nodes. Upon viewing the source I discovered poorly formatted HTML and extra characters. After removing this the HTML code itself did not output to browser.
However, my installation of Drupal completely ignores HTML tags for formatting. I think I have everything set right, but I can't format anything.
Happy Drupaling :-)
The Site Lady
thesitelady.com
HTML being rendered as plain text in Drupal 7 - User Error
Okay I am a new user of Drupal 7 and had this same issue, but only for one display type (Article Teaser).
I had enabled a custom Article Template and that caused my article to be rendered as plain HTML. I went back to the default and all was well again.
Home » Administration » Structure » Content types » Article » Template
Check 'Configure Text Format'
Always worth checking the relevant Text format. Make sure the 'Display any HTML as plain text' option is not checked, & if in doubt, look at different built-in Text formats like 'Full HTML' by way of example...
Text formats are here:-
Home » Administration » Configuration » Content authoring » Text formats
Solved - Permission problem
In my case the user did not have permission to use any of the text formats.