Closed (fixed)
Project:
Shortcode for Wysiwyg
Version:
7.x-2.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
26 Jun 2012 at 10:06 UTC
Updated:
14 Aug 2015 at 23:50 UTC
Jump to comment: Most recent
Comments
Comment #1
jurriaanroelofs commentednow that I'm reading more into the code I see this refers to the settings at admin/config/content/formats/[format] but there is some code in the WYSIWYG module that seems related to this feature:
Comment #2
jurriaanroelofs commentedOk sweet I see this already pretty much works. Now I'll just add some code to support example code. In some wordpress WYSIWYG integrations the shortcode button will insert something like this:
[custom_list style="list-4"]
[/custom_list]
Comment #3
denes.szabo commentedHow this issue? Could you write a small summary about it?
Comment #4
jurriaanroelofs commentedNever mind this issue, it was about creating WYSIWYG editor integration but it already exists now.
Comment #5
BarisW commentedI'm re-opening this issue. It is not clear how I can write my own shortcodes and provide a settings form in the WYSIWYG integration.
Can you describe how to use the 'attributes callback' in your own
hook_shortcode_info()implementation?Comment #6
BarisW commentedI figured it out, pretty easy to use!
And then a function that just returns a Drupal form:
I'm leaving this active so it can be added to the README.txt first ;)
Comment #7
denes.szabo commentedMoved to the shortcode_wysiwyg project.
Comment #8
shelaneThis is great for attributes of the shortcode. How can we add an entry for the "text" that appears in the center of the shortcode as:
[myshortcode]defined as text in shortcode[/myshortcode]
Comment #9
shelaneDocumentation on how to use the attribute callback is now provided as part of this module's documentation.
Comment #10
shelaneDocumentation is now provided.
If you have trouble understanding any part of the documentation, please notify those of us who work on this section and clearly explain what you don't understand and why. We're happy to hear from you. Your contribution helps everyone at Drupal!
Comment #11
shelane