From 1ae7cb8a8e66573b9241bd45e0787935aa62bfe0 Mon Sep 17 00:00:00 2001 From: CaMer0n Date: Sun, 12 Aug 2012 08:10:19 +0000 Subject: [PATCH] html-to-bbcode fixes and WYSIWYG enabled on default install (switchable in real-time) --- e107_core/xml/default_install.xml | 2 +- e107_handlers/bbcode_handler.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/e107_core/xml/default_install.xml b/e107_core/xml/default_install.xml index 0735df474..6316fb84f 100644 --- a/e107_core/xml/default_install.xml +++ b/e107_core/xml/default_install.xml @@ -238,7 +238,7 @@ City, State, Country 3 cookie 0 - 0 + 1 1 http://www.e107.org/themeupdate.php http://www.e107.org/themeupdate.php diff --git a/e107_handlers/bbcode_handler.php b/e107_handlers/bbcode_handler.php index 0eebbbc01..38ac18c04 100644 --- a/e107_handlers/bbcode_handler.php +++ b/e107_handlers/bbcode_handler.php @@ -559,11 +559,11 @@ class e_bbcode $text = preg_replace("/(.*?)<\/a>/i","[link=$1]$2[/link]",$text); $text = preg_replace('/
([\s\S]*)<\/div>/i',"[$1]$2[/$1]",$text); // verified - $text = preg_replace('/
([\s\S]*)<\/div>/i',"[$1]$2[/$1]",$text); // left / right / center + $text = preg_replace('/
([\s\S]*)<\/div>/i',"[$1]$2[/$1]",$text); // left / right / center $text = preg_replace('//i',"[img style=width:$4px;height:$5px;$1]$2[/img]",$text ); $text = preg_replace('//i',"[img style=width:$4px;height:$5px;$1]$2[/img]",$text ); // $text = preg_replace('/(.*?)<\/span>/i',"[color=$1]$2[/color]",$text); - $text = preg_replace('/(.*?)<\/span>/i',"[u]$1[/u]",$text); + $text = preg_replace('//i', "[table $1]",$text); $text = preg_replace('/