Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6917417
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T09:43:40+00:00 2026-05-27T09:43:40+00:00

We have a browser test page which is used to diagnose user problems. There

  • 0

We have a “browser test page” which is used to diagnose user problems. There are fields the user can fill out, plus quite a few detections as well. The data from that page can then be emailed into our tech support. The page is at http://www.rephunter.net/test-browser.php. The current page is no longer fully functional, for the following reason:

I have just converted the website from using dojo to jquery. Part of the test includes checking for tinymce support. We used to run the “regular” tinymce library, but have switched over to the jquery version. In the previous version, which used an older version of TinyMCE, support was tested by the following:

if(typeof tinyMCE == 'undefined')

However, with the new instance of tinymce, it always comes up as undefined, even if there is a tinymce editor on the page. I have done some testing and it appears that tinyMCE is defined only after the form is submitted. For example, here is a snippet that shows how this works:

<head>
<script type="text/javascript">
    alert('head tinymce=' + typeof tinyMCE);
    function Validate()
    {
        alert('validate tinymce=' + typeof tinyMCE);
        if (tinyMCE)
            alert('tinymce is defined');
    }f
</script>
</head>

<body>
form onsubmit='Validate()'>
<textarea class="tinymce"></textarea>
<input type="submit" />
</form>
<script type="text/javascript">
    alert('body tinymce=' + typeof tinyMCE);
</script>

No matter what I have done in the detection program, the only way to get a valid tinyMCE object seems to be to submit the page. That is, the ‘body’ alert does not work; the “validate” alert does.

One workaround is to put on the page instructions for the user to look at the page and see if there is an editor rather than just a textarea. However, with our users this would be less than ideal. We really want the email, and thus I need to have a way to detect tinyMCE.

I may be able to work this out by having an onsubmit function that detects tinymce, but I would also like something that can be displayed directly to the user on first display of the page.

Is there a simple solution? Something similar to the elegance of if(typeof tinyMCE == ‘undefined’)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T09:43:41+00:00Added an answer on May 27, 2026 at 9:43 am

    How about this:

    typeof jQuery.fn.tinymce != 'undefined'
    

    I just looked at your plugin’s source and saw this in the beginning:

    (function(b){var e,d,a=[],c=window;b.fn.tinymce=function(j)
                                       ^^^^^^^^^^^^
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a page which spawns a popup browser window. I have a JavaScript
I have a simple html5 test page which uses LocalStorage to display / save
Lets assume I have my browser load an Iframe with <iframe src=test.html> Can I,
Is there a way to have an file browser for Flash that allows the
I have a simple file browser and there I display files and folders, obtained
I have a page which displays ~300 pages worth of tabular data. Firefox, Chrome,
I want a unit-test framework for JavaScript which runs in the browser . Not
I have created a list in jquery mobile which directs to some page on
I've created a simple PHP test page which connects to a MySQL database, selects
I have a weird problem in asp.net. I have a page in which I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.