Studio-42/elFinder — Issue #158: How to use tinymce in "edit" command
Author: dio-el-claire
Created: 2011-11-15 21:34:00+00:00
State: open
Labels: client, feature, need feedback

Now "edit" command supports any (I hope) wysiwygs.

Here is simple example for tinymce.
```javascript

// init
tinyMCE.init({});
// elfinder options
var opts = {
...
commandsOptions : {
edit : {

editors : [
{
mimes : ['text/html'], // add here other mimes if required
load : function(textarea) {
tinyMCE.execCommand("mceAddControl", true, textarea.id);
},
close : function(textarea, instance) {
tinyMCE.execCommand('mceRemoveControl', false, textarea.id);
},
save : function(textarea, editor) {
textarea.value = tinyMCE.get(textarea.id).selection.getContent({format : 'html'});
tinyMCE.execCommand('mceRemoveControl', false, textarea.id);
}

}
]
}
}
}

```

Im not tinymce guru so maybe somebody fix code and write it in our wiki.
Others wysiwygs examples are welcome