Jump to content

AtkTinyMce module: Difference between revisions

From NusaATK
No edit summary
 
No edit summary
Line 1: Line 1:
== Description ==
== Description ==


The ATK TinyMCE module is a module that adds an atkTinyMceAttribute to your ATK application. It is a [[WYSIWYG]] editor similar to the [[atkFCKAttribute]], but using TinyMCE as the backend.
The ATK TinyMCE module is a module that adds the [[atkTinyMceAttribute]] to your ATK application. It is a [[WYSIWYG]] editor similar to the [[atkFCKAttribute]], but using TinyMCE as the backend.


== ATK TinyMCE installation instructions ==
== ATK TinyMCE installation instructions ==


1. Place the atktinymce directory somewhere in your application, preferably in the external modules/ dir.  
'''1.''' Place the atktinymce directory somewhere in your application, preferably in the external modules/ dir.  


2. Add the following statement to your config.modules.inc or config.inc.php file:
'''2.''' Add the following statement to your config.modules.inc or config.inc.php file:


   module("atktinymce");
   module("atktinymce");


:If you installed the module somewhere other than in your default module path, also provide the path, relative to your atkroot:
If you installed the module somewhere other than in your default module path, also provide the path, relative to your atkroot:
      
      
   module("atktinymce", atkconfig("atkroot")."extension_modules/atktinymce/");
   module("atktinymce", atkconfig("atkroot")."extension_modules/atktinymce/");


3. To use the atkTinyMceAttribute in a node, put the following line near the top of the file:
'''3.''' To use the atkTinyMceAttribute in a node, put the following line near the top of the file:


   useattrib("atktinymce.atktinymceattribute");
   useattrib("atktinymce.atktinymceattribute");


4. Add the attribute to your node in the usual manner:
'''4.''' Add the attribute to your node in the usual manner:


   $this->add(new atkTinyMceAttribute("remarks"));
   $this->add(new atkTinyMceAttribute("remarks"));

Revision as of 13:35, 27 December 2006

Description

The ATK TinyMCE module is a module that adds the atkTinyMceAttribute to your ATK application. It is a WYSIWYG editor similar to the atkFCKAttribute, but using TinyMCE as the backend.

ATK TinyMCE installation instructions

1. Place the atktinymce directory somewhere in your application, preferably in the external modules/ dir.

2. Add the following statement to your config.modules.inc or config.inc.php file:

  module("atktinymce");

If you installed the module somewhere other than in your default module path, also provide the path, relative to your atkroot:

  module("atktinymce", atkconfig("atkroot")."extension_modules/atktinymce/");

3. To use the atkTinyMceAttribute in a node, put the following line near the top of the file:

  useattrib("atktinymce.atktinymceattribute");

4. Add the attribute to your node in the usual manner:

  $this->add(new atkTinyMceAttribute("remarks"));

About TinyMCE

The TinyMCE editor is Copyright (c)2003-2006 Moxiecode Systems AB and made available under the GNU Lesser General Public License (LGPL). Documentation and license file can be found in the ext/tinymce subdir and on its homepage:

http://tinymce.moxiecode.com/