Hi,
Thank you for providing path of functions.php finally, I made the updation and customise it with the below code.
setup: function(editor) {
editor.on('init', function() {
removeLinks();
});
editor.on('change keyup paste', function() {
removeLinks();
});
function removeLinks() {
var content = editor.getContent();
content = content.replace(/<a[^>]*>(.*?)<\/a>/gi, "$1");
editor.setContent(content);
}
}
Also "advlist autolink lists link image charmap preview anchor", Code should be replace with this code: "advlist lists image charmap preview",
Its work well and remove all the existing links also it resolve the copy paste link strategy too which user can bypass.