TinyMCE FAQs
Frequently Asked Questions of the TinyMCEPlugin integration.On this page:
- Q: How can I disable the WYSIWYG editor?
- Q: How do I set a TWiki variable inside TinyMCE?
- Q: How can I protect content from TinyMCE?
- Q: How do I use a TWiki variable inside TinyMCE?
- Q: Why doesn't copy-paste work on Internet Explorer?
- Q: Why do all my popups contain raw HTML?
- Q: I write TWiki applications. What is safe to edit?
Q: How can I disable the WYSIWYG editor?
A: There are several ways to disable the WYSIWYG editor; the first option is preferred:- Use the
EDITMETHOD
preferences setting:- You can configure TWiki to use either WYSIWYG mode or raw edit mode by default in your profile page TWikiGuest. Select
wysiwyg
to use the WYSIWYG editor (default), orraw
to use the raw text editor. - To disable the WYSIWYG editor on a web level or topic level, add this preferences setting in WebPreferences or in a topic, respectively:
- Set EDITMETHOD = raw
- You can configure TWiki to use either WYSIWYG mode or raw edit mode by default in your profile page TWikiGuest. Select
- Use the
TINYMCEPLUGIN_DISABLE
preferences setting:- To disable the WYSIWYG editor, use this preferences setting:
- Set TINYMCEPLUGIN_DISABLE = 1
- You can use TWikiVariables for the value to conditionally disable/enable it.
- To disable the WYSIWYG editor, use this preferences setting:
- Use the
NOWYSIWYG
preferences setting:- To disable the WYSIWYG editor, you can also use this preferences setting:
- Set NOWYSIWYG = 1
- To disable the WYSIWYG editor, you can also use this preferences setting:
- Use the
WYSIWYG_EXCLUDE
setting as described in WysiwygPlugin to disable the editor subject to certain content in the page, such as TWikiVariables or pure HTML. This can also be set on a web, topic, or personal basis. - Add
;nowysiwyg=1
to the end of the edit URL to disable it for a single edit.
- If the WYSIWYG editor is enabled, you can follow the "Raw edit" link at the bottom of the page to use the raw text editor,
- Else if the WYSIWYG editor is disabled, you can follow the "WYSIWYG" link at the bottom of the page to use the WYSIWYG editor.
Q: How do I set a TWiki variable inside TinyMCE?
A:- Create a list item using the toolbar button
- In the list item, type Set NAME = value
- (Optional) Select the value, and format it using
Protect on save
format.
Q: How can I protect content from TinyMCE?
A:- Select the content and select the "Protect forever" format. This will add <sticky>..</sticky> tags around the content, which don't interfere with display but do prevent WYSIWYG editors from trying to interpret the content as HTML.
Q: How do I use a TWiki variable inside TinyMCE?
A: Just type it in. When the topic is saved, what you type will be saved just as you wrote it. If any part of your variable parameters is sensitive to spacing, then select the entire TWiki variable and assign theProtect on save
style to it.
Q: Why doesn't copy-paste work on Internet Explorer?
A: It does, but you have probably got your security settings in IE set up to disable it. In IE got to Tools->Security->Internet->Custom Level->Allow paste operations via script. If this is set to 'Disable', then all internet applications are blocked from pasting using Javascript. Either enable this option, or add your TWiki site to the list of Tools->Security->Trusted Sites.Q: Why do all my popups contain raw HTML?
A: You probably have your file extensions set up in Apache so that.htm
files are treated as plain text. Look through your Apache config (including .htaccess
for the pub
directory) for a line that says something like: AddType text/plain .htm
(probably with a bunch of other extensions). You can either remove .htm
from that list, or you can add a .htaccess for the pub/TWiki/TinyMCEPlugin directory that contains the line AddType text/html .htm