add new button wysiwig atto

add new button wysiwig atto

by stephane ngov -
Number of replies: 2

hello all, i try add à new button in atto, i try clone folder atto/plugin/bold and     rename clone folder bold in code(rename name méthode and name file),

moodle upgrade in db this new plugin, but in atto my new plugin button is not here,

Where déclare this new plugin to show my plugin?

now i modified plugin "html" and change picture

look my screen shoot (follow arrarow red)

        this.addButton({
            icon: 'e/code', // my new picture
            callback: this.prism
        });



when I click in this button, i would like add hilight text  for exemple (toto va dans les pré .... after click '$'=>  toto va <span class ="my-classs">dans </span>  dans les)

Average of ratings: -
In reply to stephane ngov

Re: add new button wysiwig atto

by Davo Smith -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Have you edited your Atto configuration to include your new button in the list of buttons to display?

Site admin > Plugins > Text editors > Atto > Atto toolbar settings


In reply to Davo Smith

Re: add new button wysiwig atto

by stephane ngov -

tanks for reply,

i add this


code=code
collapse = collapse
style1 = title, bold, italic
list = unorderedlist, orderedlist
links = link
files = image, media, managefiles
style2 = underline, strike, subscript, superscript
align = align
indent = indent
insert = equation, charmap, table, clear
undo = undo
accessibility = accessibilitychecker, accessibilityhelper
other = html
fontcolor= fontcolor


code is a clone bold but it have not in toolbar


this is my folder