[wp-trac] [WordPress Trac] #42618: wp.mce.views API not using registered shortcode functions
WordPress Trac
noreply at wordpress.org
Sat Nov 18 11:21:11 UTC 2017
#42618: wp.mce.views API not using registered shortcode functions
---------------------------+------------------------------
Reporter: netsurfer2705 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: TinyMCE | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
---------------------------+------------------------------
Comment (by netsurfer2705):
@swissspidy
Thanks for the tip. I just had a quick look, and basically the plugin does
what I am trying to achieve. But AFAIS it is doing this for any kind of
"newly added" post elements via shortcode. This case is not that
problematic. But if you extend/ replace a shortcode which exists by
default (e.g. the [gallery] shortcode) then you are running into problems,
because instead of using the (newly) registered shortcode function(s), the
views use their own (and simplified) shortcode function.
So what is needed, is to make the views functions use the correct
shortcode functions. Otherwise the visual editor shows "incorrect" content
for replaced shortcodes, which is not exceptable in any way.
So I cannot see how the Shortcake plugin could/ should solve this problem?
If I overlooked, or misunderstood something, please let me know - thanks!
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42618#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list