• We use the TinyMCE Editor in custom metaboxes to allow our authors to enter additional text, which we then display in various sections of the portal. As an example, a summary for a test report.

    In Firefox, we are now facing an issue where the editor’s frame (icons/controls) loads, but the iframe itself remains empty. The content to be displayed is present in the textarea but cannot be shown. No such Problems in Chrome, Edge or Safari.

    The problem is not persistent but occurs in approximately 80% of backend requests.

    The call for the editor:

    $data = $data[0]['short_conclusion'];
    wp_nonce_field($this->nonceAction, $this->nonceName); ?>
    <div>
        <h3>Kurzfazit</h3>
        <?php wp_editor(htmlspecialchars_decode($data), 'iim_producttest_short_conclusion_editor', $settings = array('textarea_name'=>'iim_producttest_short_conclusion_editor', 'media_buttons' => false, 'textarea_rows' => 5, 'wpautop' => false, 'quicktags' => false, 'tinymce' => $tinymcsCallback)) ?>
    </div>

    I suspect a loading order issue, but I can’t find any approach for analysis or the actual cause. Can anyone help?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi,
    do you see the content in the HTML source?
    Any message when you check the console within Firefox?
    Which Firefox version are you using?

    Thread Starter fweigelt

    (@fweigelt)

    Yes, the content is in the HTML Source. The Textarea is there and set to hidden.

    There are Messages, yes. But those are the same in Chrome and they not different, if it works and the editor can be used.

    It happens in Normal Firefox (113.0.2 (64-Bit)) and Firefox Developer (114.0b9 (64-Bit)) on MacOS and Windows.

    If these messages are error’s, than it’s normal that some of them doesn’t execute al Javascript functions. Try to avoid all error’s.

    Thread Starter fweigelt

    (@fweigelt)

    No Errors.

    Just some warnings that are not related to tinymce. One Message “Deprecated TinyMCE API call: .onNodeChange.add(..)” but we do not call that method.

    That’s strange, does it happen on different PC’s as well (same browser type)?

    Thread Starter fweigelt

    (@fweigelt)

    Yes, and they are in completely different environments, our offices habe a couple of 100km of distance between them.

    It also happens with different hosting environments. The live, staging and my local testing Systems all have this problem.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Empty TinyMCE in Custom Metabox in Firefox’ is closed to new replies.