TinyMCE Templates

TinyMCE Template plugin will enable to use HTML template on WordPress Visual Editor. You can edit and share this template with WordPress users.

Some Feature

Template button will added to the visual editor when you install this plugin.

You can select & insert template from popup window like below.

Templates will saved as custom post type.
You can add and edit template on the visual editor.

Known Issues

All templates are losted after update 1.6.1 to 2.x.

Please re-activate this plugin once after deactivate.

Can not show template on TinyMCE popup.

Please click “Save Changes” on [Settings] – [Permalink Settings].
WordPress will flush cache for permalink in this action.
This problem has been solved since the 2.x.

Translators

Change log

TinyMCE Templates | wpist

60 thoughts on “TinyMCE Templates

  1. I love this plugin. I’ve been looking for this solutions for months! THANK YOU!

    And then WP just came out with version 3.3 which seems to disable it! ARRGH!

    Is there any chance you can fix it?

  2. Hello and thanks for an excellent and useful plugin!

    Question: I’m also using qtranslate, so I can have the site in both English and Norwegian. This wraps the page titles in the “Insert template” box in a english textnorwegian text. So it doesn’t look very nice for the end-user.

    Example: http://s18.postimage.org/spvw25zuh/select_insert_template.png

    Could you point me to where the “Insert a template” menu is generated, so I can change it to only show what’s between the :nb brackets?

    Thanks a lot!

    Regards,
    Willy T. Koch
    Norway

    • Hi willytk,

      It may solve.(?)

      tinymce-templates.php on line 375

      'post_type' => $this->post_type,

      post_type' => apply_filters("the_title", $this->post_type),

      Please try and tell me result.

      Thanks. :)

      • Hello and thanks for the reply!

        I couldn’t get your fix to work, maybe I did it wrong, but managed to solve it with some regexp magic. The comment field strips some code, so I used Pastebin:
        http://pastebin.com/9hF70mNm

        Then I inserted $var1 into the line
        $name = esc_html($p->post_title);
        so it reads:
        $name = esc_html($var1);

        This works fine if there’s only one language variable and and the template title is one word only.

        Paypal donation on the way for your great service!

        Regards,

        Willy T. Koch

  3. Hm, it was even easier than I thought, no need for regexp:
    Just replace the line
    $name = esc_html($p->post_title);
    with
    $name = qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage($p->post_title);

    Oh well, live and learn.

    Regards,

    Willy T. Koch

      • I would wirte [myshortcode] into the template but I would that when inserted into a post will be “expanded”

        [shortcode] -> shortcode output

        Ciao D.

      • Hi,

        Oh, It is very hard. ;)
        Template is not have Post ID…
        Some shortcode will not work without Post ID.

        But, your shortcode is not need Post ID, you can use filter hook like below.

        add_filter('tinymce_templates', 'do_shortcode', 11);

        Please copy and paste to functions.php in your theme.

  4. Hi,
    Thanks for a great plugin!
    It says that one can share templates, where can I see shared templates?
    Thanks,
    Simon

  5. Hi thre,

    Great plugin – just what I needed.

    I have a feature request. Is it possible to add categories and tags to the templates and then have an option to sort the templates when inserting them into tinymce by categories or templates?

    Thanks and be well,

    Moshe

  6. Pingback: Useful Wordpress Plugin Links | Coding Library

  7. Hello,
    I’m using wordpress 3.4.1 with qtranslate 2.5.2. with french (default) and english language
    When i insert the template in my french page, the template appears in the english page, it doesn´t want to appear in french. How i can resolve it please ?
    Thanks
    Best regards
    Philippe

  8. Hi Takayuki,
    Thank you for the plugin.
    One question about the sharing-part. I am used to copy html-code of a good looking post or page
    and paste it in the empty editspace of a new post or page, and add new text and images.
    Your plugin makes it an easier job, I guess.
    But wouldn’t it be great having a large worldwide website/database of pictures of nice looking WordPress posts and pages with the html-code of their layout available, and that you caan feed that databaseand download from it, like real sharing?
    Is that too simple a thought? Or does this database already exist?
    Where can we find it?

    By the way, exactly in what map of the WordPress installation are templates being saved by default? I’d like to move the map from one website root to another.
    It’s said before, but I as well can’t find that particular map.

    Thx, Charles

      • Thank you Takayuki, for your quick repsons.
        You may be right, maybe I expect too much. But read the first two sentences of this blog: “You can edit and share this template with WordPress users.”
        What exactly do you mean?
        There are four or five questions on this topic, about shared templates,
        where to find them, not only on the internet but in our own WordPress installs …
        No real answers. I’m just curious.
        Thanks anyway for your time.

      • Oh, “WordPress users” = “Registered users on your WordPress site.”
        Sorry, I am Japanese and my English was bad. :)

  9. Hi,
    Maybe you should change that line into: .. You can edit and share the templates with other authorized users of your WordPress site.” Or something like that. I don’t know, I’m Dutch. ;-)

  10. Hi, I just migrate in WP 3.5 and your plugin is not working anymore, he can’t list my template, the droplist is empty! I’ve tried to desactivate and reactivate your plugin, and save in permalink like you said in known issues but my list still blank !
    Please help me. I’m using your plugin for a school blog and your plugin is very useful for us !

    Thanks !

  11. Takayuki…This plugin is FANTASTIC! At first, I could not see the “Button” on tinymce toolbar, but then I saw that you said to “Please click “Save Changes” on [Settings] – [Permalink Settings]”
    After I did what you said, the button appeared when I reopened the tinymce editor.
    Great plugin, thanks for creating this plugin, it saves so much time!

  12. Hello. I love your Plugin. It helps me a lot.
    But now I can’t choose a template in the Dropdown-Menu!
    I have 4 different Templates, but the Dropdown-Menu show none of them!
    I tried to deactivate all the plugin without yours and Ultimate Tiny MCE, but the proplem still exists.
    Wordpress 3.5.1

  13. Please let me know when your Paypal account can accept donations again. I just tried and apparently there is some problem with it.Thanks

  14. Thanks – small donation made – wish it could be larger as this is a terrific plugin.
    I also have a question: is it possible to make a template of the whole of a page. What I mean is the html PLUS the css, not just the html code. Is that already possible and if so how?

    If it isn’t possible, that would be SO useful.

    Brenda

    • Hi Brenda,

      Very thanks for donation. :)

      > What I mean is the html PLUS the css, not just the html code.

      maybe use inline style in the template.
      But, can not attache external style sheets

      Thanks again !

  15. Thanks for the clarification. Unfotunately I have a lot of css on my pages. Is there any chance of your plugin being changed to allow for this at some time in the future?
    Best wishes
    Brenda

  16. I am having trouble when I insert a template created using this plugin. When I do so the new code is being inserted inside the last div on the previous page instead of below that div. Please see http://www.oldmapsandprints.com.au/lv_4_tmpl-2-2/2/. As a result, the sidebar is being pushed below the main page. Here is the code that shows that the template code, starting with is being inserted inside the div instead of below it.


    Insert text for image
     

     
    Insert heading

    I would be grateful for your help please.
    Thanks
    Brenda

  17. Pingback: Antivirus Software Blog » TinyMCE Templates 3.0.2

  18. Pingback: prueba extranjeria | CGSM

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s