mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 10:11:38 +09:00
Add empty paragraph after audio/video tags
This commit is contained in:
parent
e448c7a529
commit
67b39cf5d0
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue