TinyMCE:API/tinymce.Editor/getParam
From Moxiecode Documentation Wiki
Contents |
[edit]
Method: getParam
[edit]
Summary
Returns a configuration parameter by name.
[edit]
Syntax
<String> getParam(<String> n, <String> dv)
[edit]
Parameters
- n
- Configruation parameter to retrive.
- dv
- Optional default value to return.
[edit]
Returns
Configuration parameter value or default value.
[edit]
Examples
// Returns a specific config value from the currently active editor
var someval = tinyMCE.activeEditor.getParam('myvalue');
// Returns a specific config value from a specific editor instance by id
var someval2 = tinyMCE.get('my_editor').getParam('myvalue');
