Commit 03c5522d authored by Andrea Giammarchi's avatar Andrea Giammarchi

Issue 7357 - Disable filter table rich text paste

parent d3e6490f
......@@ -239,6 +239,16 @@ class IOFilterList extends IOElement
dataset.dir = sort.asc ? "asc" : "desc";
}
onpaste(event)
{
event.preventDefault();
document.execCommand(
"insertText",
false,
event.clipboardData.getData("text/plain")
);
}
onkeydown(event)
{
const {key} = event;
......@@ -559,6 +569,7 @@ function getRow(filter, i)
class="content"
contenteditable="${!this.disabled}"
title="${filter.text}"
onpaste="${this}"
onkeydown="${this}"
onkeyup="${this}"
onfocus="${this}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment