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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T13:56:24+00:00 2026-06-11T13:56:24+00:00

I am using TinyMCE and loading it dynamically. The issue I am having is

  • 0

I am using TinyMCE and loading it dynamically. The issue I am having is I want to be able to specify different parameters depending on the textarea. I have created a function, but I am stuck on the removeformat parameter as I am not sure how to set it as “default” if I don’t pass in anything for it. A stripped down version of the function is:

function initTinyMCE(sel,lang) {
    tinyMCE.init({
        mode : "specific_textareas",
        editor_selector : sel,
        language : lang,
        removeformat : [  
            {selector : 'p,b,strong,em,i,span,ins', remove : 'all', split : true, expand : false, block_expand : true, deep : true}
        ]
    });
}

So I pass in the selector (sel) and the language (lang) and I would like to pass in the removeformat parameter, but it needs to be an object and I am not sure what to do to make it as if the parameter wasn’t added. I know I could add a conditional statement and declare 2 different tinyMCE.init, but I am hoping and wondering if there is another option to either remove that parameter before initialization or make it pull from the default as if it wasn’t declared?

Any help would be appreciated.

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-11T13:56:25+00:00Added an answer on June 11, 2026 at 1:56 pm

    What would be the best way to do this?

    That depends on the use case. In your case i think this would make sense. You may apply a tinymce configuration setting/parameter after initialization using something like

    tinymce.get('your_editor_id').settings.removeformat = // removeformat or whatever setting youwant to adjust
        {selector : 'p,b,strong,em,i,span,ins', remove : 'all', split : true, expand : false, block_expand : true, deep : true};
    

    Be aware that some tinymce settings will be used during initialization and changing that setting will change nothing after tinymce is initialized (removeformat does not belong to those).

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

Sidebar

Related Questions

I have three textareas using tinymce as text area. They all work in chrome
I have installed VS2010 and MVC2 and testing a simple form using tinyMCE. When
I have an issue where the JavaScript source file is loading in popup for
I am using TinyMCE editor, and it is great. But I having problems with
I'm using TinyMCE for a textarea on a page but it doesn't play nice
i am using tinymce editor for my form. i have three instance of tiny
i am using tinymce to make rich text area input and i have a
I'm using TinyMCE and want to execute a php script get the output and
I am using TinyMCE in advanced theme. Today I must specify in advance the
I'm using TinyMCE editor version 3.5 with jQuery. I'm having problem when I'm trying

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.