TinyMCE:API/tinymce.Editor/setProgressState
From Moxiecode Documentation Wiki
Contents |
[edit]
Method: setProgressState
[edit]
Summary
Sets the progress state, this will display a throbber/progess for the editor. This is ideal for asycronous operations like an AJAX save call.
[edit]
Syntax
<bool> setProgressState(<bool> b, <Number> ti, <Object> o)
[edit]
Parameters
- b
- Boolean state if the progress should be shown or hidden.
- ti
- Optional time to wait before the progress gets shown.
- o
- Optional object to pass to the progress observers.
[edit]
Returns
Same as the input state.
[edit]
Examples
// Show progress for the active editor tinyMCE.activeEditor.setProgressState(true); // Hide progress for the active editor tinyMCE.activeEditor.setProgressState(false); // Show progress after 3 seconds tinyMCE.activeEditor.setProgressState(true, 3000);
