It's not every <p> tag, but just <p> tags around the shortcode.Like<p>[shortcode]Content[/shortcode]</p>TO[shortcode]Content[shortcode]
And<p>[shortcode]</p><p>Content</p><p>[/shortcode]</p>TO[shortcode]<p>Content</p>[/shortcode]
that's not magic at all, it's a solution to a problem that exists
- Have a HTML equivalent for shortcodes, so you can do <div data-shortcode="YouTube XXXX">....</div> which TinyMCE wouldn't surround with <p> tags. Would probably need a plugin for TinyMCE to actually enter via the WYSIWYG form.
--
You received this message because you are subscribed to the Google Groups "SilverStripe Core Development" group.To post to this group, send email to silverst...@googlegroups.com.
To unsubscribe from this group, send email to silverstripe-d...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/silverstripe-dev?hl=en.
I'm not denying anything i'm not saying that my solution should be implemented, it was stupid of me to pull a request.
I've just made a solution that kind of worked for me, you actually pointed out some issues which i'm working on and trying to fix.
I'm just pointing out an issue with shortcodes and trying to find a solution for it, specially with you guys who created SS, you guys understand it more than anyone else .
I also spent most of my afternoon trying to fix this issue and explain to you that there is an issue with shortcodes and tinymce.
I'm trying to contribute with SS and get my job done, but you guys are just not getting what i'm saying or have a really close mind about shortcodes.
Thanks anyway.
consider the following situation:
You have a simple page and the content of this page is a WYSIWYG content, how would you implement a nice little and easy to remember code/feature for the final client that doesn't know any HTML to implement which return a quite big chuck of HTML and inserts it wherever the end client added it into the editor. the best solution i know is by using shortcodes, is there anything else you could do?
the content may look like this:
long content
[shortcode]
rest of the content
keep it simple and easy to the client to use.