David,
Why are there no bbcode buttons for listopen, listitem and listclose
[list] [*] [/list]
When entered manually they get parsed correctly.
(php):
-
if (action == "listopen") {
-
var liststartBBCode = "[list]";
-
revisedMessage = currentMessage+liststartBBCode;
-
document.gbookForm.gbtext.value=revisedMessage;
-
document.gbookForm.gbtext.focus();
-
return;
-
}
-
if (action == "listclose") {
-
var listendBBCode = "[/list]";
-
revisedMessage = currentMessage+listendBBCode;
-
document.gbookForm.gbtext.value=revisedMessage;
-
document.gbookForm.gbtext.focus();
-
return;
-
}
-
if (action == "listitem") {
-
var thisItem = prompt("<?php echo JTEXT::_('Enter the new list element. A group of list itmes must always be surrounded by an open-list and a close-list element'); ?>", "");
-
var itemBBCode = "[*]"+thisItem;
-
revisedMessage = currentMessage+itemBBCode;
-
document.gbookForm.gbtext.value=revisedMessage;
-
document.gbookForm.gbtext.focus();
-
return;
-
}