[wp-trac] [WordPress Trac] #31412: TinyMCE views improvements
WordPress Trac
noreply at wordpress.org
Sat Mar 7 17:10:00 UTC 2015
#31412: TinyMCE views improvements
-------------------------+-------------------------
Reporter: iseulde | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 4.2
Component: TinyMCE | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses: javascript
-------------------------+-------------------------
Comment (by azaozz):
Replying to [comment:12 iseulde]:
> Left here:
> * Encoding issue.
As far as I see we will have to do that by hand. It seems it will be
better to encode the wpView "text" rather than decode the whole content.
If we touch the content we risk breaking double encoding, for example code
with `&&` in <pre> tags.
> * Media views should pause when switching to the text editor. Previously
we did this whenever we could through mejs, but that didn't pause any
embeds. I think the best solution is to remove the views when switching
(which will destroy any iframes and therefore stop anything that's
playing). This is okay since all the views need to be rerendered anyway
when switching back to visual (all content is replaced by TinyMCE).
Right. The whole content of TinyMCE is reloaded on every switch Text =>
Visual as we are expecting changes. There is no point in keeping the old
wpView instances.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31412#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list