Commit c691d30
committed
fix(links): preserve relative URLs in link editor (#359)
Use getAttribute('href') instead of .href property to preserve
relative URLs when editing existing links.
The .href property returns absolute URL with hostname, while
getAttribute preserves the original relative path.
Also removed debug console.log statement from focus() method (#324).
Fixes #359
Fixes #3241 parent 774a97d commit c691d30
File tree
1 file changed
+4
-3
lines changed- projects/angular-editor/src/lib/ae-toolbar
1 file changed
+4
-3
lines changedLines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
263 | | - | |
264 | | - | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
265 | 267 | | |
266 | 268 | | |
267 | 269 | | |
| |||
380 | 382 | | |
381 | 383 | | |
382 | 384 | | |
383 | | - | |
384 | 385 | | |
385 | 386 | | |
0 commit comments