TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 195,994
  • Total Topics: 21,325
  • Online today: 142
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 82
  • Total: 82

Small suggestion for the HTML article page...

Started by winky100, August 12, 2010, 08:49:31 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

winky100

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.

ZarPrime

Perhaps but won't likely happen.  Just hit your "Page Down" key on your keyboard a couple of times and you're there.

ZarPrime

IchBin

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

IchBin

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.



This website is proudly hosted on Crocweb Cloud Website Hosting.