Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Hunter Lyons Posted March 1, 2016 Posted March 1, 2016 Hi! I was wondering if there was any way I could add an "Anchor" button to the WYSIWYG Editor. This is pretty much essential so that we can set up Table of Contents bits on our wiki. Here's the very heavily work in progress home page of my website's wiki: http://www.tyrenale.net/wiki/portals/home-r2/ Thanks! Any feedback on the layout, etc of the page thus far as well as categories would be useful too. Keep in mind the entirety of this project is nowhere near fruition.
Hunter Lyons Posted March 1, 2016 Author Posted March 1, 2016 An example of what I mean by Table of Contents: http://tyrenale.enjin.com/wiki (this is my old abandoned Enjin website) I could code this with html pretty easily but I'm not sure how the Editor handles html. Is that a thing?
Ryan Williams Posted April 18, 2016 Posted April 18, 2016 I tried to do this but didn't have much luck. I created a custom code button that added an ID to the content so that it could be linked to via a manually created table of contents, however the editor appears to strip out any such IDs and I found no way to get round this. I did consider a more elaborate solution where basically the button would insert a piece of text that is in itself a kind of ID, which is rendered invisible on the article itself. JavaScript could then potentially be used to pick up these elements and scroll to them, however it was a lot of work which wasn't essential at the time so I never pursued it. Personally I think that the ability to create anchors is pretty essential in a robust CMS when managing larger pages, I was surprised to find this functionality absent.
Hunter Lyons Posted April 18, 2016 Author Posted April 18, 2016 Same here. I got that source code ckeditor add on and actually just coded in html anchors (<a href='#anchorname'> etc) and they just totally broke. Then I found one that supposedly added anchors but they got stripped out and broke too. I imagine it must be the IPS parser clearing them out because I've found other services using ckeditor work fine.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.