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:
@@ -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]");
|
||||
|
Reference in New Issue
Block a user