GrapesJS / grapesjs

Free and Open source Web Builder Framework. Next generation tool for building templates without coding
https://grapesjs.com
BSD 3-Clause "New" or "Revised" License
22.36k stars 4.05k forks source link

textNoElement not working #2631

Closed HansSchouten closed 4 years ago

HansSchouten commented 4 years ago

I am trying to update the textNoElement of the Style and TraitManager, but it does not seem to be working.

let editor = grapesjs.init({
  container: '#gjs',
  traitManager: {
    textNoElement: 'Hello Trait Manager'
  },
  styleManager: {
    textNoElement: 'Hello Style Manager',
  }
});

See the result here: https://jsfiddle.net/zrobkL80/5/

Also the default StyleManager sectors disappear, any suggestion on what I am doing wrong? I am using the the latest GrapesJS version (0.15.10).

artf commented 4 years ago

Those options were removed, you have to use the i18n module

HansSchouten commented 4 years ago

Ok thanks, I will look into it.