You may follow this
Create - Edit.js in
layouts/v7/modules/YOUR_MODULE_NAME/resources/
Add this in Edit.js
Vtiger_Edit_Js("YOUR_MODULE_NAME_Edit_Js",{},{
registerEventForCkEditor : function(){
var form = this.getForm();
var noteContentElement = form.find('[name="FIELD_NAME"]');
if(noteContentElement.length > 0){
var ckEditorInstance = new Vtiger_CkEditor_Js();
ckEditorInstance.loadCkEditor(noteContentElement);
}
},
registerBasicEvents: function (container) {
this._super(container);
},
registerEvents : function() {
this._super();
this.registerEventForCkEditor();
}
})
Cretae Record.php in
modules/YOUR_MODULE_NAME/models
add this in Record.php
<?php class ISP_Record_Model extends Vtiger_Record_Model { function get($key) { $value = parent::get($key); if ($key === 'FIELD_NAME') { return decode_html($value); } return $value; } } ?>
Replace -
FIELD_NAME with actual fieldname
YOUR_MODULE_NAME with actual module name.
Save Edit.js,Record.php