Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

In TinyMCE, can ChangeElementType change a P tag to a CODE tag?

Vote:
 

I have this CSS for TinyMCE:

code.csharp {
   EditMenuTitle: Code Styles;
   EditMenuName: C#;
   ChangeElementType: true;
}

    

The ChangeElementType should change a P to a CODE tag upon application.  However, it does not.  When in a P tag, applying the style does nothing.  If I change the selector to "H1.csharp", however, it does work, so I know the syntax is right.

Shouldn't TinyMCE change the P to a CODE (which is a block-level element)?

#64038
Dec 08, 2012 0:42
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.