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 7196061
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T20:42:22+00:00 2026-05-28T20:42:22+00:00

I have a page and want to use TinyMCE to edit certain elements on

  • 0

I have a page and want to use TinyMCE to edit certain elements on the page. When I am trying to edit the following elements, the actual content loaded inside tinyMCE is as present in column 2

Original : As loaded in MCE
<dd>1234<span></span></dd> : 1234<span></span>
<tr><td><label>A</label></td><td>B</td></tr> : <label>A</label>B

I understand there is some html validation going on which checks the parent child element relationships (e.g. tr should come only if there is table as parent). Is there a way I can tell tinyMCE to stop doing this and allow me to edit tr elements directly without editing the complete table elements. i.e. I want to stop tinyMCE to make any change in the loaded HTML irrespective its valid or not.

Also, I tried the verify_html and valid_elements settings but seems not helping here

Thanks

  • 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-28T20:42:23+00:00Added an answer on May 28, 2026 at 8:42 pm

    You got two options here

    1. You use the cleanup: false, tinymce init setting which will
      disable the html checking

    or you can use the better option

    2.. and define which elements and childelements the editor should accept as valid

    In your case your valid_elements do niot need to get updated, cause tr, td and label are already valid elements by default (but you may define them invalid if you like).
    What you will need to do is to add them as valid children to the valid_children setting.
    If you want to define tr tags as valid child elements of p-tags and other elements you will need to set something like this

        valid_children: "body[p|ol|ul]" +
        ",p[a|span|b|i|u|sup|sub|img|hr|#text|tr|td|label]" +
        ",span[a|b|i|u|sup|sub|img|#text|tr|td|label]" +
        ",a[span|b|i|u|sup|sub|img|#text|tr|td|label]" +
        ",b[span|a|i|u|sup|sub|img|#text|tr|td|label]" +
        ",i[span|a|b|u|sup|sub|img|#text|tr|td|label]" +
        ",sup[span|a|i|b|u|sub|img|#text|tr|td|label]" +
        ",sub[span|a|i|b|u|sup|img|#text|tr|td|label]" +
        ",li[span|a|b|i|u|sup|sub|img|ol|ul|#text]" +
        ",ol[li]" +
        ",ul[li]",  
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an edit page I want to use to allow editing of user
I have a page that's content is already inside a tab, and don't want
I am using asp.net, i have added tinyMCE editor to my page. I want
I have timepicker in page for one textbox, i want to use it for
I have a page and I want to insert 'Some text' on that page,
I have an html page i want to print a portion of this html
I have a main page that I want to be a sort of dispatch
I have a web page where I want to switch the background image of
I have a page with two tabs that I want to be able to
I have a page in which I want to maintain the value of object

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.