http://drupal.org/node/23620

I see (uninterpreted) HTML in registration emails when using fckeditor. Also in other fields. So HTML output from fckeditor is considered plain text. What to do?

Comments

ontwerpwerk’s picture

Status: Active » Postponed (maintainer needs more info)

what do you mean?

uninterpreted html, is that html in the editor that displays as <p> or is it html which is parsed bu the browser and displaying paragraphs and links and strong text?

alldirt’s picture

I mean: when I type in plain text in fckeditor, it returns HTML code. This code is shown to the user.

So I see tags (created by fckeditor) as if it were text. I see &nbsp; <p> <b> in the UI instead of bold text, a space and/or a paragraph as I would expect.

alldirt’s picture

for example in exclusion settings of fckedito"r:
Set minimum rows to 4. Edit exclude fields. Set minimum rows to 5. I see html tags in the UI.
Set minimum rows to 4. Edit admin/content/types/event. I see html tags in the UI.
Leave minimum rows at 5. Edit admin/user/settings. I see html tags in the e-mail that I receive with thunderbird.

Example, I see:

<p>Hello <u>how</u> are you <strong>today</strong> ?</p> <p>Confused!</p>

Instead of:

Hello how are you today

Confused!

ontwerpwerk’s picture

if you set minimum rows to 5 you will get a richt text editor on all textareas that have 5 rows or more defined... if you switch to 4 rows minimum more textareas will be replaced bij the rich text area (specifically, the smaller textareas)

A textarea with email in it should not have a rich text editor at the moment because drupal sends plain text emails by default (that's why the default exlusion settings also define some common email fields where a richt text editor is unwanted)
If you send an email with HTML tags in it, usually those tags get stripped out in the email, but it is not practical to add them in the first place.

You may also have clicked the source button -> in that case it's normal to see the generated html code.

So I guess what you're seeing is the default behaviour.

The event module by the way does not define a number of rows for the events, and therefore uses the formapi default of 4 rows. This means that with the default settings of FCKeditor the basicevent nodes will not get a rich text editor.

Any other weird behaviour might be in your fckeditor configuration or installation.

alldirt’s picture

OK:
- FCKeditor will not render expected results with standard form API fields (4 rows) nor with email fields?
- It is safer to leave minimum rows at 5

Right? Is that documented yet? I have spent some valuable time thinking I did something wrong and bothering you with my questions.

ontwerpwerk’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

it is explained in the module settings itself

priyankash’s picture

Did you actually found out what the problem was.I'm facing the same problem.

magicRoot’s picture

syamkumarvoleti’s picture

Version: 5.x-1.x-dev » master

I too faced this issue and after long research i came to know that, its because, I checked BBCODE option. This is translating html code to html plain text. So uncheck the BBCode option by going Configuration, Wysiwig Profiles, select to editor options , Buttons and Plugins uncheck the BBCode option. Hope it may help you ...!