mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-02 04:43:46 +01:00
17710c20ab
see tinymce.moxiecode.com/ for more info
77 lines
2.9 KiB
HTML
77 lines
2.9 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html>
|
|
<head>
|
|
<title>Plugin: flash</title>
|
|
<link href="css/screen.css" rel="stylesheet" type="text/css" />
|
|
</head>
|
|
<body>
|
|
|
|
<div class="header">
|
|
<h1>Plugin: flash</h1>
|
|
</div>
|
|
|
|
<div class="content">
|
|
<p>This is the "Insert Flash" Dialog contributed by Michael Keck. This one supports popup windows and targets.</p>
|
|
<p>The placeholder for Flash is called 'mce_plugin_flash' and needs a class 'mce_plugin_flash' in the 'css_-style'. Do not name another image name="mce_plugin_flash"!</p>
|
|
|
|
<h3>Installation Instructions</h3>
|
|
<p>
|
|
<ul>
|
|
<li>Copy the flash directory to the plugins directory of TinyMCE (/jscripts/tiny_mce/plugins).</li>
|
|
<li>Add plugin to TinyMCE plugin option list example: plugins : "flash".</li>
|
|
<li>Add this "img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name]" to extended_valid_elements option.</li>
|
|
<li>Add the flash button name to button list, example: theme_advanced_buttons3_add : "flash".</li>
|
|
</ul>
|
|
</p>
|
|
<h3>Initialization Example</h3>
|
|
<p>
|
|
<div class="example">
|
|
<pre>
|
|
tinyMCE.init({
|
|
theme : "advanced",
|
|
mode : "textareas",
|
|
plugins : "flash",
|
|
extended_valid_elements : "img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name]"
|
|
flash_external_list_url : "example_flash_list.js" // Optional URL to a list of SWF movies
|
|
});</pre>
|
|
</div>
|
|
</p>
|
|
|
|
<div class="separator"></div>
|
|
|
|
<h3>Additional note</h3>
|
|
<p>
|
|
The flash plugin has been heavily modified (the original is editor_plugin_original.js) since the original did not play nicely with html content that already contained existing flash tags and in fact stripped out the object
|
|
tags for existing flash html. The rewrite corrects this as well attempts
|
|
to preserve the existing flash tags where possible. The tinyMCE.init call
|
|
should be be something like:
|
|
</p>
|
|
<h3>Initialization Example</h3>
|
|
<p>
|
|
<div class="example">
|
|
<pre>
|
|
tinyMCE.init({
|
|
theme : "advanced",
|
|
mode : "textareas",
|
|
plugins : "flash",
|
|
extended_valid_elements : "img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name|obj|param|embed]"
|
|
});</pre>
|
|
</div>
|
|
</p>
|
|
<p>Note the extra obj,param,embed attributes for the img tag. These attributes
|
|
are used to serialize data from existing flash tags so that they can be
|
|
properly restored. Editing a flash tag with the plugin will cause this
|
|
information to be lost (sorry!) but still produces a working flash nevertheless.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="footer">
|
|
<div class="helpindexlink"><a href="index.html">Index</a></div>
|
|
<div class="copyright">Copyright © 2005 Moxiecode Systems AB</div>
|
|
<br style="clear: both" />
|
|
</div>
|
|
|
|
</body>
|
|
</html>
|