How to not load the theme css when creating a TinyMCE plugin

I'm in the process of creating my first TinyMCE plugin. I'm including 'tiny_mce_popup.js' in the html and it's loading 'advanced/skins/default/dialog.css' by default.

I don't need TinyMCE to load this css and the only solution I have found so far is documented here http://www.mattephraim.com/blog/tag/tinymce/; and as the author suggests, it is not the most elegant solution. Please help if you know the proper way of handling this.

I found the official documentation by digging 1mm into the 'tiny_mce_popup.js' code. Basicly all you gotta do is in init() of editor_plugin.js, add popup_css as an option and set it to false:

ed.windowManager.open({
  ...
  file : url + '/dialog.htm',
  width : 640 + parseInt(ed.getLang('attachment_fu.delta_width', 0)),
  height : 485 + parseInt(ed.getLang('attachment_fu.delta_height', 0)),
  popup_css : false,
  ...
})

Related Articles
  • How can i change the tab widget properties ,like background etc programmatically. i have created the project using tabbed Activity public class MainActivity extends ActionBarActivity implements ActionBar.TabListener { /** * The [email protected] android.support
  • I am trying to run "HelloWorld" android application, but the application doesn't load in the emulator. Emulator loads fine with Home screen and nothing happens after that, any help is appreciated. Here is console log [2011-09-18 15:37:37 - Hello
  • here's the code for picasso: ImageView img = (ImageView)findViewById(R.id.product_image); Picasso.with(this) .load(_url) .fit() .into(img, new Callback() { @Override public void onSuccess() { } @Override public void onError() { } }); here's the value
  • I am trying to deploy my first ASP.NET web application. So far I have gone to Build > Publish Web Site > Publish to file system and it has created my web application, packaging the .cs files into the bin directory in a number of .dlls. I have then c
  • How do I change the timeout constraint when calling a WebService from a Silverlight 4.0 app? It doesn't have a Timeout property attached to it like it seems to have had before. Edit: Anyone? Check the ServiceReferences.ClientConfig file: <binding nam
  • I want to load the key value pairs from a class, or id, in a CSS stylesheet into a JavaScript object in order to access the data. Note that I do NOT want to add that class to a DOM element (at least not directly) The only way I can see in JQuery is t
  • I'm having difficulties running a compiled app on an iPhone 6 (iOS8). It works fine in the simulator. I get this error message: App installation failed Could not inspect the application package Originally there were error messages - such as the one h
  • I stumbled upon a strange behaviour of the XMLHttpRequest. Maybe I'm just not well informed enough about its possibilities or possible how Javascript pages load, so could someone please confirm my question? When I put plain Javascript in a file that
  • We're having a weird problem at work that happens only in chrome. It looks like the css file is getting cached and the content of this file isn't getting re-downloaded. The problem is that when using a fresh session for example "private session"
You Might Also Like