Where to find the block id ?

Created on 14 June 2023, about 1 year ago
Updated 7 July 2023, 12 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"
        },
    
Production build 0.69.0 2024