mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-22 16:03:25 +00:00
Allow all rel values for event & post links in descriptions
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
9243be2448
commit
33bf8334fe
2 changed files with 8 additions and 1 deletions
|
@ -250,7 +250,9 @@ export default class EditorComponent extends Vue {
|
||||||
Mention.configure(MentionOptions),
|
Mention.configure(MentionOptions),
|
||||||
CustomImage,
|
CustomImage,
|
||||||
Underline,
|
Underline,
|
||||||
Link,
|
Link.configure({
|
||||||
|
HTMLAttributes: { target: "_blank", rel: "noopener noreferrer ugc" },
|
||||||
|
}),
|
||||||
CharacterCount.configure({
|
CharacterCount.configure({
|
||||||
limit: this.maxSize,
|
limit: this.maxSize,
|
||||||
}),
|
}),
|
||||||
|
|
|
@ -36,6 +36,11 @@ defmodule Mobilizon.Service.Formatter.DefaultScrubbler do
|
||||||
"ugc"
|
"ugc"
|
||||||
])
|
])
|
||||||
|
|
||||||
|
# Rel attributes are separated by spaces
|
||||||
|
Meta.allow_tag_with_this_attribute_values(:a, "rel", [
|
||||||
|
"noopener noreferrer ugc"
|
||||||
|
])
|
||||||
|
|
||||||
Meta.allow_tag_with_these_attributes(:a, ["name", "title", "target"])
|
Meta.allow_tag_with_these_attributes(:a, ["name", "title", "target"])
|
||||||
|
|
||||||
Meta.allow_tag_with_these_attributes(:abbr, ["title"])
|
Meta.allow_tag_with_these_attributes(:abbr, ["title"])
|
||||||
|
|
Loading…
Reference in a new issue