Skip to content

Commit

Permalink
fixes #749 - p tag inserted in lists
Browse files Browse the repository at this point in the history
  • Loading branch information
Blake Callens committed Sep 18, 2015
1 parent 8e24c65 commit a5904b9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion public/js/angular/directives/wysiwyg.js
Expand Up @@ -66,7 +66,9 @@
}
}

scope.setElement('p');
if(!$document[0].queryCommandState('insertorderedlist') && !$document[0].queryCommandState('insertunorderedlist') && !scope.getSelection().length) {
scope.setElement('p');
}
return scope.availableElements[0];
};

Expand Down

0 comments on commit a5904b9

Please sign in to comment.