Skip to content
This repository has been archived by the owner on Mar 11, 2020. It is now read-only.

Toolbar - how do you remove link,image,video #44

Closed
john-lieb opened this issue Feb 23, 2018 · 3 comments
Closed

Toolbar - how do you remove link,image,video #44

john-lieb opened this issue Feb 23, 2018 · 3 comments

Comments

@john-lieb
Copy link

Hi I am having trouble removing the link,image and video buttons

@component({
selector: 'app-notes',
templateUrl: './notes.component.html',
styleUrls: ['./notes.component.scss']
})
export class NotesComponent implements OnInit {
editorValue: string;
notes: any;
modalRef: NgbModalRef;

public editorConfig = {
theme: 'bubble',
placeholder: 'Add a note',
modules: {
  toolbar: [
        ['bold', 'italic', 'underline', 'strike'],        // toggled buttons
        ['blockquote', 'code-block'],
        [{ 'header': 1 }, { 'header': 2 }],               // custom button values
        [{ 'list': 'ordered' }, { 'list': 'bullet' }],
        [{ 'script': 'sub' }, { 'script': 'super' }],      // superscript/subscript
        [{ 'indent': '-1' }, { 'indent': '+1' }],          // outdent/indent
        [{ 'direction': 'rtl' }],                         // text direction
        [{ 'size': ['small', false, 'large', 'huge'] }],  // custom dropdown
        [{ 'header': [1, 2, 3, 4, 5, 6, false] }],
        [{ 'color': [] }, { 'background': [] }],          // dropdown with defaults from theme
        [{ 'font': [] }],
        [{ 'align': [] }],
        ['clean']
        //['link', 'image','video']                                  
  ],
}

};

html...
<div class="notes"> <div class="modal-header"> <span> <i class="fa fa-4x fa-pencil-square-o"></i> </span> </div> <div class="modal-body"> <quill-editor [options]="editorConfig" [(ngModel)]="editorValue" (onEditorCreated)="setFocus($event)"> </quill-editor> </div> <div class="modal-footer"> <button type="button" (click)="onNotesSave(editorValue)" class="btn btn-primary notes__btn">Save</button> </div> </div>
image

Any help would be appreciated thank you.

@reenezden
Copy link

Hello, have you been able to fix this?

@john-lieb
Copy link
Author

Hi @reenezden unfortunately not. I created a new angular 5 project. Started getting this error... ERROR in ./node_modules/ngx-quill-editor/index.ts
Module build failed: Error: /node_modules/ngx-quill-editor/index.ts is not part of the compilation output. Please check the other error messages for details.

I think its linked to this #31.

@john-lieb
Copy link
Author

I ended up using https://github.com/KillerCodeMonkey/ngx-quill which works with Angular 5 and the toolbar configuration is almost the same.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants