Skip to content
Snippets Groups Projects
Commit cdeed4d2 authored by Timothy Steiner's avatar Timothy Steiner
Browse files

Fixing a bug that will hang the editor if anchor tags without href attributes are used.

parent 78b1b090
No related branches found
No related tags found
No related merge requests found
...@@ -47,6 +47,9 @@ ...@@ -47,6 +47,9 @@
for (var i = 0; i < links.length; i++) { for (var i = 0; i < links.length; i++) {
var link = links[i]; var link = links[i];
var href = link.getAttribute('href'); var href = link.getAttribute('href');
if (!href) {
continue;
}
// add icons to links via UNL template // add icons to links via UNL template
if (href.search(/^mailto:/) >= 0 ) { if (href.search(/^mailto:/) >= 0 ) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment