Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure external links before dispatching textformatter configuring event #1432

Merged
merged 1 commit into from
May 14, 2018

Conversation

clarkwinkelmann
Copy link
Member

This way extensions can override the link attributes.

I'm not sure why this was done in the opposite order until now. That part of the code seems to be 3 years old. It seems a lot more logical for me to configure the links before dispatching the event, so that extension have an opportunity to override it.

Use case include extensions that might want to remove set target or rel to another value. It's impossible right now as the template is always overridden after the event.

This way extensions can override the link attributes
@tobyzerner tobyzerner merged commit 09938f8 into flarum:master May 14, 2018
@tobyzerner
Copy link
Contributor

🤦‍♂️

@luceos
Copy link
Member

luceos commented May 15, 2018

😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants