• Magic Fields multiline text areas are not displaying the TinyMCE text editor as they should. An error in the browser console indicates that the “simple” theme for TinyMCE cannot be found. Providing this theme will permit multiline text areas to display the simple editing controls but the advanced controls will not show. Additionally, switching from Visual to HTML editing mode will result in the “simple” theme controls disappearing and the content in the textarea will be stuck in HTML mode, unable to return to Visual mode.

    https://www.ads-software.com/extend/plugins/magic-fields-2/

Viewing 11 replies - 16 through 26 (of 26 total)
  • That was is, Stuartt. I had to enable the “Editor” to get this to work.

    Which is kind of a bummer…I’d really love to keep it clean for the client so they wouldn’t need to scroll past this large editor box just to get to the image upload (it’s for a very simple portfolio/gallery setup).

    Hunk, any idea how I could do that?

    Thanks a ton, guys…saved me the last hairs on my head…

    Thread Starter stuartt

    (@stuartt)

    Glad it helped. Personally I like that the editor is now handled this way (now that I know about it, anyway… lol).

    Plugin Author hunk

    (@hunk)

    if no check “editor” in “Supports” of your post type, wordpress dont adds TinyMCE scripts therefore gives error.

    Thread Starter stuartt

    (@stuartt)

    This plugin is not working for me. My hack from earlier suddenly stopped working so I reinstalled the plugin (the dev version) and reverted all of my changes but still, MF wants the tinymce “simple” theme and will not work without it. However, I need the advanced theme.

    Here is a screen shot of my error console.

    And here is what I see in the editor.

    encountered the same issue although we are in different case. Certainly, there is no simple theme of the tinymce controllers. It can be fixed by download the tinymce from the official site, and paste the simple theme folder into the /wp-include/js.

    I am wonder how to set to use the advance theme when employ the tinymce:)

    Thanks!

    I had a similar issue where I was getting “Uncaught ReferenceError: switchEditors is not defined”. I was writing my own plugin and I ended up using this in WP 3.3.1:

    $url=site_url(‘wp-admin/js/editor.js’);
    wp_register_script(‘editor_js’,$url);
    wp_enqueue_script(‘editor_js’);
    wp_editor(”, ‘c2c-opps-editor’, $settings);

    I found the solution. Example.
    Trick is to edit multiline_field.php and add css (‘editor-buttons‘) and js (‘editor‘) dependencies – which otherwise are added only if the content editor is present.

    JS editor dependency might not look needed at first, but without it, when you switch to HTML and back to visual, editor will crash.

    class multiline_field extends mf_custom_fields {
    
      public $allow_multiple = TRUE;
      public $has_properties = TRUE;
    
        function get_properties() {
        return  array(
          'js'  => TRUE,
          'js_dependencies' => array
          (
          	'editor'
          ),
          'css' => FALSE,
          'css_dependencies' => array
          (
          	'editor-buttons'
          )
        );
      }
    (...)

    WP version 3.3.2

    Thanks CircaLucid, js error made me look in right direction.

    Thanks InteliWISE, but that still hasn’t fixed this ongoing problem. Toggling from the plain text editor to tinymce editor still doesn’t load unless I save the post again with tinymce editor already active.
    Using Magic Fields 2.0.1, WordPress 3.3.4, default theme, fresh install, no additional plugins.

    Hi, i’ve had the same issue with MF2 and TinyMCE. I resolved it in deactivating the tinyMCE plugin, then in MF2 i clicked on “edit post type” on my post type and save the post type (without changing anything), diconnected from the WP admin and reconnecting, reactivating the TinyMCE plugin and the visual editor reappaeared … hope it would help someone.

    While I truly love Magic Fields, I found the best solution to this problem lies here:

    https://www.advancedcustomfields.com

    So grateful for MF and MF2, but this plugin does everything it can do (and more), with far less bugs.

    thank you very much! I hope this will be properly fixed eventually.

Viewing 11 replies - 16 through 26 (of 26 total)
  • The topic ‘Tiny MCE Editor not appearing in Magic Fields 2’ is closed to new replies.