Code: Select all
[quote]test[/quote]
test
Code: Select all
[quote]test[/quote]
test
<br>
in CSS with something like that:Code: Select all
.ClassNameOfTheEditableElement blockquote+br
{
display: none;
}
thanks for reply. custom bbcode Is treated as an block elements? like align bbcode.JoshyPHP wrote: Sat Jun 17, 2017 12:14 pm It's intentional. Up to 1 blank line (= 2 line feeds) is ignored after BBCodes that are rendered as block elements.
If you CKEditor doesn't have a similar option, you may want to hide the superfluous<br>
in CSS with something like that:
Code: Select all
.ClassNameOfTheEditableElement blockquote+br { display: none; }
Code: Select all
[col]{TEXT1}|{TEXT2}[/col]
<table width="100%">
<tr>
<td style="vertical-align: top; width:50%; padding-right:10px;">{TEXT1}</td>
<td style="vertical-align: top; width:50%; padding-left:10px;">{TEXT2}</td>
</tr>
</table>
Code: Select all
[tabela]{TEXT}[/tabela]
<script language="Javascript">
var texto = '{TEXT}';
texto = texto.replace("\r\n","");
texto = texto.replace("<br>","");
texto = texto.replace(" ","");
var linha = new Array();
linha = texto.split('L=');
var table = '<div align="center"><TABLE width=70% cellpadding=1 cellspacing=1 border=0>';
for (var i=1; i<linha.length; i++)
{
table = table + '<TR>';
var coluna = new Array();
coluna = linha[i].split('&');
for (var j=0; j<coluna.length; j++)
{
if (i == 1)
{
table = table + '<TD align=center style="background: #FF8904; font-size:11px; color:black; font-family: Verdana,Arial, Helvetica, sans-serif;"><b>' + coluna[j].replace("amp;","") + '</b></TD>';
}
else
{
table = table + '<TD style="background: #878282; font-size:11px; color:white; font-family: Verdana,Arial, Helvetica, sans-serif;">' + coluna[j].replace("amp;","") + '</TD>';
}
}
table = table + '<TR>';
}
table = table + '</TABLE></div>';
document.write(table);
</script>
Code: Select all
[thumbnail={NUMBER}]{URL}[/thumbnail]
<a target="_blank" href="{URL}"><img src="{URL}" width="{NUMBER}px" heigth="{NUMBER}px"></a>
document.write
too. The last one I don't know either. My guess is it works.<br>
elements appearing in the output:Code: Select all
[quote=martec post_id=14779661 time=1499942629 user_id=1100965]
Why need three '\n' after block element to create one br if next tag too is block element?
[/quote]
Reply goes here, no br.
<br>
elements, users can leave a blank space between markup for readability without adding superfluous whitespace in the output and style authors margins can better control margins in CSS without having to account for extra <br>
s.Code: Select all
[foo #ignoreSurroundingWhitespace=false]{TEXT}[/foo]
Code: Select all
[quote]test[/quote]
[quote]test[/quote]
Code: Select all
[quote]test[/quote]
test