Hi,

I'm using the latest ckeditor version for Drupal7 (7.x-1.13) and am running into an issue when trying to edit pages.

Issue:
I can upload and add images using the filebrowser link from the image-add popup, and inserting images goes fine. Saving the post is FINE. The images show up when viewing the post/page as an anonymous user. When going back to edit the post, the image disappears but ONLY in the editor (the source HTML for the IMG tag is there, attribute values added by CKEditor are there, and it is fully valid HTML).

So, this is a usability issue for our organization because you cannot modify images. I suppose as a work around, one could delete the HTML from the plain-text view and then re-add using the widget and already-uploaded file, but that seems very clunky and I don't think that's how this should work anyhow.

I'm using CKEditor with the "Full HTML" input type, I'm not adding a drupal filter to strip out HTML, I've checked that the filter shows up as disabled for Full HTML on this page: "/admin/config/content/ckeditor/edit/Full" under security -- also, the other filters are not installed (WYSIWYG FILTER, HTMLTIDY, HTMLAWED, HTML PURIFIER).

I've also added "config.allowedContent = true" param to disable any ACF filters.

Also, the img tag isn't getting filtered in any way, so I don't think it's a filter issue.

Lastly, this appears to also apply to the iframe tag (stays in source after save, doesn't show up in editor on edit). BUT the table builder works fine -- it shows up in editor on page edit.

Any thoughts?

I see there is a related (closed) issue from 7.x1.6 https://drupal.org/node/1318196
I posted there too, but decided it was probably inappropriate since I'm using a different version.

I couldn't find anything else that matched my issue (most people have the filters stripping content out completely, not just not showing up in editor). Maybe this is how it's supposed to work but it seems like CKEditor should be able to do this, so I'm hoping it's a drupal config issue...

Thanks in advance!

Let me know if you need any other info...

-C

Comments

robynjoyce’s picture

I'm not clear if this is quite the same thing, but I found that CKEditor removes embedded images if the native Image button was removed from the toolbar (in my case, because we are using the IMCE plugin).

Full description here: https://drupal.org/comment/8362901#comment-8362901

boutrosa’s picture

I am having the same issue. all filters are disabled.
I wrote a post about it ( https://drupal.org/node/2235933 ) with no feedback so far.