Text editors

Disable Atto editor autosave for a module

 
This discussion has been locked because a year has elapsed since the last post. Please start a new discussion topic.
Picture of Javier Hernández
Disable Atto editor autosave for a module
 

I need to disable the auto save for a module.

I tried this but it does not work:


$textfieldoptions = array('trusttext' => true, 'subdirs' => true, 'autosave' => false);

$mform->addElement('editor', 'textfield_editor', get_string('label', 'block'), array('rows' => 12), $textfieldoptions)->setValue(array('text' => $content));

 
Average of ratings: -
Picture of Daniel Thies
Re: Disable Atto editor autosave for a module
 
Average of ratings: -
Picture of Javier Hernández
Re: Disable Atto editor autosave for a module
 

thank you!

 
Average of ratings: -