Jump to content

Recommended Posts

Posted

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".

Posted

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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...