[wp-trac] [WordPress Trac] #28756: wp_editor issues when used in frontend (TinyMCE)
WordPress Trac
noreply at wordpress.org
Sun Oct 12 17:59:41 UTC 2014
#28756: wp_editor issues when used in frontend (TinyMCE)
--------------------------+------------------------------
Reporter: M-BP | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version: 3.9.1
Severity: normal | Resolution:
Keywords: | Focuses: javascript
--------------------------+------------------------------
Comment (by azaozz):
1. To see gallery previews when wp_editor() is used on the front-end,
you'll need to `wp_enqueue_script('mce-view');` separately as this is
still experimental and will probably change in 4.1. Testing it and fixing
any edge cases on the front-end welcome :)
2. When the `'wpview'` TinyMCE plugin is not loaded, the `'wpgallery'`
plugin uses a gallery placeholder (as before). To edit a gallery that was
replaced by a placeholder the media components will have to be loaded (as
editing uses the media modal), then double-click on the placeholder. We
can improve this a bit: need to confirm that both `'wpview'` and
`wp.mce.views` exist or use a placeholder.
3. The problem here is: `rel="prettyPhoto<img src="
href="http://localhost/wordpress/wp-content/uploads/2014/07/19.jpg">"`.
Not sure how this (broken) attribute got there, nothing in WordPress would
add it.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28756#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list