[wp-trac] [WordPress Trac] #50275: Visual and text editor issue. Not switchable on current post editor

WordPress Trac noreply at wordpress.org
Thu May 28 10:37:03 UTC 2020


#50275: Visual and text editor issue. Not switchable on current post editor
--------------------------+------------------------------
 Reporter:  ysgmesh       |       Owner:  ysgmesh
     Type:  defect (bug)  |      Status:  assigned
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  TinyMCE       |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by ysgmesh):

 Replying to [ticket:50275 ysgmesh]:
 > I posted this before but is like that was in the wrong place.
 > I have been trying to fix this issue and now I think its this like of
 code that is causing it.
 >
 > I am looking for a way to change below line of code to supported
 one...as my sites says it is depreciated.
 >
 > add_filter( 'wp_default_editor', create_function('', 'return
 "tinymce";') );
 >
 > My [https://daily4mative.com] I need help with
 >
 > The whole issue started when Ii migrated from sharehosting to Linode
 server...My visual editor and text editor cannot be switched from one to
 the other.
 > Please help me out of this.


 I found the way to solve depreciated function by changing this
 {{{
 add_filter('wp_default_editor', create_function('', 'return "tinymce";'));

 }}}
   to

 {{{
 add_filter('wp_default_editor', function() { return 'tinymce'; } );

 }}}

 But the issue remains as I cannot toggle between visual and text editor.
 Please I really need help.

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


More information about the wp-trac mailing list