• Resolved shanahan3001

    (@shanahan3001)


    Hi,

    Is there a way to force TinyMCE content in the page/post editing area to reload content from the DB when a page is refreshed/reloaded?

    When I refresh a page in Firefox, using “Reload Page” in the menu, the TinyMCE editor does not seem to get reloaded from the DB. Any edits I made are still there. When I click in Firefox’s address bar & hit the enter key, the TinyMCE editor does get reloaded, and the data stored in the DB is displayed.
    In Safari, the page does get reloaded from the DB, no matter which method I use.

    I’m working on a plugin where this is important. I always want the TinyMCE content to get reloaded from the DB.

    Is there a way to force this to happen?

    Thanks in advance,
    Dan

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    What ‘TinyMCE’ content? You mean the toolbar’s missing?

    Thread Starter shanahan3001

    (@shanahan3001)

    The content I want to refresh is the editable text in the iframe <iframe id=”content_ifr”>.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    So … just to make sure I understand what your saying, when you’re EDITING a post or page and refresh that page, presumably without saving first, the page content isn’t actually refreshing?

    Have you started with turning off all your plugins?

    Thread Starter shanahan3001

    (@shanahan3001)

    Thanks for your response.

    Yes, all plugins are off.

    I just read what the problem was.
    (https://stackoverflow.com/questions/4263536/firefox-cache-textarea-value)
    I didn’t realize it has nothing with WordPress or TinyMCE, but is the default behavior of a textarea in Firefox, and I need to set an attribute I never heard of, autocomplete.

    <textarea autocomplete=”off”></textarea>

    So for TinyMCE I added the following code to the plugin I’m working on:

    jQuery(‘#postdivrich #editorcontainer #content’).attr(‘autocomplete’, ‘off’);

    I’m not sure if I needed to specify all of those element IDs to get to the text area, but this works. Hooray!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Refresh TinyMCE on Firefox, possible iframe issue?’ is closed to new replies.