Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: wysiwyg tooltips bottons

nick89 free asked 5 years ago


How to remove some tooltips from the tooltips bar?


Bartosz Termena staff answered 5 years ago


Hi!

Use options Input, and in it translations option, which allows to overwrite default plugin translations. Below example of how to remove some tooltips from the tooltips bar:

<mdb-wysiwyg [options]="options" [value]="value"></mdb-wysiwyg>

TS:

  options = {
tooltips: true,
translations: {
  textElements: {
    paragraph: 'Paragraph',
    heading: 'Heading',
    preformatted: 'Pre-format'
  },
  textStyle: {
    bold: 'bold',
    //removed italic: 'italic',
    strikethrough: 'strikethrough',
    //removed underline: 'underline',
    color: 'color'
  },
  textAlign: {
    justifyLeft: 'justifyLeft',
    justifyCenter: 'justifyCenter',
    justifyRight: 'justifyRight'
    // removed justifyFull: 'justifyFull'
  },
  imageAndLink: {
    createLink: 'createLink',
    insertImage: 'insertImage',
    linkURLPlaceholder: 'linkURLPlaceholder',
    imageURLPlaceholder: 'imageURLPlaceholder'
  },
  lists: {
    insertOrderedList: 'insertOrderedList'
  },
  showHTML: 'showHTML'
},
colors: {
  red: '#d50000',
  green: '#64dd17',
  yellow: '#fff176',
  blue: '#03a9f4',
  purple: '#6a1b9a',
  white: '#fff',
  black: '#000'
}

};

Hope it helps!

Best, Bartosz.



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: 8.1.1
  • Device: Mac
  • Browser: Chrome
  • OS: OS
  • Provided sample code: No
  • Provided link: No