1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
tinymce for Debian
------------------
The package installs all the files needed by tinymce under `/usr/share/tinymce/www'.
It's pretty easy to use tinymce within your webapp, you just have alias that directory to "tinymce":
Alias /tinymce/ /usr/share/tinymce/www/
<Directory "/usr/share/tinymce/www/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order allow,deny
</Directory>
Then you just have to add the folloing lines to whatever HTML output you want:
<html>
<head>
[...]
<script language="javascript" type="text/javascript" src="/tinymce/tiny_mce.js"></script>
<script language="javascript" type="text/javascript">
tinyMCE.init({
mode : "textareas"
});
</script>
[...]
You can access http://<server>/tinymce/example.html to check if everything works well.
-- Alexis Sukrieh <sukria@debian.org>, Tue, 24 Oct 2006 10:55:00 +0200
|