Commit cc3edc53 authored by Emil Stjerneman's avatar Emil Stjerneman
Browse files

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

parent 6c881645
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;
  }