Where to find the block id ?

Created on 14 June 2023, over 1 year ago
Updated 21 September 2024, about 2 months ago

Hello,

I use Drupal core 9.5.9 with ckeditor 4.

In /admin/config/content/formats/manage/basic_html I have checked the box "Embed Block - Allows to place blocks into content".
In the same page, I don't see any button to add block.

In my content, I want to add a custom block (block/3 in admin).

I have added '{block:3}' in my source code but I get an error message.

How to know the id of custom block ?

Thank you

💬 Support request
Status

Active

Component

Documentation

Created by

🇫🇷France selinav

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @selinav
  • 🇬🇧United Kingdom Frosty29

    Not sure exactly of the question but I just used this module for the first time and had to work out the steps.
    I enabled the filter option "Embed Block" in my text format/editor.
    My block was from a View - I "placed" this in "Auto hidden blocks".
    In that blocks display I used Devel in the drop down to look at Variable under Load and see this:
    [settings:protected] => Array [id] => views_block:last_updated-block_latest_update

    And that is what to use in the text area {block:views_block:last_updated-block_latest_update}
    Works a treat!

  • 🇨🇦Canada joseph.olstad

    It's pretty simple, this module is nearly useless without this TOTALLY AWESOME patch that has not been merged.

    Here it is:
    Embed Block CKEditor Enhancement Needs work

  • 🇨🇦Canada joseph.olstad

    I'm contemplating forking this project so that we don't have to use the patch and can work on ckeditor5 compatibility and expect a tagged release.

  • 🇨🇦Canada joseph.olstad
        "drupal/embed_block": {
          "3225938 - Added CKEDITOR plugin functionality": "https://git.drupalcode.org/project/embed_block/-/merge_requests/2.diff"
        },
    
  • 🇫🇷France lazzyvn paris

    I think I will create new module base on this module, that support all type of block, (custom module block, block from view, content block). It can call ajax for preview block. I can add custom library (in case of using custom js), customize more html class, attribute...

  • 🇨🇦Canada joseph.olstad

    +1 merci bcp @lazzyvn
    J'ai hâte pour ça !

    Svp partager le nom ou un lien vers ce nouveau module

  • 🇫🇷France lazzyvn paris

    @joseph.olstad
    tu peux trouver d'ici CkEditor 5 insert block
    Ce n'est pas encore parfait. Si tu as le temps, peux-tu l'améliorer ?

  • 🇨🇦Canada joseph.olstad

    Oui certainement!

Production build 0.71.5 2024