WordPress.org

Support

Support » Plugins and Hacks » How To Put Quicktags in the Bookmarklet

How To Put Quicktags in the Bookmarklet

  • Hey all,
    I want to have the quicktags in the Press It popup bookmarklet page. Is there an
    easy way to pull this off for a codeless newbie?
    Metalious

Viewing 7 replies - 1 through 7 (of 7 total)
  • Nevermind. I figured out a way to do it.

    Oops.
    Actually, I didn’t figure it out.
    I tried changing this in bookmarklet.php:
    <?php require(‘edit-form.php’); ?>
    to this:
    <?php require(‘edit-form-advanced.php’); ?>
    It gave me the correct popup window but upon posting I got a screen full of errors.
    Any ideas?

    I’m also interested in having quick tags in the bookmarklet popup.
    Any ideas on how to accomplish this? Or even create a bookmarklet that takes one straight to the new entry page with all the other admin tabs available also?

    I just got this to work.
    Go to wp-admin/edit-form.php
    Change this (at line 69 in the current version):
    <?php
    if ('bookmarklet' != $mode) {
    echo '' . __('Quicktags') . ': ';
    include('quicktags.php');
    }
    ?>

    To this:
    <?php
    {
    echo '' . __('Quicktags') . ': ';
    include('quicktags.php');
    }
    ?>

    Thanks for this modification! It works wonderfully.

    notsewmit

    @notsewmit

    I tried making the modification and it didn’t work for me. Is the only change the removal of the if() {} around the echo and include, or is there something more I need to do?
    Thanks!

    I found the easiest method is to change the link that points to edit-form into edit-form-advanced
    it also displays all the other stuff but hey it was easy..
    open bookmarklet.php
    find:
    <?php require('edit-form.php'); ?>

    replace with
    <?php require('edit-form-advanced.php'); ?>

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How To Put Quicktags in the Bookmarklet’ is closed to new replies.