Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When integrating the media browser into ckeditor using the CKEditor module instead of the WYSIWYG module, the browser settings that are set at admin/config/media/browser aren't respected. So, for example, if I configure only the "Upload" and "Library" plugins to be enabled, all tabs show up when I launch the browser from CKEditor. It seems that support for those settings were only built into the wysiwyg module support. Attached patch adds support for the CKEditor module.
Comment | File | Size | Author |
---|---|---|---|
#13 | media_ckeditor-module-browser-tabs-2333855-13.patch | 1.77 KB | a.henry |
#7 | media_wysiwyg-ckeditor-module-browser-tabs-2333855-7.patch | 2.07 KB | izmeez |
media_wysiwyg-ckeditor_module_browser_tabs-0.patch | 2.07 KB | drclaw | |
Comments
Comment #1
dobie_gillis CreditAttribution: dobie_gillis commentedI applied this patch to media_wysiwyg version 7.x-2.0-alpha3+98-dev (in Panopoly 1.13), using CKEditor 7.x-1.16. It didn't seem to have any effect, so I resorted to just hiding the tabs I didn't want with CSS.
Comment #2
BrightBoldThis worked for me, although it must require some cache clearing. When I first applied it it didn't fix it, and I followed dobie_gillis' advice and hid the extra tabs with CSS. But, when I came back to this issue a few days later to follow up, I now see that the tabs aren't present in the markup any more. So I'm thinking I failed to clear the cache after applying the patch and that's why the change didn't show up right away.
Comment #3
Zythyr CreditAttribution: Zythyr commentedClearing the cache still didn't fix the issue. I cleared both Drupal's cache and browser's cache.
I am using Ckeditor 7.x-1.16 and Media 7.x-2.0-alpha4+11-dev
Comment #4
Zythyr CreditAttribution: Zythyr commentedIt seems that the Ckeditor module is the issue.
I tested Ckeditor v4.4.6 using the Wysiwyg module, and that fixed the issue.
Comment #5
steinmb CreditAttribution: steinmb commentedPatch no longer apply and needs to be rerolled and retested
Comment #6
izmeez CreditAttribution: izmeez commentedLooks like this issue still exists with ckeditor module and media.
Comment #7
izmeez CreditAttribution: izmeez commentedPatch re-rolled against current 7.x-2.x applies and works as expected. May need to empty caches when applying.
Comment #8
aleksijohansson CreditAttribution: aleksijohansson commentedPatch #7 seems to work fine! I had restricted WYSIWYG to only allow image file type and it was still showing all types of files. Now it's only showing images.
Comment #9
chiebert CreditAttribution: chiebert commented+1 from me - the patch applies to 7.x-2.0-alpha4+37-dev (2015-Apr-24) and works as designed.
Comment #10
matthiasm11 CreditAttribution: matthiasm11 at Randstad Digital commented+1 for patch #7.
Comment #11
Dave ReidWe are deprecating the ckeditor integration and moving it to a separate module.
Comment #12
Dave ReidComment #13
a.henry CreditAttribution: a.henry commentedPatch re-rolled against current 7.x-2.x for media_ckeditor module.
Applies and works as expected. May need to empty caches when applying.
Comment #14
MediaFormat CreditAttribution: MediaFormat commentedWorks with Media 7.x-2.x-dev
Comment #15
mkhamash CreditAttribution: mkhamash as a volunteer commentedAlso confirm this works with latest Media 7.x-2.x-dev, the tabs (Enabled browser plugins) works fine.
Though it would be nice to consider adding an allowed file extensions variable separate from the system wide "Default allowed file extensions" in "File settings" to limit uploaded files types since the current option "Allowed types in WYSIWYG" does not actually limit what can be uploaded, unless we are going to move the whole file type/extension thing #2533352: Rethink allowed extensions on field instance.
Comment #16
seanBPatch works! Thnx!
The allowed file extensions for upload looks like a minor issue. I like the approach mentioned in https://www.drupal.org/node/2533352. The original issue seems fixed so I think it could be committed.
Comment #17
seanBI updated the existing patch to fix the extension issue in https://www.drupal.org/node/2533326.
Comment #18
danyalejandro CreditAttribution: danyalejandro commentedRequesting patch #13 to be commited, this is a major issue since the global tabs configuration is not being respected.
Comment #19
joseph.olstadCKEditor integration has been moved to the Media CKEditor module
Patch 13 is actually for the media_ckeditor module now at http://www.drupal.org/project/media_ckeditor
however I did patch media with the first part of patch 13 to 'media' media_wysiwyg.js
http://cgit.drupalcode.org/media/commit/?id=7bdd246d6b3dece5ad4c19f571e0...
TODO: see patch 13 for media_ckeditor
Comment #20
joseph.olstadCan someone please become maintainer of media_ckeditor and please commit this patch?
Comment #22
joseph.olstadfixed in 7.x-2.x dev branch