[Question]: Block content attributes (ngModel in my case) forced to lowercase
Question
I am trying to use angular directive.
On any of the block content,
for example
bm.add('radio-block',{ label:'Basic Form Element', category: c.category, content: '<input type="text" name="username" id="username" ngModel> ' })
on export ngModel will be ngmodel
So what will be possible solution so that it display ngModel on export Code
I have also look for the issue#1591
But Could not find solution.
Answers (2)
ngModel is converted in ngmodel by the browser (HTML5 doesn't accept uppercase for attributes) You can skip the parser by passing a component object
bm.add('radio-block', {
label:'Basic Form Element',
content: {
tagName: 'input',
attributes: { type: 'text', ngModel: true }
}
})
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Related Questions and Answers
Continue research with similar issue discussions.
Issue #854
Table block
I don't see any basic blocks that you can create a table. Even if I do the block, it is impossible to edit the text. Block example with thi...
Issue #1471
[Question] Blockmanager and Image
Hi! I use this code to add a new block: blockManager.add("image", { label: 'Image', category: 'Basic', attributes: { class: "gjs-fonts gjs-...
Issue #1220
[Question] Manipulate elements into a selected block in command
How can I manipulate elements into a block content? For example: My block: My component: Command:
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.