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

Modularize the note behavior #39

Open
dubinsky opened this issue Jun 19, 2020 · 0 comments
Open

Modularize the note behavior #39

dubinsky opened this issue Jun 19, 2020 · 0 comments

Comments

@dubinsky
Copy link
Contributor

Default behavior defined for note handles endnotes ("[place=end]"), and I want to use that in my project. It also handles all other notes via , ["_", ["(",")"]] - and that part I do not want.

Currently, I have to manually comment the part of the behavior that I do not want out in the CETEI.js file. I'd rather override the note behavior entirely in my own glue code, but I do not want to have to copy 23 lines of the function that handles the endnotes. Do you think it is possible to factor this function out of the behavior itself and make it available for re-use? (It does need access to the tei-tei elemnt DOM as we know...)

Thanks!

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

1 participant