[Question] how to defined textNoElement value after grapesjs.init
Question
Hi, I try to define the values for textNoElement after I was initialized a grapesjs. but it not reflected in grapesjs UI. can anyone please help me
var editor = grapesjs.init({
container: '#editor-c',
height: '100%',
showDevices: 0,
showOffsets: 1,
avoidInlineStyle: 1,
avoidDefaults: 1,
clearStyles: 1,
exportWrapper: 1,
allowScripts: 1,
plugins: plugins,
canvas: {
styles: [addStyles],
scripts: []
},
assetManager: {
},
storageManager: {},
styleManager: {
clearProperties: 1,
},
});
editor.StyleManager.textNoElement = 'something new';
but its shows

Answers (2)
Do this: editor.StyleManager.getConfig().textNoElement = '...'
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 #873
[Need help]: After using urlLoad from storage manager impossible to change component with Traits
Hello, I am save template to db and after loading from db impossible to change component with Traits. Video example on countdown: https://y...
Issue #507
uploadFile being called twice on drop file?
I have an editor initialized as so: If I add an image to the canvas and try to upload a new image by dragging it into the drop area in the...
Issue #998
[BUG] Asset Manager sends empty request when uploading image
Description: GrapesJS editor is initialized in an editor.html file as follows: localhost:9001 is a local IIS server running PHP5. The conte...
Issue #1655
[Question] isComponent() is not invoked
I'm trying to make a plugin, but I have a problem with isComponent. My component does not call it whene the editor loading the code, this i...
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.