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.
Ckeditor module has hooks to add plugins; node embed should be using those.
With this patch no moving of files is needed to integrate with the ckeditor module.
Comment | File | Size | Author |
---|---|---|---|
#15 | node_embed-ckeditor_integration-2155433-15.patch | 6.93 KB | emanaton |
#14 | 2155433-node_embed_plugin-14.patch | 1.59 KB | Rob C |
#10 | 2155433-node_embed_plugin-9.patch | 1.57 KB | MrHaroldA |
Comments
Comment #1
hefox CreditAttribution: hefox commentedlightbox is a problem
Comment #2
SpadXIII CreditAttribution: SpadXIII commentedRe-rolled the patch against latest dev.
Downloaded the latest iframedialog (4.2.3) and included that in the patch. Also fixed the height-issue of the iframe.
Comment #3
SpadXIII CreditAttribution: SpadXIII commentedComment #4
ADrupalUser CreditAttribution: ADrupalUser commentedI got an error running patch from #2 against latest dev:
Hunk #1 FAILED at 21.
Maybe since I'm running CKEditor 4.3, not 4.2.
Comment #5
gmclelland CreditAttribution: gmclelland commentedhttp://ckeditor.com/addon/iframedialog lists the different versions of iframedialog to use. I don't think this module should include the plugin because Ckeditor requires specific versions for it to work.
I think it should simply include documentation on how to set this up. example...
For Ckeditor support choose the correct version of iframedialog at http://ckeditor.com/addon/iframedialog and place the iframedialog plugin into your sites libraries folder like sites/all/libraries/ckeditor/plugins/iframedialog
You can find the acceptable locations for plugins at ttp://docs.cksource.com/CKEditor_for_Drupal/Open_Source/Drupal_7/Plugins
The plugin should automatically be detected as indicated in http://docs.cksource.com/CKEditor_for_Drupal/Open_Source/Drupal_7/Plugins
Then I think this module should only include the plugin definition
I tested and it does work fine this way.
Comment #6
hefox CreditAttribution: hefox commentedThe current download instructions are not computable with easily adding this module to make file, because they want it added into an existing module, and I know of no way to specify that in a make file. Entire reason for making this issue.
Comment #7
MrHaroldA CreditAttribution: MrHaroldA commentedgmclelland is right: node embed should not include this javascript library, but depend on it using libaries. I'll look into it and hope to fix this asap.
Comment #8
MrHaroldA CreditAttribution: MrHaroldA commentedComment #10
MrHaroldA CreditAttribution: MrHaroldA commented... which doesn't work for plugins within libraries, so I added a hook_requirements() myselft to check for
DRUPAL_ROOT . ckeditor_library_path() . '/ckeditor/plugins/iframedialog/plugin.js'
.I've committed both hook_requirements() and hook_ckeditor_plugin() like in the attached patch.
http://cgit.drupalcode.org/node_embed/commit/?id=5a6ca97aa0eadc42dc3d049...
Comment #11
MrHaroldA CreditAttribution: MrHaroldA commentedComment #12
MrHaroldA CreditAttribution: MrHaroldA commentedComment #14
Rob C CreditAttribution: Rob C commentedJust adding the patch for the 1.1 release, no need to test.
Comment #15
emanaton CreditAttribution: emanaton commentedAdd re-roll of /node_embed-ckeditor_integration-2155433-2_0.patch for the 1.1 branch for the sake of backwards compatibility with legacy projects.
Comment #16
bibo CreditAttribution: bibo commented@hefox :
I had also trouble making it work with our site.make-file. I ended up with this version which works:
This assumes ckeditor is installed under sites/all/modules/contrib/ckeditor, and that I've copied the "NodeEmbed"-folder from node_embed-module to a temporary location relative to site.make/build-script in repo: "conf/NodeEmbed/".