new quicktags, completely replaced b2quicktags.js, modified b2quicktags.php and added a JS var to b2edit.form.php

git-svn-id: https://develop.svn.wordpress.org/trunk@312 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Alex King
2003-08-14 23:11:01 +00:00
parent 6fc065f22b
commit fc6e343079
3 changed files with 332 additions and 198 deletions

View File

@@ -165,10 +165,11 @@ if ($action != 'editcomment') {
?>
</td>
<td align="right">
<?php if ($use_quicktags) {
<?php
if ($use_quicktags) {
echo '<a href="http://wordpress.org/docs/reference/post/#quicktags" title="Help with quicktags">Quicktags</a>: ';
include('b2quicktags.php');
}
}
?>
</td>
</tr>
@@ -181,13 +182,22 @@ if ($action != 'editcomment') {
?>
<textarea rows="<?php echo $rows; ?>" cols="40" style="width:100%" name="content" tabindex="4" wrap="virtual" id="content"><?php echo $content ?></textarea><br />
<?php
if (get_settings('use_geo_positions')) {
if ($use_quicktags) {
?>
<script language="JavaScript">
<!--
edCanvas = document.getElementById('content');
//-->
</script>
<?php
}
if (get_settings('use_geo_positions')) {
?>
<label for="post_latf">Latitude:</label><input size="8" type="text" value="<?php echo $edited_lat; ?>" name="post_latf">&nbsp;
<label for="post_lonf">Longitude:</label><input size="8" type="text" value="<?php echo $edited_lon; ?>" name="post_lonf">&nbsp; <A href="http://www.geourl.org/resources.html" target="_blank" >click for Geo Info</A>
<br>
<?
}
}
?>
<?php echo $form_pingback ?>