It would be nice to have WYSIWYG integration. A nice little box where a shortcode can be selected, attributes set and then inserted into the content.
For this to work the shortcode API needs a bit of a rewrite so a shortcode can provide a (optional)attributes form.

Already committed a initial submodule for this to 7.x-2.x-dev

Comments

James Andres’s picture

Status: Active » Needs review
StatusFileSize
new2.62 KB

I needed this to complete a project I'm developing. Here's a patch that makes the shortcode_wysiwyg module work (it was broken) and also I've added support for basic attributes functionality.

hixster’s picture

Super awesome - I've just tested this patch and can add short codes via the dialog, so thanks for supplying the patch. :-)

Docc’s picture

Commited, tnx James

jurriaanroelofs’s picture

Status: Needs review » Needs work

This didn't work for me because the jQuery selector dialogdiv.load(aurl + " .content #shortcode-wysiwyg-form", function(){ searches for the .content element which doesn't exist in my theme. Since the selector uses an identifier we can assume there is only one so we don't need the .content part and turn it into dialogdiv.load(aurl + " #shortcode-wysiwyg-form", function(){

This is what I did to make the dialog work for my site.

denes.szabo’s picture

Assigned: Docc » Unassigned
Status: Needs work » Needs review

I committed today your patch in #1716806. Please test this issue, is the problem still exist or not. Then tell us the result in a comment. Thx!

denes.szabo’s picture

Project: Shortcode » Shortcode for Wysiwyg
Issue summary: View changes

Moved to the shortcode_wysiwyg project.

shelane’s picture

Status: Needs review » Closed (fixed)