Can not use space while editing drop down menu in block manager
Question
hello @artf I have applied a drop down menu in block manager the code is given below
bm.add("dropdown-menu-in-navbar",
{
label: '<div class="gjs-block-label">Dropdown Menu</div>',
tab: "1",
category: "Others",
removable: true,
draggable: true,
droppable: true,
highlightable: true,
copyable: true,
editable: true,
allowSpacing: true,
type: "default",
attributes: {
class: 'fa fa-ellipsis-h',
title: 'Insert Dynamic Menu of Navigation'
},
content: '<div data-gjs-type="default" class="dropdown"> <span class="dropdown-text">Dropdown </span> <div data-gjs-type="default" data-gjs-editable="true" class="dropdown-menu"> <a href="index.html"> Dropdowm 1 </a> </div> </div>'
}
);
It works fine but whenever I try to change the dropdown lists it doesn't applies space. It takes all letters but space is ignored by the editor please help
Answers (3)
Try looking at the DOM to see what your drop-down item in the canvas to see what html elements are created. Does that output look like the html you expect?
@verdverm yes in DOM the output looks exactly same as I needed see this video...https://drive.google.com/file/d/1bgb6QibnPPU6qGbLDudOD9xeMGtmvsnG/view
Not able to reproduce with your code, create a reproducible demo, please. BTW properties like removable, draggable, droppable are part of the component definition, not blocks...
Related Questions and Answers
Continue research with similar issue discussions.
Issue #1817
Change HTML content while block is render in editor
Hello @artf I have one block into block manager like As per above script inside the block, i want to add dynamic HTML content while this bl...
Issue #3207
Form is not submitting
I am trying to create as custom block. But the form is not submitting when i use components inside content. I am able to get all the form d...
Issue #1369
[BUG] Class of a block doesn't always show in the classes section
Hello everyone, I have added many custom blocks and gave the same css class to all the images in those blocks. Let's call it for now 'image...
Issue #1661
I've created html table and cannot drag new elements to table cells
Hello. if I create html table with next block of code, everything works, I'm able to drop a Quote, for example, to any cell: But next code...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.