Merge branch 'master' of github.com:Ocelot-Social-Community/Ocelot-Social into 4785-test-refactor-email-templates

This commit is contained in:
Wolfgang Huß 2022-06-23 09:35:30 +02:00
commit 15e69a47ae

View File

@ -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) {