[wp-trac] [WordPress Trac] #26959: Incorporate preview of inserted galleries in the visual editor using a new version of the wpview tinymce plugin
WordPress Trac
noreply at wordpress.org
Sat Feb 1 23:21:17 UTC 2014
#26959: Incorporate preview of inserted galleries in the visual editor using a new
version of the wpview tinymce plugin
-------------------------+-----------------------------
Reporter: gcorne | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 3.9
Component: Editor | Version:
Severity: normal | Resolution:
Keywords: | Focuses: ui, javascript
-------------------------+-----------------------------
Comment (by gcorne):
Patch attachment:26959-02.patch demonstrates a possible technique for
handling cut, copy, and paste of a selected gallery block. It works by
creating a hidden div with the shortcode that is selected when the block
is selected on {{{mousedown}}}. This results in the shortcode being
copied. It seems to work okay in Chrome, FF, and IE, although there are
some caret and scroll issues that would need to be cleaned up.
While I am happy to finally have figured out how to get this to work, I am
not sure if this solution is ideal. It may be better to just select the
view wrapper and all descendants, and then make sure that when
(re)introduced into the editor, make sure that they are wired up with the
appropriate Backbone views.
It is also worth noting that CKEditor introduced a
[http://ckeditor.com/demo#widgets widget plugin] in version 4.3 that
accomplishes at least some of what we are trying to do with the
{{{wpview}}} TinyMCE plugin.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/26959#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list