According to the Codex, you can’t do this directly through the API. However, you can do it by using your own quicktags.js file as shown below.
function sample_load_admin_scripts()
{
if ( is_admin() ) {
wp_deregister_script('quicktags');
wp_register_script('quicktags', ("/path/to/your/quicktags.js"), false, '', true);
}
}
if (is_admin()) {
add_action('init', sample_load_admin_scripts);
}
Then just add Javascript to do your work. The formatting is relatively easy, but since you know how to do everything with TinyMCE I’m not going to go into that. Go get a quicktags.js file of your own here.
Related Posts:
- Stop WordPress Wrapping Images In A “P” Tag
- Keyboard shortcut for updating a page or post?
- Allow user to “edit_others_posts” to save only, not publish
- Let private posts stay in status “private” after edit through “editors”
- how to limit edit_form_after_title hook to page and post edit only?
- Listen to Post action
- How to create WP Editor using javascript
- How to add editor’s name to entry meta byline?
- Restrict access to post if it is currently being edited
- Change padding to text indent in “Increase indent” TinyMCE
- How can I allow editors to leave comments on posts that have not yet been published?
- Automatically added brs and paragraphs?
- How can I pass $post object to ‘save_post’ add_action?
- Custom function for “Submit for Review” hook
- add image map script to post
- Content editor creating blank paragraphs in spaces and creating   in the_excerpt
- 2nd button row from WP Super Edit or TinyMCE Advanced doesn’t show to 2nd admin
- Strange problems when I try to insert HTML\XML code snippet in my posts
- How can I add a meta-box to the posts editor containing all items of a custom taxonomy as checkbox?
- Visual / HTML tabs vanished on editor
- Getting a 404 error when clicking edit page
- WordPress version 3.8 – Preview button not working for editor
- How to retrieve the postID in a “image_send_to_editor” hook function?
- Make Post Editor Select Number of Columns To 1 By Default
- Lost draft under all posts and drafts
- WP text styles not coming through to actual post
- WordPress.com post editor replacement
- Why can’t publish posts with too much text?
- Keyboard shortcut for headings on safari
- any way to access variables from within post editor?
- Embedding Post Editor Into External Site
- Contributor edits published post and sends for review – post is made private?
- Display simple html code in post
- How to allow some visitors to edit inline specific post
- How to custom sort-out editing-panel fields?
- Stripping tag from elements in post
- Post thumbnail is not shown in wp-admin
- How to get post creation date?
- Code to make a post sticky
- How to receive HTTP POST in WP?
- Why declare $post globally?
- Open WordPress ‘Add New Post’ admin page with parameters set via $_GET
- How to query posts with current or future date only
- When a user creates a post (pending), send a confirmation link that allows them to publish
- Get post only from ‘standard’ post format
- Posts Page Featured Image [closed]
- Adding variable for post title so post template can include auto-generated link to view on external website.com/{post title}
- Can’t publish new posts
- Two posts are loaded instead of one?
- how to find user ids of all commenters in a post
- When I re-save a post with [code] sections, the entities are double-escaped (> becomes > etc)
- Automatic post deletion
- Lose “Blog Archive” from page title
- Should a photo gallery be in a post or on a page?
- Getting category posts from a certain year
- How can I show many posts an author has per week?
- Disable inline_edit() on edit.php
- Display post X of Y in category
- Ajaxify This Code
- How do I display some posts fully on the homepage, and some as an excerpt only?
- Users problem (multi-author plus multisite)
- Filter only the text in the_content
- How to WP_Query() from multiple blogs and order them?
- How to get subcategories from category slug?
- Hide a specific post from a page template
- Posts – display all posts except a post by an ID
- Subdomain to website directory blog transferring
- Display author’s name and avatar in post’s sidebar
- How do you change the comment count in the back end posts list, to reflect unapproved comments, rather than all comments?
- Parent category / child category posts
- How do I insert a after every 5 posts in a WordPress Loop that infinitely loads posts?
- How to check if a post is published today?
- Detecting current page from class method
- How can I add a class to particular paragraphs in my post?
- Exists filter or action that change Add New Post link?
- saving/reading custom field value does not work – no value gets POSTed
- Getting an extra post’s meta data?
- Adding external field to my post form (admin side) and to post show (frontend side)
- fetching posts and showing on frontpage
- Link from Post to Another Post Via Clicking on Words within Original Post
- Insert JavaScript in a blog post or a new page?
- Order buttons added to TinyMCE
- How to create loop of posts except post ID defined via ACF field
- How to pull sticky post permalink inside php?
- how to put post customized in page
- How to redirect if is post edit or publish page?
- How to delete/customize imported demo content from a theme or add my own?
- testing result of $.post with json_encode
- Clean up customize_changeset in DB
- count_posts to a standalone link
- Add a unique meta desciption
- Blog styling in SASS
- Get results from the main wp_query
- Preview own posts if logged in
- Pagination for custom query won’t let me back on page 1
- thumbnail image path and file path for gallery thumbnail images
- How to add a new page that will function as a separate blog/news article page
- How to set value in Query Loop?
- How to make the Post Author name fixed as “Editorial Staff” even if there are multiple authors?
- Trying to create parent for post. I need some help. Thanks