import image sizes from html source
This commit is contained in:
parent
08fc3e91b6
commit
43da1429cc
1 changed files with 8 additions and 0 deletions
|
@ -24,6 +24,10 @@ function html2bbcode($s) {
|
||||||
'/\<u\>(.*?)\<\/u\>/is',
|
'/\<u\>(.*?)\<\/u\>/is',
|
||||||
'/\<ul\>(.*?)\<\/ul\>/is',
|
'/\<ul\>(.*?)\<\/ul\>/is',
|
||||||
'/\<li\>(.*?)\<\/li\>/is',
|
'/\<li\>(.*?)\<\/li\>/is',
|
||||||
|
'/\<img(.*?)width: *([0-9]+)(.*?)height: *([0-9]+)(.*?)src=\"(.*?)\" (.*?)\>/is',
|
||||||
|
'/\<img(.*?)height: *([0-9]+)(.*?)width: *([0-9]+)(.*?)src=\"(.*?)\" (.*?)\>/is',
|
||||||
|
'/\<img(.*?)src=\"(.*?)\"(.*?)width: *([0-9]+)(.*?)height: *([0-9]+)(.*?)\>/is',
|
||||||
|
'/\<img(.*?)src=\"(.*?)\"(.*?)height: *([0-9]+)(.*?)width: *([0-9]+)(.*?)\>/is',
|
||||||
'/\<img(.*?) src=\"(.*?)\" (.*?)\>/is',
|
'/\<img(.*?) src=\"(.*?)\" (.*?)\>/is',
|
||||||
'/\<div(.*?)\>(.*?)\<\/div\>/is',
|
'/\<div(.*?)\>(.*?)\<\/div\>/is',
|
||||||
'/\<br(.*?)\>/is',
|
'/\<br(.*?)\>/is',
|
||||||
|
@ -50,6 +54,10 @@ function html2bbcode($s) {
|
||||||
'[u]$1[/u]',
|
'[u]$1[/u]',
|
||||||
'[list]$1[/list]',
|
'[list]$1[/list]',
|
||||||
'[*]$1',
|
'[*]$1',
|
||||||
|
'[img=$2x$4]$6[/img]',
|
||||||
|
'[img=$4x$2]$6[/img]',
|
||||||
|
'[img=$4x$6]$2[/img]',
|
||||||
|
'[img=$6x$4]$2[/img]',
|
||||||
'[img]$2[/img]',
|
'[img]$2[/img]',
|
||||||
'$2',
|
'$2',
|
||||||
"\n",
|
"\n",
|
||||||
|
|
Loading…
Reference in a new issue