[Question] Can't edit Text on Block
Question
I wrote a plugin that defines a new Block for a simple headline.
editor = grapesjs.init({
container: '#gjs',
plugins: ['RJBlocks'],
)};
export default grapesjs.plugins.add('RJBlocks', (editor, options) => {
// Text is not editable for some reason
bm.add('headline', {
label: 'Headline',
activeOnRender: 1,
content: {
type: 'text',
content: '<table width="100%" border="0" cellspacing="0" cellpadding="0" style="width:100%;min-width:100%">' +
'<tr>' +
'<td width="15" style="width:15px"> </td>' +
'<td align="left" style="color:#000001;font-family:Arial, sans-serif;font-size:24px;font-weight:bold;line-height:30px">Text Here</td>' +
'<td width="15" style="width:15px"> </td>' +
'</tr>' +
'</table>',
},
});
})
However when I drag and drop this block to the canvas I get the placeholder text Text Here and I am not able to edit it.
What am I missing ?
Answers (2)
I get the placeholder text Text Here
??? no, it's not a placeholder text, this is what you wrote inside your table...
I am not able to edit it
It works here https://jsfiddle.net/7oeh2man/
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 #384
Create and Edit Template into Database
This is my code to Create a new template and insert the inline html with style into the database : I am able to insert the template-data in...
Issue #859
[QUESTIONS] Change canvas style
Hi there, I have some question about canvas style, in this case i have config like this. By default i use css with name builder-desktop.css...
Issue #1025
How add new traits to custom block
grapesjs.plugins.add('CustomBlocks', function(editor, options) { options = options || {}; TraitsToComponent(); addHTMLCodeComponent(); addH...
Issue #461
RTE toolbar appears in the top panel
Hi, We recently updated GrapesJS from 0.8.8 to 0.12.15. After the upgrade, I found that the rte-toolbar appears in the top panel for some r...
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.