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

Automatically generate diagram references when adding a diagram macro in a page #216

Open
aubincleme opened this issue Dec 7, 2021 · 1 comment

Comments

@aubincleme
Copy link
Member

Currently, when a diagram macro is added to a page, the default reference for the diagram (if the reference argument of the macro is empty) will be .Diagram, corresponding to the terminal page Diagram under the current non-terminal page.

This works very well, however users can be confused of having to provide a reference to a diagram when inserting a new diagram to a page : for an end-user it's not clear why a diagram would be stored in a separate page than the current document.

In order to circumvent the issue, we could automatically generate a unique diagram reference when inserting the diagram macro in WYSIWYG, much like what we do when inserting a mention to a user (a unique ID for the mention is generated).

@michitux
Copy link

This would be really nice, in particular as it is currently impossible for a user who isn't familiar with document references to insert two different diagrams in a page as there is no picker to select/generate a document reference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants