Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Images (media markup) are not being inserted into CKEditor.
Steps I take:
- Place the mouse cursor in the article body
- Click the Media icon on the CKEditor toolbar
- Click "Library" and select an image
- Click "Submit"
- Leave the display formatter at Default, and click "Submit"
I am returned to the editing interface, but there is no image at the mouse cursor.
Comments
Comment #1
Devin Carlson CreditAttribution: Devin Carlson commentedWhat modules and libraries are you using for WYSIWYG support?
Comment #2
brylie CreditAttribution: brylie commentedI am using the following:
Comment #3
rozh CreditAttribution: rozh commentedTry to add "config.allowedContent = true;" string in Custom JavaScript configuration. There is "Advanced options" fieldset at the very bottom of settings page
[yoursite]/admin/config/content/ckeditor/edit/[Full] (replace [Full] with your CKEditor profile).
Comment #4
edubacco CreditAttribution: edubacco commentedI'm using the wysiwyg module with ckeditor 4.4.1 plugin and I have exactly the same issue, doing exactly the same steps described atop.
If i click to source button, i can see that it's insered just this text:
<!--MEDIA-WRAPPER-START-3--><!--MEDIA-WRAPPER-END-3-->
.This happens only with image file type, with image display enalbed and selected. Other displays (Download link, Generic file, etc.) work fine.
Comment #5
edubacco CreditAttribution: edubacco commentedComment #6
edubacco CreditAttribution: edubacco commentedSolution proposed in #3 works for me.
To add custom javascript I created a new module, as described here: http://fuseinteractive.ca/blog/wysiwyg-module-ckeditor-taming-beast .
This because the config.js file in ckeditor library is ignored by wysiwyg module.
Comment #7
mrmeech CreditAttribution: mrmeech commentedComment #8
lunk rat CreditAttribution: lunk rat commentedI'm on 7.x-1.4 and I am seeing a similar issue. In my case I can't click "submit" (clicking this does nothing at all). I can only click cancel.
I'm using media 7.x-1.4 and ckeditor 7.x-1.16
Comment #9
lunk rat CreditAttribution: lunk rat commentedmy issue was related to jquery_update and using my frontend theme for creating and editing content. https://www.drupal.org/node/2256389