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
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | shortcode_wysiwyg.make_it_and_attributes_work.patch | 2.62 KB | James Andres |
Comments
Comment #1
James Andres commentedI 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.
Comment #2
hixster commentedSuper awesome - I've just tested this patch and can add short codes via the dialog, so thanks for supplying the patch. :-)
Comment #3
Docc commentedCommited, tnx James
Comment #4
jurriaanroelofs commentedThis 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 intodialogdiv.load(aurl + " #shortcode-wysiwyg-form", function(){This is what I did to make the dialog work for my site.
Comment #5
denes.szabo commentedI 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!
Comment #6
denes.szabo commentedMoved to the shortcode_wysiwyg project.
Comment #7
shelane