Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
linkit
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
linkit
Commits
cc3edc53
Commit
cc3edc53
authored
8 years ago
by
Emil Stjerneman
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#2755403
by anon: Edit link don't remove data- attributes
parent
6c881645
No related branches found
No related tags found
2 merge requests
!78
Issue #3472672: Fix the issues reported by PHP_CodeSniffer
,
!59
Revert "Issue #2900766 by rubendello: Not all autocomplete values are...
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
linkit.module
+2
-0
2 additions, 0 deletions
linkit.module
with
2 additions
and
0 deletions
linkit.module
+
2
−
0
View file @
cc3edc53
...
...
@@ -94,6 +94,8 @@ function linkit_form_editor_link_dialog_validate(array &$form, FormStateInterfac
$href
=
$form_state
->
getValue
([
'attributes'
,
'href'
]);
$uri_parts
=
parse_url
(
$href
);
if
(
$uri_parts
[
'scheme'
]
!==
'entity'
)
{
$form_state
->
setValue
([
'attributes'
,
'data-entity-type'
],
''
);
$form_state
->
setValue
([
'attributes'
,
'data-entity-uuid'
],
''
);
return
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment