-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding custom buttons #73
Comments
This is not currently possible. Have a look at #18 |
@DMarinsa yes now it's possible, by providing specific config:
check an example here - https://github.com/stevermeister/ngx-wig/pull/95/files#diff-c12d74ca8cc105ab72f388747ca666c8R63 |
@stevermeister please how can i set Edit HTML button to enable editMode initially, i did this :
but editor initialize ctx.editMode with false |
@wafae1234 I think for you case do you want to do a PR for it? |
@stevermeister what do you mean by PR ? Where can i put @input(), excuse my ignorance i m new to angular and the CUSTOM_LIBRARY_BUTTONS value is provided in the module ;
|
I meant a Pull Request to change the library itself. I don't think that there is a possibility to do so in the current setup. @bampakoa what do you think? |
For the PR, i m afraid that i don't have time to do so, but i'll see. Please, let me know if there is a solution, thank you |
@stevermeister @wafae1234 the only way to access the import { Component, OnInit, ViewChild } from '@angular/core';
import { NgxWigComponent } from 'ngx-wig';
export class AppComponent implements OnInit {
@ViewChild(NgxWigComponent) editor: NgxWigComponent;
ngOnInit() {
this.editor.editMode = true;
}
} |
Is it possible to add custom buttons to the editor bar?
The text was updated successfully, but these errors were encountered: