uchicago-library / library_website

The University of Chicago Library Website
5 stars 5 forks source link

Add Citation to rich text #59

Open kzadrozny opened 6 years ago

kzadrozny commented 6 years ago

For ADA purposes, add a <cite> option to the Rich Text streamfield. This will allow authors to visually style book titles with italics without using <em>

Documentation on <cite> use: MDN: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/cite HTML5 Doctor: http://html5doctor.com/blockquote-q-cite/#foreign-languages

kzadrozny commented 6 years ago

Update: To go with normal workflow, I would like to keep this within the Rich Text box and place it near the italic button. In discussing this option with Brad, two things need to be researched:

Action item: I will research the documentation on this.

ecboettch commented 6 years ago

The bold and italic options in the rich text editor generate <b> and <i>, respectively. (Style guide instructs authors to use <strong> and <em>.)

kzadrozny commented 6 years ago

Wagtail documentation: http://docs.wagtail.io/en/v1.13/advanced_topics/customisation/page_editing_interface.html#rich-text-features

Documentation on writing the plugins needed to add features: https://github.com/bergie/hallo

Stack Overflow post on this issue: https://stackoverflow.com/questions/14554002/how-do-i-customize-hallo-js-to-use-strong-instead-of-b

kzadrozny commented 6 years ago

Waiting for the Wagtail upgrade to see if the new Rich Text editor solves this issue.

kzadrozny commented 4 years ago

If citation is still desired, it will have to be accomplished as a streamfield outside of richtext.