简体   繁体   中英

How to use Froala Editor in Aurelia with aurelia-cli

How to use Froala Editor in Aurelia by using aurelia-cli. I am using typescript syntax.

I had done au install aurelia-froala-editor It installed the editor. But I don't know how to import the editor to use in the HTML file.

Hey is there any other wysiwyg editors that I can use in aurelia? I have seen this link Using CKEditor with Aurelia but it is done in ESnext syntax but I am using typescript. Can any on help me with this?

几天前,Aurelia集成进行了更新,现在有Aurelia CLI的详细说明: https : //github.com/froala/aurelia-froala-editor#with-aurelia-cli

simply add in main.ts after the npm install:

 .aurelia.use.plugin(PLATFORM.moduleName('aurelia-froala-editor'), config => {
  config.options({
    toolbarButtons: ['bold', 'italic', 'underline', '|', 'fullscreen', 'undo', 'redo'],
  })
});

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM