## General developer forum

### Stripped down Atto editor

Stripped down Atto editor

Hi,

I am creating a form in a local plugin, in which I would like to only allow teachers to use bullet point and numbered lists on the Atto editor. I have looked at the Forms API but I cannot find a way to disable Atto plugins for this one form only. I have attached a mockup of what I am after. The only thing I have been able to do is to disable the file uploads.

Am I looking at the wrong place? Has anyone done this before, or can think of examples within the Moodle codebase (or third-party plugins) I could look at? Is it simply impossible without getting a major headache?

Cheers,

Fred

Average of ratings: -
Re: Stripped down Atto editor

Average of ratings: -
Re: Stripped down Atto editor

Thanks a lot for the link, Paul. I am struggling to get things going, as there is no documentation.

Here is what I have so far, which does not work (i.e. all of the Atto icons are displayed).

$editoroptions = array( 'maxfiles' => 0, 'maxbytes' => 0, 'trusttext' => false, 'noclean' => false, 'context' =>$context,    'subdirs' => 0,    'atto:toolbar'  => 'style1 = bold, italic');

Has anyone implemented this successfully? Am I placing the atto options in the wrong place?

Cheers,

Fred

Average of ratings: -