allow iframes
This commit is contained in:
parent
0873d27f92
commit
e6eb5ea1c7
2 changed files with 21 additions and 0 deletions
|
@ -971,6 +971,11 @@ OxEditableElement
|
|||
max-width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
.OxValue iframe, .OxEditableContent iframe {
|
||||
border: none;
|
||||
overflow: hidden;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
/*
|
||||
--------------------------------------------------------------------------------
|
||||
|
|
|
@ -13,6 +13,8 @@
|
|||
'table', 'tbody', 'td', 'tfoot', 'th', 'thead', 'tr',
|
||||
// other
|
||||
'a', 'br', 'img', 'figure', 'figcaption',
|
||||
//
|
||||
'iframe',
|
||||
// special
|
||||
'rtl', '[]'
|
||||
],
|
||||
|
@ -43,6 +45,20 @@
|
|||
'<img src="{1}">'
|
||||
]
|
||||
],
|
||||
iframe: [
|
||||
[
|
||||
/<iframe [^<>]*?width="(\d+)" height="(\d+)"[^<>]*?src="((\/|https?:\/\/).+?)".*?>/gi,
|
||||
'<iframe width="{1}" height="{2}" src="{3}">'
|
||||
],
|
||||
[
|
||||
/<iframe [^<>]*?src="((\/|https?:\/\/).+?)".*?>/gi,
|
||||
'<iframe src="{1}">'
|
||||
],
|
||||
[
|
||||
/<\/iframe>/gi,
|
||||
'</iframe>'
|
||||
]
|
||||
],
|
||||
rtl: [
|
||||
[
|
||||
/<rtl>/gi,
|
||||
|
|
Loading…
Reference in a new issue