Commit cc3edc53 authored by anon's avatar anon

Issue #2755403 by anon: Edit link don't remove data- attributes

parent 6c881645
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment