]> git.mjollnir.org Git - moodle.git/commitdiff
if htmleditor is on, only show html format
authortoyomoyo <toyomoyo>
Thu, 16 Mar 2006 08:32:29 +0000 (08:32 +0000)
committertoyomoyo <toyomoyo>
Thu, 16 Mar 2006 08:32:29 +0000 (08:32 +0000)
blog/edit.html

index f73ff8feef99ca699147b7fbb1f65c8e0ac6220b..71d95a84f05b7b4dd7a7c3765ad7646d3ace578f 100755 (executable)
     <td align="right"><strong><?php print_string('formattexttype'); ?>:</strong></td>
     <td colspan="2">
     <?php
-       choose_from_menu(format_text_menu(), 'format', $post->format, '');
+        if ($usehtmleditor) {   /// Trying this out for a while
+            print_string('formathtml');
+            echo '<input type="hidden" name="format" value="'.FORMAT_HTML.'" />';
+        } else {
+            choose_from_menu(format_text_menu(), "format", $post->format, "");
+        }
      ?>
     <small><small>
     <?php