Issue #1761Opened January 29, 2019by Ramkumar-Murugesan0 reactions

[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 image

Answers (2)

artfFebruary 6, 20190 reactions

Do this: editor.StyleManager.getConfig().textNoElement = '...'

lock[bot]February 6, 20200 reactions

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.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.