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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T18:06:15+00:00 2026-06-07T18:06:15+00:00

I am using Drupal 7 with TinyMCE via the Wysywig module. I have enabled

  • 0

I am using Drupal 7 with TinyMCE via the Wysywig module.

I have enabled the insert image option but when the insert image dialogue pops up the user is shown a number of options for the image which would be undesirable. In addition there is no option to add a CSS class to the image. Is there a way that I can easily change this dialogue to remove options like dimensions, alignment, border etc and add in a class option?

  • 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-07T18:06:17+00:00Added an answer on June 7, 2026 at 6:06 pm

    To apply CSS classes to images: Normally, there is an option under the “Appearance” tab to add a CSS class to the image by a drop-down of available classes. If there are no tabs in the pop-up box (sounds like there aren’t), go to the “Buttons and Plugins” section of the settings for your WYSWIWYG profile (under Configuration > Content Authoring) and tick the “Advanced image” box.

    This by default gives a crazy long list of every class in your theme. To change this to something more useful, go to the CSS section and change the “Editor CSS” drop down. This is used for the image classes in Advanced Image settings as well as other lists of classes. You probably want to set it to “Define CSS” and create a CSS file with a limited selection of classes, then point to this in CSS Path.


    To prune the user interface to get a more limited, user-friendly range of options: I don’t know of any way to do this through configuration. There are, however, two brute-force methods:

    1. Hide them with CSS (display: none;) This is what I use. It’s a little harder than it should be because the HTML markup is ghastly – all tables with no classes or ids in useful places – but it’s reasonably straightforward if you use things like nth child rules and count how many <tr> elements there are until you reach the one(s) you want to remove (this assumes your users won’t be administrating content using IE 8 or less, or FF3 – if they might, write some jQuery instead).
    2. Hack the TinyMCE code. I haven’t tried this. Investigate the HTML files in sites/all/libraries/tinymce/jscripts/tiny_mce/themes/advanced. Messing around with this doesn’t look pleasant, it’s probably very easy to break the interactivity.

    Here’s what I use to get a nice, simple, one tab interface which has nothing but Image URL, alt text, mouseover text, preview, dimensions, and a CSS class dropdown. I have the following CSS code added to the end of sites/all/libraries/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/dialog.css. It turns off the features I don’t want, kills the tabs, and squeezes it all neatly into the size of the popup:

    #appearance_panel.panel { display: block; }
    .tabs { display: none; }
    #appearance_panel tr:nth-child(1), #appearance_panel tr:nth-child(3), #appearance_panel tr:nth-child(4), #appearance_panel tr:nth-child(5), #appearance_panel tr:nth-child(6)#appearance_panel tr:nth-child(4), #appearance_panel tr:nth-child(5), #appearance_panel tr:nth-child(6), #appearance_panel tr:nth-child(8) { display: none; }
    .panel_wrapper #general_panel { height: 270px; }
    .panel_wrapper { padding: 3px 10px 3px;}
    body { margin: 0; }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using drupal 7 with apachesolr module. I have an external file field
I'm using Drupal . I have a module which loads a form onto a
I installed the WYSIWYG module on my Drupal 6 site, and I'm using TinyMCE.
I'm using Drupal 6 with the Views module. I have a view with an
node/* user/* comment/* This is what I am using to enable tinyMCE Drupal on
I'm using Drupal 7. My bg image in page.tpl.php file and image get to
I'm using Drupal and I notice that if I have my CSS files aggregated
I'm using drupal, with a chat module that creates divs for each chat. Because
I'm using Drupal 6. I have a custom view that needs to be filtered
I'm currently using TinyMCE 3.3 on a drupal site, with an annoying problem. Using

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.