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

114
Views
How to avoid certain HTML tags in tinymce?

I don't show a fiddle because it doesn't even seem to work in the tinymce documentation. Please watch the demo here, in JS it says invalid_elements: 'strong, b, em, i', however you can clearly make the text bold.

Is there something I'm missing? Why is it not working?

EDIT: you can test this minimal playable code also by pasting it here

<script type="text/javascript">
tinymce.init({
  selector: 'textarea',
  invalid_elements: 'strong,b,em,i',
  valid_elements: 'p',
});
</script>

<form method="post" action="dump.php">
    <textarea name="content"></textarea>
</form>
about 4 years ago · Juan Pablo Isaza
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!