Jump to content


Photo

Anchor links in tinymce

anchor links tinymce

  • Please log in to reply
2 replies to this topic

#1 AnotherAndrew

AnotherAndrew

    Sr. Member

  • Members
  • PipPipPipPip
  • 162 posts
  • 24

Posted 22 May 2012 - 02:40 PM

It would very beneficial if there was a way to use anchor links within text fields. Tinymce supports it obviously, but PW does not have this ability built in, as far as I know.

#2 ryan

ryan

    Hero Member

  • Administrators
  • 5,780 posts
  • 3124

  • LocationAtlanta, GA

Posted 23 May 2012 - 09:24 AM

Edit your field (i.e. Setup > Fields > Body). Click on the 'Input' tab, and open the 'TinyMCE advanced settings' fieldset. Add "anchor" to the theme_advanced_buttons1 input, wherever you want it to appear in the buttons. For instance, here is what my entire field value looks like when I append it to the end:

formatselect,|,bold,italic,|,bullist,numlist,|,link,unlink,|,image,code,fullscreen,anchor

Once you save that setting, your field will now have an anchor button where you can insert anchor links. To link to anchor, you would just click the link button and type in the anchor name preceded by a '#'. For example, if you created an anchor named "processwire", you'd link to "#processwire".

#3 AnotherAndrew

AnotherAndrew

    Sr. Member

  • Members
  • PipPipPipPip
  • 162 posts
  • 24

Posted 23 May 2012 - 10:28 AM

What I was imagining was that a user could select an anchor link from a drop down list in the link urls. PW would obviously have to keep track of the anchors made by a user and then spit them out in the list.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users