Jump to content

Code Wrap HTML in TinyMCE Text Editor


Recommended Posts

We're building our knowledgebase with the usual help articles and some of them need us to add example code that the user can simply copy and paste into their site.


For example, a basic contact form would begin with something like this ...


<input type=hidden name="recipient" value="you@your-domain-name">


Unfortunately, the code wrap function ...


[ CODE ] wrapped text [ /CODE ]


... is not included in the TinyMCE editor so whenever the KB articles is saved the text editor auto formats the code and builds the actual contact form.


Is there a way around this?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated