# Frequently Asked Questions

Here are some common answers to common questions. If you need more help you can always visit the TinyMCE Forum on the TinyMCE web site.

- TinyMCE is broken, what should I do?
- Why is my paths incorrect, I want absolute/relative URLs?
- Why does TinyMCE strip aways attributes or tags from my source?
- How do I change the default font size/face color of the editor?
- How do I remove/add buttons/controls to TinyMCE?
- Why does my HTML output include lots of \" like <a href=\"mylink.htm\">link</a>?
- TinyMCE takes ages to load, is there a way to make it load quicker?
- TinyMCE stops working when placed in tabs or hidden divs?
- Can I use TinyMCE in my commercial application?
- Are there any restrictions to using TinyMCE in my commercial application?
- I don't like LGPL, is there a commercial license available for me?
- Do you provide support?
- Who made this software?

## TinyMCE is broken, what should I do?

There are a few things you should check before posting questions about your problem at the forum or sourceforge.

- Does TinyMCE work on the TinyMCE website. Then you know that TinyMCE works with your browser.
- Try to disable any other JavaScripts on the page, some scripts interfere with internal functions that TinyMCE uses. Those scripts are probably poorly written.
- Check that you havn't missed removing the last , character in your initialization code and that all the other rows have a trailing , character.
- Verify that the path/URL to TinyMCE is correct, you can use the excellent tool Fiddler for this and other HTTP debugging.
- Do not cross domain load TinyMCE or any other script unless you really really must, since this will invoke various browser security features. In other words, try placing everything on the same server.
- Don't place textareas within paragraph elements since this is not valid HTML and it will break MSIE and TinyMCE.

## Why is my paths incorrect, I want absolute/relative URLs?

These are the diffrent configuration scenarios for URLs within TinyMCE:

Output | Config | Description
--- | --- | ---
http://www.site.com/path1/path2/file.htm will be converted to path2/file.htm | relative_urls : true, document_base_url : "http://www.site.com/path1/" | This will convert all URLs within the same domain to relative URLs. The URLs will be relative from the document_base_url.
path2/file.htm will be converted to /path1/path2/file.htm | relative_urls : false, remove_script_host : true, document_base_url : "http://www.site.com/path1/" | This will convert all relative URLs to absolute URLs. The URLs will be absolute based on the document_base_url.
path2/file.htm will be converted to http://www.site.com/path1/path2/file.htm | relative_urls : false, remove_script_host : false, document_base_url : "http://www.site.com/path1/" | This will convert all relative URLs to absolute URLs. The URLs will be absolute based on the document_base_url.
path2/file.htm or http://www.site.com/path1/path2/file.htm will not be converted at all. | convert_urls : false | This option will preserve the URLs as they are in a separate attribute while editing, since browsers tend to auto convert URLs.

## Why does TinyMCE strip aways attributes or tags from my source?

You need to check out the "valid_elements" and "extended_valid_elements" option in the configuration. By default, TinyMCE only allows certain tags and attributes. TinyMCE also tries to follow the XHTML specification as much as possible (and so should you), this can cause some unexpected source changes, there are however configuration options to battle this issue, study the configuration options in details.

## How do I change the default font size/face color of the editor?

We recommend that you have a look at the content_css option, this enables you to switch the CSS file TinyMCE uses for it's editing area with a file with your CSS rules for font size and so forth.

## How do I remove/add buttons/controls to TinyMCE?

There are quite a few options for this but a reference of all available buttons/control names can be found in the button/control reference.

## Why does my HTML output include lots of \" like <a href=\"mylink.htm\">link</a>?

This is probably because you are using PHP and it has a feature that's called magic quotes that is enabled by default. You can read more about this at the PHP website or use the stripslashes function.

## TinyMCE takes ages to load, is there a way to make it load quicker?

If you use PHP on your server you can use tiny_mce_gzip.php instead of tiny_mce.js in page script call. This PHP file bundles all .js files together into two HTTP requests instead of one for each plugin, language file and theme and it also GZip compresses these files.

## TinyMCE stops working when placed in tabs or hidden divs?

Since Gecko based browsers Mozilla/Firefox has a bug where it looses designMode on iframes that are hidden a special option is needed that re-enables the design mode when reappearing after being hidden. Enable this option to resolve the issue: "auto_reset_designmode".

## Can I use TinyMCE in my commercial application?

Yes you can, the LGPL license is a Free Software License. You can read the whole license here or visit Free Software Foundation web site here

## Are there any restrictions to using TinyMCE in my commercial application?

Yes, all copyright notices must be intact. Moxiecode Systems are still the copyright holders of the source code, so you can not use the code for other applications. Any modifications or add-ons you make to the source has to be contributes back to the TinyMCE community.

If you start to make a lot of revenue from using TinyMCE, please remember the time and dedication that has been put into this by other developers, respect this and give credit to those who deserve it.

## I don't like LGPL, is there a commercial license available for me?

Yes, we can draw up a license for you that enables you to remove copyright restrictions or anything else you would like to have in this license agreement. Contact us through email, sales (at) moxiecode (dot) com.

## Do you provide support?

We do not provide any non-commercial support outside the forum on the TinyMCE web site. If you require commercial support, contact us by email, sales (at) moxiecode (dot) com.

## Who made this software?

The author of TinyMCE is Moxiecode Systems, parts of code has also been contributed by others, here are the credits list.