|
|
Intallation of the FCKW Dokuwiki Pluginhtml2wikithe fckw plugin builds on the CPAN HTML::WikiConverter package. so the first thing you need to do, is install this package with the DokuWiki dialect on your server as follows: sudo perl -MCPAN -e 'install HTML::WikiConverter::DokuWiki' more information on this package can be found on it's CPAN hompage. you can also just try this package on it's webinterface. if you get errors, make sure you have build-essential installed. dokuwikiif you haven't done that yet, download and install the latest version of dokuwiki: fckw dokuwiki pluginthere are two ways to get the fckw plugin. in both cases you'll end up having the following directory: the second installation mode (using svn) is recommended, that way it will be easier to update your plugin. 1) install from zipnow download the fckw plugin form and unpack it into: 2) install via svncd /lib/plugins/ update from previous versionsyou can delete the fckeditor from the /lib/scripts/fckeditor, it is now included in the plugin itself. then simply go to your /lib/plugins/fckw and do an SupportBasically, this plugin is provided "as-is" without warranty of any kind. For suggestions and bug reports, please refer to the general dokuwiki mailing list http://wiki.splitbrain.org/wiki%3Amailinglist. Known Limitations
Future DevelopmentNext steps are:
|
Comments (84)
Jan 03, 2008
Anonymous says:
I got it all loaded with your instructions... But when I create a new page with ...I got it all loaded with your instructions... But when I create a new page with the editor or I edit an already existing page... It over writes it (deletes it) and leaves the blank create page...
Jan 03, 2008
Anonymous says:
Never mind I am the one who did this and I messed up on the very fist step... it...Never mind I am the one who did this and I messed up on the very fist step... its very important to be sure you use 'install HTML::WikiConverter::DokuWiki' I was trying to install everything from source instate of the command line you had set up.
When I went back and downloaded the DokuWiki converter from the CPAN page and manually made it everything works now. I am just mad I deleted one of my important pages.
Thanks for the great page. Works great on Ubuntu 7.10
Jan 08, 2008
Anonymous says:
Under the section "fckw dokuwiki plugin", don't you mean to indicat the director...Under the section "fckw dokuwiki plugin", don't you mean to indicat the directory "/lib/plugins/fckw"?
Also, I'm using Strawberry Perl on Win32 - while it retrieved and compiled the HTML::WikiConverter::DokuWiki module just fine, it seems to munge the conversion when actually used by DokuWiki. Have you had other reports of this not working quite right on Windows?
Jan 17, 2008
Anonymous says:
Hi I have come up with two problems during the installation. I first followed th...Hi I have come up with two problems during the installation.
I first followed the first set of instructions (non plug-in install).
html2wiki installed (after a bit of trouble)
then i extracted FCKeditor and added the code to /lib/scripts/fckeditor/fckconfig.js and I cleared the cache. This didnt start FCK. Did i missing a step here? Should the code for the edit bar not be changed too to point to FCK as the editor? How does Dokuwiki know to use FCK as the editor instead of the standard Dokuwiki editor?
After playing with this for a while I give up an installed the plugin version, which went fine. Then I noticed that I am not able to create pages using FCK in IE6 (it brings up a wiki stype edit box with no icons). I can edit pages with fck and IE6 no problem and i can edit or create pages using FCK and firefox.
I am using Fedora Core 8 with apache and there were no errors in the apache error log or on the browser error log. any help would be great thanks.
Jan 21, 2008
Anonymous says:
I have a problem installing the HTML::WikiConverter package due to the company p...I have a problem installing the HTML::WikiConverter package due to the company proxy preventing internet access to the command line in a DOS box under WinXP. I have Activeperl installed.
Is there a workaround to copy the necessary modules into the correct subdirectories? Or will the requirement for manual installation of HTML::WikiConverter become redundant in a future version of the fckw plugin?
BTW the html2wiki instructions worked flawlessly on another PC running Archlinux and fckw0.3 is working fine there - great job
Jan 28, 2008
Anonymous says:
It erases the page (or section) when I make an edit, sadly... :(It erases the page (or section) when I make an edit, sadly...
Jan 29, 2008
Anonymous says:
The issue is due to not installing the Perl library (HTML::WikiConverter::DokuWi...The issue is due to not installing the Perl library (HTML::WikiConverter::DokuWiki) first! Install the perl library then simply put the plugin in the lib/plugins director, et voila!
Jan 30, 2008
Anonymous says:
How do you do this on a Windows box?How do you do this on a Windows box?
Jan 30, 2008
Anonymous says:
Hi, i have the same problem. i posted it also at the dokuwiki mailing listHi,
i have the same problem.
i posted it also at the dokuwiki mailing list
http://wiki.splitbrain.org/wiki:mailinglist
–
jean-claude.
Feb 06, 2008
Anonymous says:
Hi, I have the same problem. If someone find a solution, it would be fine do rea...Hi,
I have the same problem.
If someone find a solution, it would be fine do read it here.
I also read the mailing list.
Thanks
-
Fritz
Feb 06, 2008
Anonymous says:
The reason for this problem is probably safemode=on in php.ini. The line $TEXT ...The reason for this problem is probably safe_mode=on in php.ini.
The line
$TEXT = shell_exec('cd '.dirname(_FILE_).'/../lib; echo ' . escapeshellarg($TEXT) . ' | html2wiki -dialect DokuWikiFCKW --base-uri='.DOKU_BASE); in file lib/plugins/fckw/action/save.php does not work when safe_mode is on.I tried a lot but did not found a solution yet except for the obvious safe_mode=off.
Please note that also, if safe_mode is off this shell_exec call should be
$TEXT = shell_exec('cd '.dirname(\__FILE_\_).'/../lib; echo ' . escapeshellarg($TEXT) . ' \| /usr/local/bin html2wiki \--dialect=DokuWiki \--base-uri='.DOKU_BASE);because this is the syntax of html2wiki and the dialect DokuWikiFCKW was unknown on my system.
With kind regards,
Oliver Heil
Jan 28, 2008
Anonymous says:
I guess there is no way of trying the plugin on a hosted server if I don't have ...I guess there is no way of trying the plug-in on a hosted server if I don't have access rights to install perl packages?
Feb 10, 2008
Anonymous says:
I am also quite curious about this. Will shell access (or equivilent) always be ...I am also quite curious about this. Will shell access (or equivilent) always be a requirement to use this plug-in, or is this just currently part of the alpha/beta stages? I realize everything depends on a package that´s somewhat indepenedent from the plug-in, but I´m not too clear on the technical limitations (and installation restrictions) that must come with that, reguardless of plug-in maturity. Cheers!
Jan 29, 2008
Anonymous says:
One problem I have noticed is that the single and double quotes get replaced wit...One problem I have noticed is that the single and double quotes get replaced with funky equivalents (a with a hat on it) after TWO saves. If you have quotes in a file and save it once, they look fine; but save it a second (or more) time(s), and you'll see your text littered with those Word-type non-ANSI/utf-8 funky a's with hats. Any idea where the problem originates so we can hack it? It doesn't seem to be fckeditor as the perl routine there replaces all quotes with ', etc.
Feb 01, 2008
Anonymous says:
FCKW has worked pretty well for me in Dokuwiki. One major issue I have is that t...FCKW has worked pretty well for me in Dokuwiki. One major issue I have is that the preview button is now longer available. I can get to the preview button by going to Wiki Syntax editing but then I cannot get back to FCKW editing without saving or losing my changes. Is there a way to get around this?
Feb 04, 2008
Anonymous says:
WYSIWYGprinciple: why do you a want a preview mode, if you already see what you ...WYSIWYG-principle: why do you a want a preview mode, if you already see what you are writing?!
Wouldn't that be senseless? Or did i misunderstand your question?
–
jean-claude.
Feb 05, 2008
Anonymous says:
He is referring to the fact that once you return to the wiki style markup view, ...He is referring to the fact that once you return to the wiki style markup view, you can't then toggle to the wysiwyg view.
Feb 06, 2008
Anonymous says:
now i undestand the problem. i experienced the "problem", also. I just saved the...now i undestand the problem. i experienced the "problem", also. I just saved the page with little changes and restarted to work on it in wysiwyg mode.not the best way, but you get used to it.jc.
Mar 12, 2008
Anonymous says:
I installed from SVN fckw for dokuwiki and the problem is that whenever I modify...I installed from SVN fckw for dokuwiki and the problem is that whenever I modify a page and I save it, the page is blank - I lose everything. Do yah guys know what's the problem?
Feb 11, 2008
Anonymous says:
Not having the preview is a problem for me as well. The problem is that what you...Not having the preview is a problem for me as well. The problem is that what you type does not always look exactly the same in the real Wiki even if you are using the WYSIWYG editor. It seems like it should be almost trivial to add the button back in. Why was it removed for the FCK editor? Is there a simple way to add it back in? Going back to the Wiki syntax for the preview button wouldn't be such a big deal if you could actually get back to the FCK editor.
Feb 06, 2008
Anonymous says:
Here is a solution (as proposal) to make fckw compatible with safemode. The prob...Here is a solution (as proposal) to make fckw compatible with safe_mode.
The problem is, when php is configured with safe_mode=on, that after editing a page with fckw and saving it, only a blank page is created. It is not possible, with fckw plugin switched on, to go back to an older version, because save will allways result in blank pages.
The reason is, that in fckw/action/save.php the php function shell_exec will not be executed. The call to html2wiki through shell_exec is crucial to the idea that always original dokuwiki syntax files are saved, which I believe is a very important feature!
Here comes the solution which starts after commenting out the shell_exec line in fckw/action/save.php:
After editing this file you have also modify your php.ini to allow the execution of html2wiki.
In my installation I need /usr/local/bin/html2wiki to run and /usr/bin/htmldoc, which I use to generate pdf on the fly. Therefore I did the following as root:
In php.ini now:
And of course do not forget to restart the web server.
If you do not need to run programs from more than one directory you can just stick on /usr/local/bin, but edit my changes in fckw/action/save.php where I have used /usr/local/php_safe_bin/html2wiki. But as usual systems are growing the above configuration is always a good idea.
There are still problems with fckw and other plugins:
The syntax of a poll is
which is completely messed up.
Syntax:
{{skill>1/5}}Also a mess.
The solution to these problems is probably found in DokuWikiFCKW.pm (which I finally found, see my other post some thread above). I will have a look at it but time is short. So if somebody else is looking for it do not wait for me.
With kind regards,
Oliver Heil
Feb 06, 2008
Anonymous says:
Complete source of fckw/action/save....Complete source of fckw/action/save.php:
Feb 07, 2008
Anonymous says:
Hi, I did the changes, but now I get the message: Warning: Cannot modify header ...Hi,
I did the changes, but now I get the message:
Warning: Cannot modify header information - headers already sent by (output started at D:\...\htdocs\My_Project\lib\plugins\fckw\action\save.php:63) in D:\...\htdocs\My_Project\inc\actions.php on line 296
Where is my mistake?
I work on a Windowsbox, there is no directory /usr/local. I have to create it, but where?
The Linux "ln" command, how do I do it on windows?
With kind regards
Fritz
P.S. you see I am new with dokuwiki
Feb 07, 2008
Anonymous says:
For windows I guess, that you should just remove the /usr/local/phpsavedir/ path...For windows I guess, that you should just remove the /usr/local/php_save_dir/ path in front of the html2wiki command (as it is in the original save.php). If your php is in safe_mode you need to put the windows path to the html2wiki command into the safe_mode_exec_dir config option in php.ini. For example:
safe_mode_exec_dir = "C:\Program Files\some dir to\html2wiki"As I do not have a windows installation I can not tell the real path. Perhaps somebody with a windows installation and safe_mode=on may help here. If you do not have safe_mode on, my patch above will not help you as it is nearly exactly the same logic as before but with the benefit of running fine in safe_mode.
With kind regards,
Oliver Heil
Feb 07, 2008
Anonymous says:
Hi Oliver, so far it works fine for me under windows. Thank you very much for yo...Hi Oliver,
so far it works fine for me under windows. Thank you very much for your effort.
if anything comes up.i'll report.
best regards,
jc
Feb 07, 2008
Anonymous says:
Hi jc, Can you sent your changes to this forum? I do not find my mistake. That w...Hi jc,
Can you sent your changes to this forum? I do not find my mistake. That would be great.
With kind regards,
Fritz
Feb 18, 2008
Anonymous says:
Hi Fritz, i replaced the path to my local perl directory where the html2wiki fil...Hi Fritz,
i replaced the path to my local perl directory where the html2wiki file lies, sth like
c:\\perl\bin\html2wiki
by the way: safe_mode is switched off in my case.
–
jc
Feb 08, 2008
Anonymous says:
My problem is, that if I change to wiki syntax it all stays "empty". I installed...My problem is, that if I change to wiki syntax it all stays "empty". I installed the html::wikiconverter perl files, so I am a bit at a loss here
Feb 08, 2008
Anonymous says:
This problem is solved (I hope) using the patch above. Search for safemode in th...This problem is solved (I hope) using the patch above. Search for safe_mode in the threads above.
Oliver Heil
Feb 12, 2008
Anonymous says:
I have a problem with images. I upload an image and insert it with the fckw edit...I have a problem with images.
I upload an image and insert it with the fckw editor. Initially it inserts ok, but when I reload the image disappears.
If I look de wiki code, I found the error: dokuwiki doesn't like the image reference namespace/image.gif, and prefers namespace:image.gif. But fckw applies the first.
I hope that happens the same with internal links.
(A note: the rewrite option is 1: $conf['userewrite'] = 1
Feb 14, 2008
Anonymous says:
Well, I have resolve the problem with $conf'useslash'=0 But