Uncaught TypeError: $(...)[0].setSelectionRange is not a function
at onInlineEditDblClick (inlineEditing.js:183:39)
at HTMLTableCellElement.<anonymous> (inlineEditing.js:219:9)
at HTMLTableCellElement.dispatch (sugar_grp1_jquery.js?v=282ESmkcqJ5vm6vlQ_hxfw:2:43064)
at v.handle (sugar_grp1_jquery.js?v=282ESmkcqJ5vm6vlQ_hxfw:2:41048)
at HTMLTableCellElement.c (rocket-loader.min.js:1:9405)
Make description field editable (content for campaigns module) in vardefs.php to display the pencil icon at modules/Campaigns/vardefs.php by setting 'inline_edit' => true,
‘setSelectionRange is not a function’ error, comment line no 183
id ‘content’ is the culprit causing the issue since there might be multiple html tags with this id. so made the change to get the textarea with this id from ‘EditView’ form in ‘getInputValue’ function at line no. 444 & 445