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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T02:00:38+00:00 2026-06-18T02:00:38+00:00

Here is my scenario: I want to be able to create content like <div>

  • 0

Here is my scenario:

I want to be able to create content like

<div> <a id=”supportTile” class=”contentModule”
href=”/Support”> <h2>Support</h2> </a>
</div>

However tinyMCE strips it to

<div> <h2>Support</h2> </div>

My configuration is currently like this (using TinyMCE jQuery):

script_url: _applicationRoot + "Scripts/tiny_mce/tiny_mce.js",
theme: "advanced",                    
plugins: "paste,filemanager,imagemanager,advimage,inlinepopups",
...
extended_valid_elements: "img[!src|border:0|alt|title|width|height|style|name|id|class],a[href|target|title|onclick|name|id|class],article[name|id|class],div[name|id|class],section[name|id|class]",
schema: "html5",               
...
convert_urls: true,
document_base_url: _applicationRoot

I tried setting verify_html: false but no luck.

I tried removing extended_valid_elements and replacing it with:

valid_elements: "*[*]",
verify_html: false

No luck either.

Can you see something wrong with my configuration? Is this achievable at all?

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-06-18T02:00:40+00:00Added an answer on June 18, 2026 at 2:00 am

    Yes, this should be achievable. In order to be able to produce output like

    <div> <a id="supportTile" class="contentModule" href="/Support"> <h2>Support</h2> </a> </div>
    

    you will have to modify the tinymce setting valid_children and valid_elements. You need to be aware that there is a default setting which you might need to enlarge.

    valid_elements: "*[*]" won’t work because of a bug that hopefully will be removed in the newest or next version.

    I use this settings (i don’t use divs nor h2s)

    valid_elements: "@[id|class|title|style],"
    + "a[name|href|target|title|alt],"
    + "#p,-ol,-ul,-li,br,img[src|unselectable],-sub,-sup,-b,-i,-u,"
    + "-span[data-mce-type],hr",
    
    valid_child_elements : "body[p,ol,ul]"
    + ",p[a|span|b|i|u|sup|sub|img|hr|#text]"
    + ",span[a|b|i|u|sup|sub|img|#text]"
    + ",a[span|b|i|u|sup|sub|img|#text]"
    + ",b[span|a|i|u|sup|sub|img|#text]"
    + ",i[span|a|b|u|sup|sub|img|#text]"
    + ",sup[span|a|i|b|u|sub|img|#text]"
    + ",sub[span|a|i|b|u|sup|img|#text]"
    + ",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

Here's the scenario: I want to be able to support both SQL Server CE
Here is the scenario: I want to be able to print the C Style
Here's the scenario, I want to create a set of random, small jpg's -
Here's the scenario, I want to get Data from the Service to Activity Whenever
Here's the scenario: In production, I want to send and receive sms messages. In
So here is the scenario: I have a MOSS 2007 box and I want
I want to open pdf file in webview but the scenario is different here,
Here is the simple scenario that I want to apply; There is a .NET
Here is my scenario. I want to implement A* (in Python) without having to
Here the scenario : A method is called each minute by a timer. This

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.