mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 16:51:40 +09:00
Add empty paragraph after <video> tag in CKEditor
This commit is contained in:
parent
e2124ed1c0
commit
ad293fa4d0
1 changed files with 4 additions and 1 deletions
|
|
@ -384,7 +384,10 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
if (html !== '' && data.settings.autoinsertPosition === 'paragraph') {
|
if (html !== '' && data.settings.autoinsertPosition === 'paragraph') {
|
||||||
html = '<p>' + html + '</p>\n';
|
html = '<p>' + html + '</p>\n';
|
||||||
|
if (html.match(/<video /)) {
|
||||||
|
html += '<p> </p>\n';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (html === '') {
|
if (html === '') {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue