-
Notifications
You must be signed in to change notification settings - Fork 1
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
Enable superscript and blockquote rich text formatting options #330
Comments
Question: if we follow the instructions in Wagtail documentation above, does this just add the formatting options to the Rich text streamfield blocks? Or does it also add them to Summary/highlight box, pull quote and details components? We'd like to be able to use superscript in all those types of blocks |
@StephenAbbott We can make them appear in any rich text field where you might want to use them, however I have a couple of things to add...
I wrote up usage instructions for them, let me know if this sounds like a useful solution... Footnotes are slightly complicated to use because of the way Wagtail handles data internally.
Important Note: At the point that we render the page, we re-write all the linked text to be The anchor re-written as a numerical indicator The footnotes rendered with their numbers at the foot of the page |
Thanks @drcongo. Maybe let's park this then for now given your comments. I'll send your notes to the team to work out how this might impact on how we proceed |
If it's useful, I'd guess it would be between 2 and 4 hours to implement the footnotes system (it's a while since I wrote it so memory's a bit hazy) |
@StephenAbbott Footnotes is now added and deployed to staging. I've added an example one here just to check they're working. |
Reopening issue to check/ask whether it is possible to enable superscript styling for these footnote numbers within the body of text on the Open Ownership website |
Initially I just added a class to the `<a>` but occurred to me that actual `<sup>` tags would be semantically better. So. Tweaked the default CSS to make the `<sup>` tag's font-size `1em` because otherwise they're `75%` and hard to read and even harder to tap. For #330
Signed off ✅ |
The Open Ownership team is thinking about how we do footnotes in our HTML publications and would like to enable the
superscript
andblockquote
rich text formatting options for all our rich text fields across the Open Ownership website:https://docs.wagtail.org/en/stable/advanced_topics/customisation/page_editing_interface.html#limiting-features-in-a-rich-text-field
The text was updated successfully, but these errors were encountered: