Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/mautic.corals.io/plugins/GrapesJsBuilderBundle/Demo/helloWorld/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/mautic.corals.io/plugins/GrapesJsBuilderBundle/Demo/helloWorld/helloWorld.js
import 'grapesjs/dist/css/grapes.min.css';
import grapesJS from 'grapesjs';
import grapesJSMJML from 'grapesjs-mjml';

const editor = grapesJS.init({
  fromElement: 1,
  container: '#gjs',
  avoidInlineStyle: false,
  plugins: [grapesJSMJML],
  pluginsOpts: {
    [grapesJSMJML]: {
      // The font imports are included on HTML <head/> when fonts are used on the template
      fonts: {
        Montserrat: 'https://fonts.googleapis.com/css?family=Montserrat',
        'Open Sans': 'https://fonts.googleapis.com/css?family=Open+Sans',
      },
    },
  },
});

// add custom fonts options on editor's font list
editor.on('load', () => {
  const styleManager = editor.StyleManager;
  const fontProperty = styleManager.getProperty('typography', 'font-family');

  const list = [];
  // empty list
  fontProperty.set('list', list);

  // custom list
  list.push(fontProperty.addOption({ value: 'Montserrat, sans-serif', name: 'Montserrat' }));
  list.push(fontProperty.addOption({ value: 'Open Sans, sans-serif', name: 'Open Sans' }));
  fontProperty.set('list', list);

  styleManager.render();
});

Spamworldpro Mini