Skip to content

Commit

Permalink
Fix inserting single-link template in ProseMirror (#512)
Browse files Browse the repository at this point in the history
* Fix inserting a template with a single anchor tag on ProseMirror (used by HubSpot).
* ProseMirror strips out the anchor tag under certain conditions, so we need to use a workaround to keep it.
* Add a unit test for the specific bug.
  • Loading branch information
ghinda committed Sep 12, 2023
1 parent 71159fa commit 5df677f
Show file tree
Hide file tree
Showing 5 changed files with 327 additions and 185 deletions.
2 changes: 1 addition & 1 deletion cypress/e2e/prosemirror/prosemirror.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<meta charset="utf-8">
<link rel=stylesheet href="https://prosemirror.net/css/editor.css">
<link rel="stylesheet" href="https://prosemirror.net/css/editor.css">
</head>
<body>
<div id="editor"></div>
Expand Down

0 comments on commit 5df677f

Please sign in to comment.