mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
replace hashtag in d.tube url
This commit is contained in:
parent
d9f33ded17
commit
771f11ee90
@ -11,6 +11,10 @@ export default class EventHandler extends Extension {
|
||||
new Plugin({
|
||||
props: {
|
||||
transformPastedText(text) {
|
||||
// remove hashtag from d.tube url
|
||||
if ( text.search(/d.tube/) > 0) {
|
||||
text = text.replace(/\/#!\//gim, '/')
|
||||
}
|
||||
return text.trim()
|
||||
},
|
||||
transformPastedHTML(html) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user