Akshay

Akshay

  • 2k
  • 71
  • 9.4k

how to add custom button in summernote editor

Feb 2 2021 6:59 AM
hello all,
 
I'm using angulat 10 in that I'm facing problem with summernote following code in...
 
html.
  1. <textarea id="summernote1" class="summernote"></textarea>  
  2. <textarea id="summernote2" class="summernote"></textarea>  
  3. <textarea id="summernote3" class="summernote"></textarea>  
component.ts
  1. // Summer Note  
  2. $(".summernote").summernote({  
  3. height: 200,  
  4. toolbar: [  
  5. ['style', ['bold''italic''underline''clear']]  
  6. ]  
  7. });  
Que.1.how to add Custom button in summernote toolbar and click event call(ex.(click)="function(content)") one function and open popup.
 
Que.2.how to find id (ex.summernote1) in click textarea.
 
Thanking you...

Answers (9)