TinyPortal
Development => Support => Topic started by: winky100 on August 12, 2010, 08:49:31 PM
I think it would be good to put a "Save" button at the top of the HTML WYSIWYG editor page. Instead of having to scroll all the way to the bottom to Save it.
Perhaps but won't likely happen. Just hit your "Page Down" key on your keyboard a couple of times and you're there.
ZarPrime
Quote from: winky100 on August 12, 2010, 08:49:31 PM
I think it would be good to put a "Save" button at the top of the HTML WYSIWYG editor page. Instead of having to scroll all the way to the bottom to Save it.
I've thought this a good idea too! Maybe I'll see if I can't sneak that into the code while Bloc isn't looking. :D
It was actually simple enough to find that I've added it to mine:
Open Themes/default/TPortalAdmin.template.php and find these lines on about line # 3610:
<tr class="windowbg2">
<td class="left" valign="top" align="right" width="20%">
' , $mg['id']==0 ? '' : '<a href="'.$scripturl.'?page='.$mg['id'].';tpreview">['.$txt['tp-preview'].']</a>' , $txt['tp-title'] , ':
</td>
<td valign="top" width="80%"><input style="width: 92%;" name="tp_article_subject" type="text" value="'.htmlspecialchars_decode($mg['subject']).'"></td>
</tr>
Add before those lines this:
<tr class="windowbg2">
<td><input type="submit" value="Save" name="Save"></td>
<td></td>
</tr>
That should add a submit button right before the preview link when editing an article.
@Ichbin ~ O0
ZarPrime
Excellent work!