AtkTinyMce module: Difference between revisions
No edit summary |
No edit summary |
||
| Line 9: | Line 9: | ||
'''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: | ||
<syntaxhighlight lang="php"> | |||
module("atktinymce"); | module("atktinymce"); | ||
</syntaxhighlight> | |||
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: | ||
<syntaxhighlight lang="php"> | |||
module("atktinymce", atkconfig("atkroot")."extension_modules/atktinymce/"); | module("atktinymce", atkconfig("atkroot")."extension_modules/atktinymce/"); | ||
</syntaxhighlight> | |||
'''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: | ||
<syntaxhighlight lang="php"> | |||
useattrib("atktinymce.atktinymceattribute"); | useattrib("atktinymce.atktinymceattribute"); | ||
</syntaxhighlight> | |||
'''4.''' Add the attribute to your node in the usual manner: | '''4.''' Add the attribute to your node in the usual manner: | ||
<syntaxhighlight lang="php"> | |||
$this->add(new atkTinyMceAttribute("remarks")); | $this->add(new atkTinyMceAttribute("remarks")); | ||
</syntaxhighlight> | |||
== About TinyMCE == | == About TinyMCE == | ||
Latest revision as of 22:40, 31 August 2008
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: