allow iframes

This commit is contained in:
j 2013-10-24 16:39:26 +00:00
parent 0873d27f92
commit e6eb5ea1c7
2 changed files with 21 additions and 0 deletions

View file

@ -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%;
}
/* /*
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------

View file

@ -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,