Hi.

How does one create a left pull quote? Can we get a separate WYSIWYG button for right and left pull quotes?

Thanks

Comments

lliss’s picture

Currently no wysiwyg button for this but there I did just add notes on doing this in the readme and will move them to the help text in the interface. You can just add another class "pullquote-left" to a pullquote.

Example:
<span class="pullquote pullquote-left">This will appear on the left.</span>

lliss’s picture

Assigned: Unassigned » lliss
ryan.ryan’s picture

This would take altering the patch from the initial wysiwyg queue correct?

lliss’s picture

Yeah. If you want to take a crack at it that would be awesome. You probably just do a bunch of copy and paste on the existing wysiwyg code that we have working in the latest release.

AndyThornton’s picture

Issue summary: View changes
StatusFileSize
new2.49 KB

hi,

i had a go at this. it seems to work fine and have zero copy and paste. i did it against the 7.2 branch, i hope that is okay?

When the patch is applied you will find a new WYSIWYG button that lets you do pullquotes left too.

AndyThornton’s picture

Component: Documentation » Code
Status: Active » Needs review
AndyThornton’s picture

StatusFileSize
new2.49 KB
AndyThornton’s picture

AndyThornton’s picture

StatusFileSize
new2.49 KB
new178 bytes

sorry, i didnt create the patch quite right.

also, there is a new gif file, but that does show up in the diff. i have attached it as well, it goes in the plugin/wysiwyg folder.

AndyThornton’s picture

does anyone still maintain this module?

lliss’s picture

StatusFileSize
new2.85 KB

Yes, still maintained...

Your patch had a few issues. Mostly the fact that the editor could not differentiate between a left and a right pullquote so both buttons would highlight.

Here's a revised patch that seems to fix this. I've tried it in TinyMCE but in CKeditor it is functions pretty poorly. Frankly it functions pretty poorly in CKeditor through the WYSIWYG module anyway so it may not be a major issue to include it as is.

Give this a try and let me know if it works well enough.