Preview: install.html
Size: 8.61 KB
/home/jambtst2015/www/ckeditor/plugins/easyUpload/docs/install.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>EasyUpload plugin</title>
<link href="styles.css" rel="stylesheet" type="text/css">
</head>
<body>
<h1>EasyUpload Plugin for FCKeditor</h1>
<!--
<div id="languages"> Change your language
<ul>
<li><a href="install_es.html" lang="es"><img src="es.png" alt="Español" width="23" height="15" border="0"></a></li>
</ul>
</div>
-->
<h2>Introduction</h2>
<p>This is a plugin that allows an alternative easy way to add files and images in <a href="http://www.fckeditor.net">FCKeditor</a>.
It provides three buttons to make it easy for new users to upload pictures or files as well as creating external links.</p>
<p>The dialogs are based on the default Image and Link dialogs, but everything
that wasn't extrictly neccesary has been removed so the users are able to work
without any previous knowledge.</p>
<h3 id="contact">Author:</h3>
<p><a href="mailto:amla70@gmail.com">Alfonso Martínez de Lizarrondo</a></p>
<h3>Sponsored by:</h3>
<p><a href=" http://www.edu20.org">Edu 2.0</a></p>
<p><a href=" http://www.primarysite.net">PrimarySite</a></p>
<h3>Version history: </h3>
<ol>
<li>0.1: 04-August-2006. First version.</li>
<li>0.2: 19-April-2008. Updated for FCKeditor 2.6.</li>
<li>0.3: 26-September-2008. Allow to use an external image and browse the server. The assignment of HTML attributes has been removed
and instead a dropdown with the available classes for <img> is shown.</li>
</ol>
<p><a href="http://martinezdelizarrondo.com/easyupload/">Get the latest version and/or updated info</a> </p>
<h2>Installation</h2>
<h3>1. Copying the files</h3>
<p>Extract the contents of the zip in you plugins directory, so it ends up like
this<br>
<img src="installation.png" alt="Screenshot of installation" width="311" height="346" longdesc="#install"></p>
<pre id="install">
editor\
...
js\
lang\
plugins\
...
easyupload\
fckblank.html
...
fckplugin.js
readme.html
docs\
fck_image\
lang\
...
skins\
</pre>
<h3>2. Adding it to FCKeditor</h3>
<p>Now add in your <em>fckconfig.js</em> or custom js configuration
file the following line:
<code>FCKConfig.Plugins.Add( 'easyUpload', 'en' ) ;</code>
</p>
<h3>3. Adding it to the toolbarset</h3>
<p>Add the buttons <strong>'easyImage','easyFile','easyLink'</strong> (case sensitive) to your toolbarset:
<code>FCKConfig.ToolbarSets["Basic"] = [<br>
['Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink',
'-'<strong>,'easyImage','easyFile','easyLink'</strong>,'-','About']<br>
] ;</code>
</p>
<p>For the Image and Link buttons it uses the default pictures according to your
FCKeditor theme, and the File uses a typical paperclip picture.</p>
<p>If you add the new buttons you might want to remove the default Image and Link
options and replace with these ones.</p>
<h3 id="configure">4. Configure the uploads</h3>
<p>
Then you need to specify the language that you'll use to process the uploaded files:
<code>var _QuickUploadLanguage = 'php' ; // asp | aspx | cfm | lasso | perl | php | py</code>
<p>
And if you find it neccesary adjust the path to the upload script or the
extensions that will be processed at the client side to allow or reject the
file before it is uploaded.
<code>
FCKConfig.LinkUpload = true ;
FCKConfig.LinkUploadURL = FCKConfig.BasePath + 'filemanager/connectors/' + _QuickUploadLanguage + '/upload.' + _QuickUploadExtension ;
FCKConfig.LinkUploadAllowedExtensions = ".(7z|aiff|asf|avi|bmp|csv|doc|fla|flv|gif|gz|gzip|jpeg|jpg|mid|mov|mp3|mp4|mpc|mpeg|mpg|ods|odt|pdf|png|ppt|pxd|qt|ram|rar|rm|rmi|rmvb|rtf|sdc|sitd|swf|sxc|sxw|tar|tgz|tif|tiff|txt|vsd|wav|wma|wmv|xls|xml|zip)$" ; // empty for all
FCKConfig.LinkUploadDeniedExtensions = "" ; // empty for no one
FCKConfig.ImageUpload = true ;
FCKConfig.ImageUploadURL = FCKConfig.BasePath + 'filemanager/connectors/' + _QuickUploadLanguage + '/upload.' + _QuickUploadExtension + '?Type=Image' ;
FCKConfig.ImageUploadAllowedExtensions = ".(jpg|gif|jpeg|png|bmp)$" ; // empty for all
FCKConfig.ImageUploadDeniedExtensions = "" ; // empty for no one
</code>
</p>
<p>Finally:<br>
You must enable the uploader script under filemanager/upload/<strong> YOUR LANGUAGE </strong>
and check there that the allowed and denied extensions match your needs. You
can also adjust in that script the place were the files will be saved, by
default all the files are saved at the root of the user files directory,
there's no distinction according to the type (Image, File), but you can change it in that config file.</p>
<h3>5. Context menu</h3>
<p>
The plugin provides the context menu entries for link and image elements, so
you might also remove those ones from you configuration:
<code>
FCKConfig.ContextMenu = ['Generic','Anchor','Flash','Select','Textarea','Checkbox','Radio','TextField','HiddenField','ImageButton','Button','BulletedList','NumberedList','Table','Form'] ;
</code>
</p>
<h3>6. Use it</h3>
<p align="right">Now empty the cache of your browser and reload the editor, the new buttons should be ready.</p>
<h2>Final notes</h2>
<p>If you find this plugin useful, consider making a donation so it can be further
improved, any amount can help to keep the development running.</p>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but04.gif" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
<input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIH2QYJKoZIhvcNAQcEoIIHyjCCB8YCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYAbYIYvNE50oNSFj8nHIeZ0/T5OzQfY8n+5fliwYQtSYuvHnix6+DAVVKVuRmpV4EnbzXNssyi+sdCZb+Sn7nBH7+KWP5+4L4NMIcA7OkXsoPz6qV/nBwUBnovch1hU7sqREOZJAUc42/Szv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D5NLoPCibKL7nihgPd9AFCVyw6fLOg82F1MojGS2Gu6c6bGD2L827VCyg1WRm14svHTEwSnprvxBEbi91cBrQcNP5MZFDOuoucZg9uPGr/S8xzp0+Af-----END PKCS7-----
">
</form>
<p>If you need some special feature for this plugin, or if you need any other kind of plugin
for FCKeditor then <a href="#contact">contact me</a> and we can discuss it</p>
<h2>Disclaimers</h2>
<p>FCKeditor is © FredCK.com</p>
</body>
</html>
Directory Contents
Dirs: 0 × Files: 6