Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
TinyMCE FAQs | ||||||||
Line: 60 to 60 | ||||||||
Unfortunately there is no simple way to describe what will, and what won't, work with WYSIWYG. The best tactic is to use the <sticky> tag to protect such content (this tag is automatically applied by the "Protect forever" format). | ||||||||
Added: | ||||||||
> > | Q: How can I add a custom button to the WYSIWYG editor toolbar?
A: Here is an example how to add a
First, add this to the
"setup" : function(ed) { ed.addButton('helloworld', { title : 'Hello world', image : '%ICONURLPATH{globe}%', onclick : function() { ed.focus(); ed.selection.setContent('Hello world!'); } }); },
Then, create a global
* Set TINYMCEPLUGIN_ADDITIONAL_BUTTONS1 = helloworld
That will add a | |||||||
Related Topics: TinyMCEPlugin, TinyMCEQuickHelp, WysiwygPlugin |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Added: | ||||||||
> > |
TinyMCE FAQsFrequently Asked Questions of the TinyMCEPlugin integration.
On this page:
Q: How can I disable the WYSIWYG editor?A: There are several ways to disable the WYSIWYG editor; the first option is preferred:
Regardless of the setting, you can invoke either editor:
Q: How do I set a TWiki variable inside TinyMCE?A:
Q: How can I protect content from TinyMCE?A:
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 the
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
Q: I write TWiki applications. What is safe to edit?A: It's impossible to be 100% certain that the use of a WYSIWYG editor will not change existing content such that TWiki Applications no longer work. The WysiwygPlugin is set up by default to make it as easy as possible to create new content and import content from other applications. However some TWiki applications are written such a way that they "just work" - they take silent advantage of the sloppy parser used in TML rendering. Sloppy syntax can break the rules that WYSWYG relies on to be able to interpret TML and present it for editing. Unfortunately there is no simple way to describe what will, and what won't, work with WYSIWYG. The best tactic is to use the <sticky> tag to protect such content (this tag is automatically applied by the "Protect forever" format). Related Topics: TinyMCEPlugin, TinyMCEQuickHelp, WysiwygPlugin |