In line 21 of video_filter/editors/ckeditor/plugin.js we use window.showModalDialog. Support for this function was dropped in Chrome 37, so this module fails in any updated version of Chrome with an "Uncaught TypeError: undefined is not a function" error.
Comments
Comment #1
tamonten1 commentedAnd.. how to fix ?
Comment #2
errand commented+1 how to fix
Comment #3
WS_vanessa commented+1 how to fix ?
Comment #4
bacchus101 commented+1 I'm in the same boat.
Comment #5
Endlessline commentedI got uber lazy but this works, you will need to further the UI box per your needs. (ckeditor/plugin.js)
Comment #6
Cristian.Andrei commentedComment #5 fixed it for me so I went about creating a patch for this issue. Thanks !
Comment #7
Cristian.Andrei commentedupdating issue status
Comment #8
yannickooThanks for creating that patch but I think we should respect the coding standards. To indent lines with 4 spaces is really crazy.
Comment #9
Koen.Pasman commentedThe patch in #6 replaces the old showModalDialog with a standard CKEditor modal, which functions but not as nice as the old modal. A proper fix to get the old modal working for Chrome 37+ (and Firefox 39+) is still needed.
Until that time I rearranged the fix in #6 and added the autoplay and align elements to it. It also checks if showModalDialog is defined, so it can use it when supported.
Comment #10
mollux commentedI reworked the path in #9, and added a specific callback for the instructions, so the can also be used in the ckeditor dialog.
It uses an html element with an iframe (ughhhh) to load the instructions, as depending on http://ckeditor.com/addon/iframedialog would be overhead.
Comment #11
mollux commentedI made the width an height fields optional, and removed the complex nested command calls from previous patches.
The behavior is now the same as the original popup.
The menu cache should be cleared to see the embedded instructions, otherwise you get a page not found error in the ckeditor dialog.
Maybe the popup should be removed completely in favor of the ckeditor dialog?
Comment #12
wotsoft commentedConfirm that #11 fixes this issue for my sites.
Comment #13
Anonymous (not verified) commented#11 works fine.
Thanks for the great work!
Comment #14
estoyausente#11 Work fine for me too. Thanks!
I think that is very important bug, commit it, plz.
Comment #15
BarisW commentedPatch works fine, please commit.
Comment #16
ryan_courtnage commentedAttached patch #11 backported to 6.x-3.0 for those who want it.
Comment #17
Jamesap commentedWe use this module in our distribution, it is not part of the core distribution but used as a dependency for a module using the apps module that does not support applying patches.
Please commit this patch.
https://www.drupal.org/node/2385087
Best regards
Comment #18
askibinski commentedPatch at #11 also works for D6 version.
Comment #19
killes@www.drop.org commentedI have tested this patch and confirm it works. Please commit and roll a new release.
Comment #20
damienmckennaThis should be added to the next release.
Comment #21
plazik commented#11 works for me too but I think all labels should be translatable.
Comment #22
socialnicheguru commentedadded related link:
https://www.drupal.org/node/1580354
Comment #23
grom358 commentedCombined the autoplay fix from https://www.drupal.org/node/1430680#comment-6221378 since that fix also needs to be applied to the modal dialog code as well.
Comment #24
grom358 commentedComment #25
emmonsaz commented#23 (along with https://www.drupal.org/node/2488242#comment-9979941) worked for my Drupal 7 install. Thanks!
Comment #26
Jamesap commentedAre we getting a new release soon, including these patches?
Comment #27
damienmckenna@Jamesap: It would help if you (and others) could review the patch.
Comment #28
Anonymous (not verified) commented@DamienMcKenna: how many reviews do you need?
#11 has been reviewed many times but no commit ever since.
Comment #29
yannickooI think we should clean up the patch in order to follow the Drupal coding standards.
Comment #30
damienmckenna@joep.hendrix: The most recent patch was not updated to RTBC status, and now yannickoo has stated it (most likely the JS additions) needs to be updated to the Drupal coding standards, so it's not quite there yet.
Comment #31
loopduplicate commentedHi All. I updated the patch in 23 so that it hopefully conforms to the coding standards.
Cheers,
LoopDuplicate
Comment #32
chris burge commented#31 corrects the issue. Thanks!
Comment #33
schifazl commented#31 seems good!
Comment #34
maico de jongpatch #31 applied and everything works fine now in Chrome
Comment #35
estoyausenteIt's working for me too. Change to RBTC, it's very important patch I think.
Comment #37
blackdog commentedOk, I have commited the patch in #31. I'm sorry this has taken so long, I'm not that active anymore, and it seems the maintainers I've added aren't either.
Comment #38
blackdog commentedComment #39
alan d. commentedPS: In case you update and still get the error, flush your Chrome cache. :)