Ashwani Pandey
Ashwani Pandey

Reputation: 1

How to disable emoticons in froala editor

I have implemented the froala editor and created the froala id in dynamic because of need.This is working fine but I want to disable the emoticon in this editor.

$('#froala'+key).froalaEditor({


    imageUploadParam: 'image_upload',    
    imageUploadURL: EnvironmentConfig[env].DESCRIPTION_IMAGE_URL+'froala/setimage',
    imageUploadParams: {
       oemCode: oemCode
  },
   height:300
}); 

Can anyone suggest me the best way instead of removing the emoticon js file.

Upvotes: 0

Views: 930

Answers (1)

Yush0
Yush0

Reputation: 1656

You can override the defaults for the features available in the toolbar. Then just dont add the 'emoticons'. Example:

$('#froalaEditor').froalaEditor({
   toolbarButtons: ['bold', 'italic', 'underline', 'strikeThrough', 'subscript', 'superscript', 'fontFamily', 'fontSize']
}); 

An example with all the features can be found here: https://www.froala.com/wysiwyg-editor/examples/full-featured

Upvotes: 1

Related Questions