How to use the froala-editor.DefineIcon function in froala-editor

To help you get started, we’ve selected a few froala-editor examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github froala / angular-froala-wysiwyg / demo / src / app / app.component.ts View on Github external
ngOnInit () {
    FroalaEditor.DefineIcon('alert', { SVG_KEY: 'help' });
    FroalaEditor.RegisterCommand('alert', {
      title: 'Hello',
      focus: false,
      undo: false,
      refreshAfterCallback: false,

      callback: function () {
        alert('Hello!');
      }
    });
  }

froala-editor

The next generation Javascript WYSIWYG HTML rich text editor made by devs for devs. High performance and modern design make it easy to use for developers and loved by users.

https://www.froala.com/wysiwy…
Latest version published 2 months ago

Package Health Score

52 / 100
Full package analysis