1
0
mirror of https://github.com/e107inc/e107.git synced 2025-10-11 04:54:26 +02:00

Media-Manager and TinyMce connectivity

This commit is contained in:
CaMer0n
2012-04-30 20:35:59 +00:00
parent 2a50dc6177
commit 972b7fa401
5 changed files with 29 additions and 14 deletions

View File

@@ -83,9 +83,10 @@
// New Image Handler // verified
rep(/<img(?:\s*)?(?:style="(.*)")?\s?(?:src="(\S*)")(?:\s*)?(?:alt="(\S*)")?(?:\s*)?(?:width="([\d]*)")?\s*(?:height="([\d]*)")?(?:\s*)?\/>/gi,"[img style=$1;width:$4px;height:$5px]$2[/img]" )
// rep(/<img(?:\s*)?(?:style="(.*)")?\s?(?:src="([\S ]*)")(?:\s*)?(?:alt="(\S*)")?(?:\s*)?(?:width="([\d]*)")?\s*(?:height="([\d]*)")?(?:\s*)?\/>/gi,"[img style=$1;width:$4px;height:$5px]$2[/img]" )
rep(/<img(?:\s*)?(?:style="(.*)")?\s?(?:src="([^;"]*)")(?:\s*)?(?:width="([\d]*)")?\s*(?:height="([\d]*)")?(?:\s*)?(?:alt="(\S*)")? (?:\s*)?\/>/gi,"[img style=$1;width:$4px;height:$5px]$2[/img]" );
rep(/;width:px;height:px/gi, ""); // Img cleanup.
rep(/<img\s*?src=\"(.*?)\".*?\/>/gi,"[img]$1[/img]");
// rep(/<img\s*?src=\"(.*?)\".*?\/>/gi,"[img]$1[/img]");
rep(/<blockquote[^>]*>/gi,"[blockquote]");
rep(/<\/blockquote>/gi,"[/blockquote]");