[wp-trac] [WordPress Trac] #33192: WYSIWYG editor Visual tab doesn't load when going from Text to Visual

WordPress Trac noreply at wordpress.org
Sun Aug 2 03:16:16 UTC 2015


#33192: WYSIWYG editor Visual tab doesn't load when going from Text to Visual
-------------------------------------+-----------------------------
 Reporter:  stuartshields            |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  4.3
Component:  TinyMCE                  |     Version:  trunk
 Severity:  blocker                  |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:  administration
-------------------------------------+-----------------------------

Comment (by stuartshields):

 Hi, I can't get your patch to do anything. When I ran
 `tinymce.activeEditor` in the console, when the Visual tab is first
 clicked, I can see this in console when running tinymce.activeEditor:

 {{{
 #!php
 formatter: Object
 hasVisual: true
 hidden: true
 id: "content"
 }}}

 But when the Visual tab is first selected the same Object is this:
 {{{
 #!php
 formatter: Object
 hasVisual: true
 hidden: false
 id: "content"
 }}}

 Could this be causing said problem?

 Replying to [comment:14 azaozz]:
 > Replying to [comment:13 peterwilsoncc]:
 >
 > > {{{#!js
 > > tinymce.activeEditor
 > > // editor object
 > >
 > > tinymce.activeEditor.isHidden()
 > > // true
 > >
 > > tinymce.activeEditor.show()
 > > // reveals editor
 > > }}}
 >
 > 33192.patch should fix it. This bit was intended for initializing MCE in
 the background to speed up loading when the Text editor is first. Not used
 by default.
 >
 > Could you confirm if it works? :)

--
Ticket URL: <https://core.trac.wordpress.org/ticket/33192#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list