monad98 / ng2-lazy-trumbowyg

Angular 2 Component for lazy loading of Trumbowyg wysiwyg editor
https://plnkr.co/edit/dirpKmLNalUmz0mpdrk7?p=preview
MIT License
12 stars 8 forks source link

Property 'forRoot' does not exist on type 'typeof TrumbowygModule'. #17

Closed Metsuryu closed 7 years ago

Metsuryu commented 7 years ago

I'm working on an Angular 4 CLI project. In imports using just TrumbowygModule works fine, but trying to use it with plugins like this:

TrumbowygModule.forRoot({plugins: ['colors', 'noembed', 'preformatted', 'pasteimage', 'upload'], version: '2.8.0'})

Gives the error: Property 'forRoot' does not exist on type 'typeof TrumbowygModule'.

monad98 commented 7 years ago

What version of this module are you using?

monad98 commented 7 years ago

check this live app. It's using ng2-lazy-trumbowyg version 2.4.2 https://plnkr.co/edit/dirpKmLNalUmz0mpdrk7?p=preview

Metsuryu commented 7 years ago

"ng2-lazy-trumbowyg": "^2.3.3"

monad98 commented 7 years ago

@Metsuryu You can use plug-ins and version config after V.2.4.1

Metsuryu commented 7 years ago

Thank you, it works now, you can close the issue.