Open pedjas opened 9 years ago
I am still struggling with this issue. Can anybody give me some hint?
@pedjas As far as I know, jBBCode does not have support for unary tags yet. @jbowens Probably this one should be labeled as #bug, shouldn't it?
Until support for unary tags is added, why not use the positive qualities of the closed-tag format to your benefit?
[includeimg=22 style=left border=1]This is my alt text![/includeimg]
Hi,
i want to creade BBCode which looks like this:
Point is, instead of image url, i need image id so I can buildimage name (finally, I should read image info from database) and provide proper HTML markup to show that image.
I made more or less everything that I needed except, i cannot use this BBCode without closing tag
[/insertimg]
. i want to get rid of that closing tag. I read all I could and searched for answer but could not get it.Basicaly, now I have to put tag in this form:
[insertimg imgid=22 style=left border=1 alt="alttext"][/insertimg]
but i want it to be simpler, this form:[insertimg imgid=22 style=left border=1 alt="alttext"]
Here is my code: