Ticket #11572

4
Type
Feature Request
Status
Accepted
Opened by
Views
325
Access
Public
Created
10/5/20 4:00 pm 10/5/20 4:00 pm
Updated
10/8/20 7:54 am 10/8/20 7:54 am

Anchor Links

Hello! I was thinking about implementing anchors to PMC editor, and here's my concept

Anchor links are shortcuts that direct the user to some part of the current blog/page.
For example, links in the "Contest" block from Wikipedia articles are anchor links.

They can be used for creating a fast navigation system trough the description or blog, or making a link that instantly directs the user to the information he needs.


Anchor links can be created using the new button with anchor symbol on it:


keyboard_arrow_downMore info & alternative version
I decided to replace the "Remove Link" button because it used very rarely (you can erase a link with backspace or press a "Remove link" button in the pop-up); However, there's another version with all buttons saved:





Press the anchor button and you'll see this:



You need to highlight part of text to make it an anchor. Also, you can give it any name you want (by default it's just "anchor + (number)").



Press "Save" and voila!

(by the way, this dotted underline under anchor can be seen only in the editor; it won't be shown in public)


You created an anchor... but how to link it?

It's very simple: press the "Insert/Edit Link" button, type your anchor's name in the textfield and select it from the dropdown list.
Also, you can see all your anchors in the dropdown list, as two default anchors (#top and #bottom - directs user to the beginning/the end) as well.


Congratulations! You made an anchor and a link to it

But what if you want to insert a link to your project with an anchor in another place?
Well, just copy URL of your project, remove "/" if it's the last symbol, type "#" and your anchor's name
(maybe there'll be some easier ways to do it, I'm not sure).



I hope you liked this concept, and I also hope to receive any kind of feedback (I was doing this concept about 5 hours straight and now it's 3:00 AM) UwU

P.S. This Russian text from concept doesn't mean anything offensive - it's just parts of chapters from "The Captain's Daughter" (Pushkin, 1958) I made it Russian because just didn't want to make anyone focus on it (I doubt there's a lot of people who knows Russian)).


  Have something to say?

JoinSign in

Cyprezz
10/08/2020 7:54 am
Level 71 : Legendary
set status to Accepted, assigned Developers/Administrators.
1
Recycle Bin
10/05/2020 4:03 pm
Level 58 : Grandmaster
modified ticket description.
1

Welcome