mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-04-30 03:09:22 +02:00
When editing news, now, you also get nicedit.js editor. Forced width to be 100%.
This commit is contained in:
parent
309c17eca3
commit
8dd1a521ed
@ -42,7 +42,7 @@ if (empty($_POST) === false) {
|
||||
?>
|
||||
</select>
|
||||
<input type="text" name="title" value="" placeholder="Title"><br />
|
||||
<textarea name="text" id="area1" cols="75" rows="10" placeholder="Contents..."></textarea><br />
|
||||
<textarea name="text" id="area1" cols="75" rows="10" placeholder="Contents..." style="width: 100%"></textarea><br />
|
||||
<input type="submit" value="Create News">
|
||||
</form>
|
||||
|
||||
@ -77,10 +77,12 @@ if (empty($_POST) === false) {
|
||||
$edit = array();
|
||||
foreach ($news as $n) if ($n['id'] == $id) $edit = $n;
|
||||
?>
|
||||
<script src="engine/js/nicedit.js" type="text/javascript"></script>
|
||||
<script type="text/javascript">bkLib.onDomLoaded(nicEditors.allTextAreas);</script>
|
||||
<form action="" method="post">
|
||||
<input type="hidden" name="option" value="s!<?php echo $id; ?>">
|
||||
<input type="text" name="title" value="<?php echo $edit['title']; ?>"><br />
|
||||
<textarea name="text" cols="75" rows="10"><?php echo $edit['text']; ?></textarea><br />
|
||||
<textarea name="text" cols="75" rows="10" style="width: 100%"><?php echo $edit['text']; ?></textarea><br />
|
||||
<input type="submit" value="Save Changes">
|
||||
</form>
|
||||
<br>
|
||||
|
Loading…
x
Reference in New Issue
Block a user