Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

165
Views
Javascript functions in content of of tinymce

The html that i am pasting in source of Tinymce contains a javascript function. But that function never executes when the content is loaded in Tinymce.

For example it should an alert message like an example below. But original content is to hide loader when page loads completes. But the loader never gets hide because the javascript is not executing.

Following is the example code:

<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
    </head>
    
    <body>
        <h1>Some content</h1>
        <script>
            alert('some alert');
        </script>
    </body>
</html>

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

TinyMCE does not allow <script> tags by default due to security concerns. If you are sure they should be allowed in your implementation, you can use the extended_valid_elements option.

I've created a fiddle that demonstrates how it can be done: https://fiddle.tiny.cloud/5Shaab

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!