Hello.

Can someone confirm this bug? Starting with a clean D7 install (core 7.9), I added the CKEditor library and version 7.x-1.6 of this module. I have the standard "Filtered HTML" text format to which I've added "

" as an allowed HTML tag. My CKEditor "Advanced" profile is associated with the "Filtered HTML" format and the "Use Drupal text format filters" option is enabled. I created a new page and in CKEditor's source view, I added the following code:

<p>normal</p>
<p style="color:red;">test</p>
<div>div test</div>

When I switch out of source view, the second paragraph is still red. If I save and view, the style attribute is stripped (as a result of the "Filtered HTML" text format being applied), as expected. If I click to edit the page again, the second paragraph is still red in CKEditor, both in WYSIWYG mode and source mode, and the div tags around the third line have not been stripped out. It's my understanding that the text format filter should be applied in WYSIWYG mode, meaning that the second paragraph would not be red and the div tags would be replaced with p tags. I've confirmed that this works as expected in version 1.4 of this module.

Please let me know if you need any more details.

Thanks!

Comments

knaffles’s picture

Bump...just wondering if anyone else is seeing this same behavior?

dczepierga’s picture

Status: Active » Postponed (maintainer needs more info)

@knaffles, coud u try to udate to last DEV version and then check does it work or not?

Greetings

knaffles’s picture

Hmm...nope, I'm still seeing the same behavior in dev. Are you not able to recreate this?

mcapenos’s picture

Issue tags: +ckeditor font color

I have the same problem with "Filtered HTML" in D7.
In 'edit' mode I have text such as RED BOX and BLUE BOX where the text shows as red and blue.
But when I 'save' my changes and return to 'view' mode all my text is simply black.
(if i change to "Full HTML" then my text colors display correctly in view and edit modes)

For example... in Filtered-HTML 'view' mode I see...
shown in the red box ... then use the molded rubber plug shown in the blue box to connect

But the 'source' shows...
shown in the red box ... then use the molded rubber plug shown in the blue box to connect

How can I get CKEditor to permit colored font selections?