Work Item Comments are Allowing Image Pasting but not Saving
Best Answer
-
Justin_Workman Cireson Support Super IT Monkey ✭✭✭✭✭@Andrew_Reiter - Here's a small bit of js that should prevent pasting images on incidents.
app.custom.formTasks.add('Incident', null, function (formObj, viewModel) { formObj.boundReady(function(){ var editor = $('#commentBoxEditor').data("kendoEditor"); editor.bind("paste", function(e) { if ((/^<img src="data:image/).test(e.html)) { e.html = ""; console.log('no pasting images'); } }) }); });
It could be duplicated for the other Work Item types as well.5
Answers
It could be duplicated for the other Work Item types as well.