Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support adding ScreenTip text when creating links. #503

Closed
e-shreve-ti opened this issue Oct 5, 2023 · 2 comments
Closed

Support adding ScreenTip text when creating links. #503

e-shreve-ti opened this issue Oct 5, 2023 · 2 comments
Milestone

Comments

@e-shreve-ti
Copy link

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report  
[x] Feature request
[ ] Documentation issue or request
[ ] Support request => Please have a look to the support pages of our website : http://m2doc.org/support/

Current behavior

The String.asLink(String) : org.obeonetwork.m2doc.element.MHyperLink service creates a hyperlink, allowing the caller to set the label and the destination. No other settings are possible.

Expected behavior

Provide a way to also specify the ScreenTip text (which can be done in Word if manually creating a link.)
The input should be automatically trimmed to fit within the maximum ScreenTip length (250 characters I believe.) If there are other character limitations for the ScreenTip text it would be nice if the service made reasonable changes to the text or produced a useful error message.

Minimal reproduction of the problem with instructions

Not applicable.

What is the motivation / use case for changing the behavior?

I'm using links to link to other locations in the document. (Using links instead of bookmark references allows one to have a style for the link so the reader knows it is a link.) The space I have for the link text is short, so it is just a short identifier like "CL001" or "CG008", for readability I'd like to include additional information in the ScreenTip so that when the user hovers over the link they will get some idea of what the identifier represents.

Environment


M2Doc version: 3.2.1
Eclipse version: X.Y.Z
Platform version:   X.Y.Z

Others:

@ylussaud
Copy link
Collaborator

ylussaud commented Oct 6, 2023

That seems like a nice feature to have. I don't have time to look into this right now, but I'll try to have a look before next release.

Note: You might be able to apply a style to your bookmarks by having a style in the template (an example).

@ylussaud
Copy link
Collaborator

ylussaud commented Oct 6, 2023

I also opened #504 that could solve your initial problem.

@ylussaud ylussaud added this to the 3.3.2 milestone Oct 27, 2023
ylussaud added a commit that referenced this issue Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants