DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:fckg

This is an old revision of the document!


fckg Plugin

Compatible with DokuWiki

2009-02-14, lemming, anteater, rincewind, angua, adora belle, weatherwax, binky,"ponder stibbons", Hrun, Detritus

plugin WYSIWYG editor. JavaScript Front end to FCKeditor

Last updated on
2015-09-29
Provides
Syntax
Conflicts with
aceeditor, ckgedit, comment, creole, data, data-au, mathjax, quickedit, tagentry, lisps, yalist

The missing download url means that this extension cannot be installed via the Extension Manager. Please see Publishing a Plugin on dokuwiki.org. Recommended are public repository hosts like GitHub, GitLab or Bitbucket.

This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.

The following security issue was reported for this extension: The plugin contains multiple severe vulnerabilities (including remote code execution). Author has been informed 2015-11-27

It is not recommended to use this extension until this issue was fixed. Extension authors should read the plugin security guidelines

Similar to fckw, grensladawritezor, prosemirror, wysiwyg, wysiwyg_nicedit

Tagged with '!discontinued

Please Note

:!: fckgLite is no longer supported. Use ckgedit.

fckgLite (or fckg)

fckgLite is a Javascript implementation of the FCKeditor for DokuWiki. It is “Lite” only historically, from a time when it was being developed as an experimental alternative to the now discontinued DokuWikiFCK.

Download and Installation

Important Note
If you are using a version of Dokuwiki dated before April 2011 (Anteater or earlier), do not use the plugin manager's deletion function when upgrading to a new version of fckgLite. It will delete the media directory.

Alternate savedir setting

You can get the documentation for this on the ckgedit plugin page: alternate_save_directory.

Security

fckgLite comes with two security models, both compatible with Dokuwiki's management of images and links. For a complete discussion of security in the fckgLite filebrowser and the latest security enhancements see the fckgLite web site. You can also check the README document that comes with fckgLite distributions.

Documentation

fckgLite has an extensive web site. It covers the editor's many features, its configuration and integration with Dokuwiki, and issues in editing. There are very good finding aids, including a complete listing of all topics and a Dokuwiki Search box dedicated to the documentation.

There have been approximately 70,000 downloads of fckgLite from more than 24,000 unique IP addresses1). Over half of these downloads originate from this page, but it would be worth the effort to visit the web site and to become familiar with its facilities. There are manuals available both as ebook and pdf created from the web site's documentation:

There are several excellent ebook readers both stand-alone and plugins for Firefox and IE. See the epub Plugin for information on readers.

Direct Button to Dokuwiki Editor

When fckgLite is installed fckgLite becomes the default editor and users will have to switch over the to native Dokuwiki editor from a button found in the fckgLite editor window. If you would like to give users a choice of using the Dokuwiki editor without having to first open the fckgLite eidtor, put the following button at the bottom and/or top of main.php in one of the button bar divs.

button.php
<?php global $ID; $action = DOKU_REL . "doku.php?id=$ID"; ?>
 <form class="button btn_edit" method="post" action="<?php echo $action ?>">
<div class="no">
<input type="hidden" name="do" value="edit" />
<input type="hidden" name="rev" value="" />
<input type="hidden" name="mode" value="dwiki" />
<input type="hidden" name="fck_preview_mode" value="nil" />
<input type="submit" value="DW Edit" class="button" />
</div>
</form>

This code will create an action link:

action_link.html
<a href="doku.php?id=<?php global $ID; echo $ID;?>&amp;do=edit&mode=dwiki&fck_preview_mode=nil"
       class="action edit" rel="nofollow" title="DW Edit">DW Edit</a>

It can be inserted into either tpl_header.php in the Page Tools section or in main.php at a convient location. It can be used in any template.

If you are using the Dokuwiki template, below is a preferred solution. It is a user-contributed plugin to insert an action link automatically into the Page Tools of the Dokuwiki template. An important benefit of the plugin is that it is independent of the template files, making it unnecessary to re-edit them with each upgrade.

action.php
<?php
/**
 * Action adding DW Edit button to page tools (useful with fckedit)
 *
 * @author     Anonymous
 * @author     Kamil Demecki <kodstark@gmail.com>
 */
 
if (!defined('DOKU_INC')) 
{    
    die();
}
 
class action_plugin_dwedit extends DokuWiki_Action_Plugin
{
 
    function register(&$controller)
    {
        $controller->register_hook('TEMPLATE_PAGETOOLS_DISPLAY', 'BEFORE', $this, 'dwedit_action_link');
    }
 
    function dwedit_action_link(&$event, $param)
    {
        if (!$_SERVER['REMOTE_USER']) 
        {
            return;
        }
        global $ID;
        $event->data['items']['dw_edit'] = '<li><a href="doku.php?id=' . $ID . '&do=edit&mode=dwiki&fck_preview_mode=nil" ' . 'class="action edit" rel="nofollow" title="DW Edit"><span>DW Edit</span></a></li>';
    }
}
?>
1)
Stopped counting June 2014
plugin/fckg.1637423866.txt.gz · Last modified: 2021-11-20 16:57 by turnermm

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki