Update of /cvsroot/xoops/xoops-current/html/include
In directory usw-pr-cvs1:/tmp/cvs-serv22785
Modified Files:
xoopscodes.php
Log Message:
no message
Index: xoopscodes.php
===================================================================
RCS file: /cvsroot/xoops/xoops-current/html/include/xoopscodes.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** xoopscodes.php 17 Jul 2002 07:39:34 -0000 1.2
--- xoopscodes.php 17 Sep 2002 15:17:59 -0000 1.3
***************
*** 84,87 ****
--- 84,97 ----
}
+ function xoopsCodeCode(id){
+ var text = prompt("<?php echo _ENTERCode;?>", "");
+ var dom = xoopsGetElementById(id);
+ if ( text != null && text != "" ) {
+ var result = "[code]" + text + "[/code]";
+ dom.value += result;
+ }
+ dom.focus();
+ }
+
function xoopsCodeText(id){
var textareaDom = xoopsGetElementById(id);
***************
*** 179,183 ****
*/
function xoopsCodeTarea($textarea_id, $cols=50, $rows=10){
! echo "<input type='button' value='URL' onclick='xoopsCodeUrl(\"$textarea_id\");' /><input type='button' value='IMG' onclick='xoopsCodeImg(\"$textarea_id\");' /><input type='button' value='EMAIL' onclick='xoopsCodeEmail(\"$textarea_id\");' /><input type='button' value='QUOTE' onclick='xoopsCodeQuote(\"$textarea_id\");' /><br />\n";
$sizearray = array("xx-small", "x-small", "small", "medium", "large", "x-large", "xx-large");
--- 189,193 ----
*/
function xoopsCodeTarea($textarea_id, $cols=50, $rows=10){
! echo "<input type='button' value='URL' onclick='xoopsCodeUrl(\"$textarea_id\");' /><input type='button' value='IMG' onclick='xoopsCodeImg(\"$textarea_id\");' /><input type='button' value='EMAIL' onclick='xoopsCodeEmail(\"$textarea_id\");' /><input type='button' value='CODE' onclick='xoopsCodeCode(\"$textarea_id\");' /><input type='button' value='QUOTE' onclick='xoopsCodeQuote(\"$textarea_id\");' /><br />\n";
$sizearray = array("xx-small", "x-small", "small", "medium", "large", "x-large", "xx-large");
|