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%;
|
max-width: 100%;
|
||||||
height: auto;
|
height: auto;
|
||||||
}
|
}
|
||||||
|
.OxValue iframe, .OxEditableContent iframe {
|
||||||
|
border: none;
|
||||||
|
overflow: hidden;
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
|
@ -13,6 +13,8 @@
|
||||||
'table', 'tbody', 'td', 'tfoot', 'th', 'thead', 'tr',
|
'table', 'tbody', 'td', 'tfoot', 'th', 'thead', 'tr',
|
||||||
// other
|
// other
|
||||||
'a', 'br', 'img', 'figure', 'figcaption',
|
'a', 'br', 'img', 'figure', 'figcaption',
|
||||||
|
//
|
||||||
|
'iframe',
|
||||||
// special
|
// special
|
||||||
'rtl', '[]'
|
'rtl', '[]'
|
||||||
],
|
],
|
||||||
|
@ -43,6 +45,20 @@
|
||||||
'<img src="{1}">'
|
'<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: [
|
||||||
[
|
[
|
||||||
/<rtl>/gi,
|
/<rtl>/gi,
|
||||||
|
|
Loading…
Add table
Reference in a new issue