Tags:
create new tag
view all tags

SID-00152: Add TOC button to TinyMCE

Status: Answered Answered TWiki version: 4.2.4 Perl version: indigoperl 5.86
Category: CategoryPlugins Server OS: Windows 2003 server Last update: 16 years ago

Does anyone know how to add a button to the Tiny MCE editor that lets the user insert a TOC command?

I was trying to figure out how the button to insert an HR works, because I think what I need is similar ...and if I can figure it out, I'd like to add a few custom buttons that our users got used to having in the Kupu editor's "insert standard string" feature

I appreciate any advice

Thanks!

Kathy

-- KathyDeLaCruz - 03 Mar 2009

Discussion and Answer

Actually I can see that the HR button is one of the standard Tiny MCE features -- http://wiki.moxiecode.com/index.php/TinyMCE:Control_reference but maybe there's a way to accomplish putting a button to add the TOC string or other custom string?

-- KathyDeLaCruz - 03 Mar 2009

This is probably more a TinyMCE question. Google:tinymce+custom+button has this for example: http://tinymce.moxiecode.com/examples/example_20.php . Please report back here if you find out so that other community can learn. (BTW, NoNeedToInventCrypticTitles, a descriptive title is just fine.)

-- PeterThoeny - 04 Mar 2009

The custom button code on the Tiny MCE site looks great & not difficult to implement -- however, it seems to be valid only for Tiny MCE 3 (I think Twiki right now only supports version 2)

The only info I could find on custom buttons for older versions of Tiny MCE is http://www.deliciousdays.com/tinymcebuttons - I have not tried it yet but thought I'd post it here in case anyone else wants to

-- KathyDeLaCruz - 19 Mar 2009

Closing this question after more than 30 days of inactivity. Feel free to reopen if needed. Consider engaging one of the TWiki consultants if you need timely help. We invite you to get involved with the community, it is more likely you get community support if you support the open source project!

-- PeterThoeny - 2009-05-02

Just a general comment that questions posted to TinyMCE's forum about TWiki integration get met with a stand-offish "We don't know anything about TWiki." I think it's in the best interest of the developer of both parties to build a relationship and share, share, share.

-- TonyChung - 2009-12-18

      Change status to:
ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
SupportForm
Status Answered
Title Add TOC button to TinyMCE
SupportCategory CategoryPlugins
TWiki version 4.2.4
Server OS Windows 2003 server
Web server Apache 2
Perl version indigoperl 5.86
Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2009-12-18 - TonyChung
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.