[wp-trac] [WordPress Trac] #39337: TinyMCE: when a wpview is the last element, insert an empty paragraph (caret placeholder) under it
WordPress Trac
noreply at wordpress.org
Fri Jan 6 20:00:31 UTC 2017
#39337: TinyMCE: when a wpview is the last element, insert an empty paragraph
(caret placeholder) under it
--------------------------+------------------
Reporter: azaozz | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.8
Component: TinyMCE | Version: 4.4
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+------------------
Comment (by azaozz):
Yeah, would have been better if it was in the plugin, but not possible. It
needs to run when we replace the markers, the plugin is not used then.
This may be possible when we have UI for entering these "blocks". Then we
would know that something is a block as soon as it is entered, may even
not need the "markers" any more.
Was also thinking wpview would need some refactoring, and we should move
the TinyMCE parts to the plugin. Looking at things like `setMarkers()`,
`getMarkers()`, `replaceMarkers()`, `setContent()`, etc. Can export them
in `editor.wp` or add custom events where it makes sense.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39337#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list