-
-
Notifications
You must be signed in to change notification settings - Fork 813
Anchors don't work #407
Activity
Besides the problem with the image storage, the anchors "just worked" with only this function: insert a named anchor, get an anchor in the exported HTML. There is no function yet for navigating within CryptPad as far as I know. Maybe works around #399 may help...
ansuz commented on Aug 7, 2019on Aug 7, 2019
@polx is correct that anchors only function within exported HTML, since their usage for navigation during a real-time session would interfere with our usage of the fragment identifier (#) for relaying other information.
I don't have any good ideas for UI hints to convey this to users. I understand it can be frustrating to have a button that doesn't seem to work, so I'm inclined to just remove the button.
Thoughts?
polx commented on Aug 7, 2019on Aug 7, 2019
The ideal situation is that the key and a possible inner location live peacefully together in the frag-id. This way I could exchange URLs and invite people to go directly to somewhere.
However, I'm inclined to say that it would be enough to simply have anchors and table-of-contents to be working internally: a click to a link goes there, inserting a link offers the anchors as possible endpoints.
Am I right, @ansuz that this would be easier to implement?
frlen123 commented on Aug 9, 2019on Aug 9, 2019
Forgive me if it's a stupid suggestion, but can't javascript solve this? Like polx mentioned, the fragment could perhaps be split in 2. For example, URL#hash--anchor. JS could be used to get the fragment's last part (the anchor part) and then scroll to that element's position https://stackoverflow.com/questions/8070639/find-elements-position-in-browser-scroll
For an opened document, it could perhaps just add an EventListener to the link and then scroll to that part of the document.
Personally, I find it quite important to have anchors so that I can easily jump to another part of a large document
You can do a lot in programming javascript.
However, you need to do it right and make sure it works right in many situations.
The frag-id 'peaceful collaboration' is complex because it involves not only the CKeditor part, it also involve the security layer where the key is read and written. As per design, the two layers live in different domains; this means that such an integration requires APIs between the two layers. It's not impossible but it probably needs an entry into the roadmap before it is started.
ansuz commented on May 5, 2021on May 5, 2021
We've implemented a fix and deployed it to CryptPad.fr. It will be included in the upcoming release (4.5.0) which will be published as soon as I finish writing its release notes.
Hi!
Can somebody explain me how to use anchors?
When I create a link to one and click it nothing happens.
I really need anchors or some other kind of link to certain pages in documets to make cryptpad useful for me.
Thank you!
ansuz commented on Dec 21, 2021on Dec 21, 2021
Hi! Can somebody explain me how to use anchors? When I create a link to one and click it nothing happens. I really need anchors or some other kind of link to certain pages in documets to make cryptpad useful for me. Thank you!
This pad demonstrates the supported behaviour. The table of contents on the left is generated based on the structure of the document. Clicking on an entry in the table of contents should scroll the document such that the corresponding section is visible. Headings are automatically included the table of contents, and anchors allow for content of other types to be navigable in the same manner.
Great! Thank you!
Is there a way I can link directly to an anchor? Like https://cryptpad.fr/pad/#/2/pad/view/FQZM1ZM8YbsLhkkfH3T/#anchor02
We are working on big documents and we need to be able to send links to certain parts. By email, chat or for jumping inside the document.
ansuz commented on Dec 22, 2021on Dec 22, 2021
Not currently. We do plan to add this functionality at some point in the future, but our roadmap is currently full with other features that have been funded through research projects or sponsored development.
braniti commented on Jan 31, 2022on Jan 31, 2022
Dear Ansuz, developers & contributors .
First to thank you for developing this Open tool .
Today i discovered that anchors do Work within document , now i aim to introduce Cryptpad to kids at our high school !!
This was core issue for me to fully move away from Google docs, i could only use cryptpad for simple docs.
I learned about your tool from mr. "feadi" few months ago ( he has recent comment in this thread ) .
Tday I accidentally noticed that you partly fixed this issue ... , after pressing CTRL+K to insert URL link i think i spotted something changed in the pop-up screen compared to few months ago ,so i tried instead of insert URL to choose "Link to Anchor in text" option and it works ...before i remember this did not work for me.
Now only issue pending is to have a link in one document to the anchor in another document and as you say this is on your agenda , so i hope it will get priority ...
Best ,
B.
p.s. just payed Personal level subscription.
Anchors don't seem to work (anymore?).
...
Nothing happens when clicking on the link (Firefox). :/
Hello @64mb14rr4,
If you have an issue with your CryptPad.fr account please reach out to your instance administrators: https://cryptpad.fr/support/
Thanks in advance!
I'm not sure whether anchors have been fixed, this issue: #169 didn't make it clear for me. I'd just like to mention that adding anchors to a Rich Text pad brings with it 2 problems.
1- they seem useless, because even when I create a "Link to anchor in the text", when I click on it nothing happens
2- adding an anchor also adds an img of a red flag and then the user gets this message:
But no images were added to the Rich Text pad, just an anchor was added