Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
show node with comment form in lightbox - close lightbox if save clicked
» Comment form in lightbox - close lightbox if save clicked, or add wysiwyg js to lightmodal
Category:
task
» support
I would like it too.
If i render a custom node_comment form via iframe, after clicking on submit button, the page redirect start in the iframe. But if I launch lightbox via lightmodal, the wysiwyg's javascript doesn't load.
Everything would be nice by me:
1. To add wysiwyg's javascript in lightmodal iframe.
2. Close iframe lightbox after clicking submit button.
I'd be interested to know if anyone has gotten over this problem. I thought that maybe calling Drupal.attachBehaviors on #modalContainer once it had loaded the new content might go someway ... but alas no.
Comments
Comment #1
szantog commentedI would like it too.
If i render a custom node_comment form via iframe, after clicking on submit button, the page redirect start in the iframe. But if I launch lightbox via lightmodal, the wysiwyg's javascript doesn't load.
Everything would be nice by me:
1. To add wysiwyg's javascript in lightmodal iframe.
2. Close iframe lightbox after clicking submit button.
Comment #2
Anonymous (not verified) commentedHas anyone found a solution to this?
Comment #3
AndyThornton commentedI'd be interested to know if anyone has gotten over this problem. I thought that maybe calling Drupal.attachBehaviors on #modalContainer once it had loaded the new content might go someway ... but alas no.
Comment #4
Isostar commentedI am also interested in a solution. I also tried triggering Drupal.attachBehaviors, and indeed it doesn't work, but i don't understand why.
Anyone?
Comment #5
Yuri commentedAnyone got a solution? Seems a popular need and problem.
Comment #6
tebdilikiyafet commentedSam problem here.
Is there anyone who find the solution?