//EDITOR
//Support Table here
$standard_mycode['hoteditor_table_open']['regex'] = "#\[table\]#si";
$standard_mycode['hoteditor_table_open']['replacement'] = '<table align=center style="border-collapse: collapse;border-spacing: 0px;border: 1px solid #6CAFF7;background-color: #F4F4F4;width:98%;font-family:Verdana,Arial,Sans-Serif,Tahoma;font-size:12px;color: black;">';
$standard_mycode['hoteditor_table_close']['regex'] = "#\[\/table\]#si";
$standard_mycode['hoteditor_table_close']['replacement'] = '</table>';
$standard_mycode['hoteditor_tr_open']['regex'] = "#\[tr\]#si";
$standard_mycode['hoteditor_tr_open']['replacement'] = '<tr>';
$standard_mycode['hoteditor_tr_close']['regex'] = "#\[\/tr\]#si";
$standard_mycode['hoteditor_tr_close']['replacement'] = '</tr>';
$standard_mycode['hoteditor_td_open']['regex'] = "#\[td\]#si";
$standard_mycode['hoteditor_td_open']['replacement'] = '<td style="height:25px; border: 1px solid #6CAFF7">';
$standard_mycode['hoteditor_td_close']['regex'] = "#\[\/td\]#si";
$standard_mycode['hoteditor_td_close']['replacement'] = '</td>';
$standard_mycode['hoteditor_open']['regex'] = "#\[(sub|sup|strike|blockquote|b|i|u)\]#si";
$standard_mycode['hoteditor_open']['replacement'] = '<$1>';
$standard_mycode['hoteditor_close']['regex'] = "#\[\/(sub|sup|strike|blockquote|b|i|u)\]#si";
$standard_mycode['hoteditor_close']['replacement'] = '</$1>';
$standard_mycode['hoteditor_fontface']['regex'] = "#\[font=(.*?)\]#si";
$standard_mycode['hoteditor_fontface']['replacement'] = '<font face="$1">';
$standard_mycode['hoteditor_fontcolor']['regex'] = "#\[color=(.*?)\]#si";
$standard_mycode['hoteditor_fontcolor']['replacement'] = '<font color="$1">';
// $standard_mycode['color']['regex'] = "#\[color=([a-zA-Z]*|\#?[0-9a-fA-F]{6})](.*?)\[/color\]#si";
//$standard_mycode['color']['replacement'] = "<span style=\"color: $1;\">$2</span>";
//$standard_mycode['hoteditor_fontsize']['regex'] = "#\[size=(.*?)\]#si";
//$standard_mycode['hoteditor_fontsize']['replacement'] = '<font size="$1">';
$standard_mycode['size']['regex'] = "#\[size=(xx-small|x-small|small|medium|large|x-large|xx-large)\](.*?)\[/size\]#si";
$standard_mycode['size']['replacement'] = "<span style=\"font-size: $1;\">$2</span>";
$standard_mycode['size_int']['regex'] = "#\[size=([0-9\+\-]+?)\](.*?)\[/size\]#si";
$standard_mycode['size_int']['replacement'] = "<span style=\"font-size: $1em;\">$2</span>";
$standard_mycode['size_int_quot']['regex'] = "#\[size=\"([0-9\+\-]+?)\"\](.*?)\[/size\]#esi";
$standard_mycode['size_int_quot']['replacement'] = "\$this->mycode_handle_size(\"$1\", \"$2\")";
$standard_mycode['hoteditor_fontclose']['regex'] = "#\[\/(font|color|size)\]#si";
$standard_mycode['hoteditor_fontclose']['replacement'] = '</font>';
$standard_mycode['highlight_open']['regex'] = "#\[highlight=(.*?)\]#si";
$standard_mycode['highlight_open']['replacement'] = "<font style=\"background-color:$1\">";
$standard_mycode['highlight_close']['regex'] = "#\[\/highlight\]#si";
$standard_mycode['highlight_close']['replacement'] = "</font>";
$standard_mycode['hoteditor_align_open']['regex'] = "#\[(center|right|left|justify)\]#si";
$standard_mycode['hoteditor_align_open']['replacement'] = '<div align="$1">';
$standard_mycode['hoteditor_align_close']['regex'] = "#\[\/(center|right|left|justify)\]#si";
$standard_mycode['hoteditor_align_close']['replacement'] = '</div>';
$standard_mycode['hoteditor_flash']['regex'] = "#\[FLASH=(.*?),(.*?)\](.*?)\[\/FLASH\]#si";
$standard_mycode['hoteditor_flash']['replacement'] = '<object width="$1" height="$2"><param name="movie" value="$3"></param><param name="wmode" value="transparent"></param><embed src="$3" type="application/x-shockwave-flash" wmode="transparent" width="$1" height="$2"></embed></object>';
//EDITOR END