diff --git a/webapp/components/Editor/nodes/Hashtag.js b/webapp/components/Editor/nodes/Hashtag.js index d591c3e30..0c616984a 100644 --- a/webapp/components/Editor/nodes/Hashtag.js +++ b/webapp/components/Editor/nodes/Hashtag.js @@ -8,7 +8,7 @@ export default class Hashtag extends TipTapMention { get defaultOptions() { return { matcher: { - char: '#', + char: '=', allowSpaces: false, startOfLine: false, }, diff --git a/webapp/components/Editor/plugins/eventHandler.js b/webapp/components/Editor/plugins/eventHandler.js index 053c54152..24f4d3f35 100644 --- a/webapp/components/Editor/plugins/eventHandler.js +++ b/webapp/components/Editor/plugins/eventHandler.js @@ -11,7 +11,10 @@ export default class EventHandler extends Extension { new Plugin({ props: { transformPastedText(text) { - // remove hashtag from d.tube url + /* 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, '/') }