diff --git a/webapp/components/Editor/plugins/eventHandler.js b/webapp/components/Editor/plugins/eventHandler.js index 4e2448d23..1d823491a 100644 --- a/webapp/components/Editor/plugins/eventHandler.js +++ b/webapp/components/Editor/plugins/eventHandler.js @@ -11,6 +11,13 @@ export default class EventHandler extends Extension { new Plugin({ props: { transformPastedText(text) { + /* remove hashtag from d.tube url + * hashtags in url general are not a problem because the following link work like expected: + * http://www.nsosp.org/de/Quanten-Fluss-Theorie/index.php#OM:FrQFT:Home:Inhalt + */ + if (text.search(/d.tube/) > 0) { + text = text.replace(/\/#!\//gim, '/') + } return text.trim() }, transformPastedHTML(html) {