Jump to content

[SOLVED] How do you work with blockquote captions in TinyMCE?


Recommended Posts

How do you work with blockquote captions in TinyMCE?

<blockquote> 
    <p>My great quote</p>
    <cite>Brave New World</cite>
</blockquote>

I would like to add a text caption e.g. author name or resource below a quote. How can I add <cite> or <span> caption below a blockquote in TinyMCE? I don’t want add it manually via TinyMCE Code editor, which gets discarded next time a user edits the field. I can’t find a good solution in the tiny documentation.

Alternatively I could use a blockquote repeater matrix item with 2 fields.

Link to comment
Share on other sites

  • howdytom changed the title to How do you work with blockquote captions in TinyMCE?

Not entirely helpful, but I use a Combo field to hold my blockquotes. I also wanted to make sure that there could be an optional cite available with the blockquote. Although there are plugins and adjustments that could be made to a WYSIWYG editor, they don't always transition easily from version-to-version, or from editor-to-editor. For scenarios like that, I prefer future-proofing it and going with a potentially less user-friendly interface, but one that likely won't break.

An alternative that you could use, if you didn't want to find a TinyMCE plugin for this, could be to use Hanna Code. I'm guessing you don't want anything that looks like code of any sort, but shy of a button, it would definitely provide you the ability to keep things within the TinyMCE field and still render a blockquote (with optional cite).

  • Thanks 1
Link to comment
Share on other sites

@BrendonKoz Thank you. Yes, your comment is really helpful to me. I thought the brand new TinyMCE ships with some basic pre-built citations option. From an editor perspective it would nice to add blockquote caption within the main body text when you work with large amounts of text. However, I could not find a reliable TineMCE plugin. I do prefer future-proofing too. Hanna Code is a quick workaround, but Combo field is exactly what I was thinking, too. ?
 

  • Like 1
Link to comment
Share on other sites

  • howdytom changed the title to [SOLVED] How do you work with blockquote captions in TinyMCE?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...