Add empty paragraph after audio/video tags

This commit is contained in:
Kijin Sung 2020-07-08 19:18:37 +09:00
parent e448c7a529
commit 67b39cf5d0

View file

@ -16,6 +16,9 @@
// Insert content at cursor position.
var insertContent = function(instance, content) {
if (content.match(/<(audio|video)\b[^>]+>(<\/p>)?/)) {
content = content + '<p><br></p>';
}
if (ranges.length) {
var range = ranges[0];
range.collapse(false);