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

  • Home
  • SEARCH
  • 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 8601927
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T01:57:28+00:00 2026-06-12T01:57:28+00:00

I would like to retrieve the html contents of the tinymce area, but without

  • 0

I would like to retrieve the html contents of the tinymce area, but without the cleanup and the filters applied. How can I do that? For example, newlines are removed from the html source with this call, but I want to keep them.

http://www.tinymce.com/wiki.php/API3:method.tinymce.Editor.getContent

Function call I have been testing in chrome:

console.log(tinyMCE.activeEditor.getContent({ format: 'raw' }));
console.log(tinyMCE.activeEditor.getContent({ format: 'text' }));
  • 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-12T01:57:29+00:00Added an answer on June 12, 2026 at 1:57 am

    This is the easy way using jQuery:

    var ed = tinymce.get('your_editor_id');
    var content = $(ed.getBody).html();
    

    Be aware that there may be some tinymce internal markers (spans) inside the content.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to retrieve the contents of a file, filter and modify them
I would like to retrieve an ordered query result, but I need to have
I am adding data to my database, but would like to retrieve the UnitID
Using Zend_Dom_Query, I would like to retrieve meta data out of an HTML string.
I would like to retrieve the URL (full path) of page2.html in the following
I would like to retrieve the contents of a javascript script instead of executing
Lets say I have example.html and inside that i have a code like <iframe
I can retrieve the contents of a webpage into a variable like: x =
I would like to retrieve the AppSetting key from the assembly config file called:
I would like to retrieve the categories of my website in order to build

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.