Closed cliffordp closed 9 years ago
While nested shortcodes are a valid use of shortcodes, we don't support editing them.
Well I registered [row] without the Shortcake UI and I registered [col] with it... so that gets me what I wanted regarding nested shortcodes... BUT this question is about more than that. This question is separate from the issue of nested shortcodes. It is simply "is there a way to disable the Edit Existing functionality?"
I have a similar problem which I reported in http://www.oik-plugins.com/2015/09/testing-shortcake-compatibility/ as "This leads to unwanted nested shortcode expansion if the containing shortcode is disabled" e.g. [bw_geshi]
Say I'm using shortcodes to render columns/grid... For example:
I want to use Shortcake to do the initial insertion (
gap
,w
, and whatever other attributes), but I want therow
shortcode to be a "dumb" shortcode (not editable via Shortcake UI once inserted). Because if it had Shortcake's "edit existing" UI pop up, nothing it surrounds (thecol
shortcodes) would be individually selectable. And that's exactly what I want... I want thecol
shortcodes to be editable via Shortcake's "edit existing" UI.I hope that makes sense.
I tried returning '' or an HTML comment when
is_admin()
but neither worked as desired.Possibly related: