Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
MooEditable.Group docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
cheeaun committed Mar 22, 2009
1 parent 5113bb8 commit ac2d98f
Showing 1 changed file with 72 additions and 1 deletion.
73 changes: 72 additions & 1 deletion Docs/MooEditable/MooEditable.Group.md
@@ -1,4 +1,75 @@
Class: MooEditable.Group {#MooEditable-Group}
=================================
=============================================

An extension to the base MooEditable class for having multiple MooEditable instances on a page controlled by one toolbar.

### Implements:

[Options][]


MooEditable.Group Method: constructor {#MooEditable-Group:constructor}
----------------------------------------------------------------------

### Syntax:

var myMooEditableGroupInstance = new MooEditable.Group([options]);

### Arguments:

1. options - (*object*, optional) The options object. Options from [MooEditable][] can be applied as well.

### Options:

* actions - (*string*: defaults to a string shown below) A string indicating the toolbar items and their arrangement (space-separated).

'bold italic underline strikethrough | insertunorderedlist insertorderedlist indent outdent | undo redo | createlink unlink, | urlimage | toggleview'



MooEditable.Group Method: add {#MooEditable-Group:add}
------------------------------------------------------

Adds a textarea to be instantiated as a MooEditable.Group.Item object.

### Syntax:

myMooEditable.add(textarea);

### Arguments:

1. textarea - (*mixed*) A string of the id for an Element or an Element reference of the textarea this editor modifies.

### Returns:

* (*object*) The MooEditable.Group.Item instance.



Class: MooEditable.Group.Item {#MooEditable-Group-Item}
=======================================================

Wrapped MooEditable for the MooEditable.Group class.

### Extends:

[MooEditable][]


MooEditable.Group.Item Method: constructor {#MooEditable-Group-Item:constructor}
--------------------------------------------------------------------------------

### Syntax:

var myMooEditableGroupItemInstance = new MooEditable.Group.Item(textarea, group[, options]);

### Arguments:

1. textarea - (*mixed*) A string of the id for an Element or an Element reference of the textarea this editor modifies.
2. group - (*object*) A [MooEditable.Group](#MooEditable-Group) object.
3. options - (*object*, optional) The options object. See [MooEditable][].



[Options]: http://mootools.net/docs/Class/Class.Extras#Options
[MooEditable]: /MooEditable/MooEditable

0 comments on commit ac2d98f

Please sign in to comment.