Moodle Plugins directory: Toggle preview | Moodle.org

Toggle preview
Atto ::: atto_preview
Maintained by
Daniel Thies
An Atto editor plugin that shows a preview of the filtered editor content.
Latest release:
1163 sites
520 downloads
41 fans
Current versions available: 2
This plugin makes a preview button available to the Atto editor. When the button is pressed the content of the editor is passed through the filters enabled on the editing page and the result is displayed over the editor content window. Pressing the button again closes the preview.
Contributors
Daniel Thies (Lead maintainer)
Please login to view contributors details and/or to contact them
Said that, you are cleared to land now. Welcome to the plugins directory!
"414
Request-URI Too Large
The request URL is over the maximum size allowed!"
What should I do?
Thanks for reporting this. We have only test this before with small content. The GET method used is limited by web server. For default Apache this means max is about 8K characters. The server limit could be expanded with the LimitRequestLine directive, but it would probably be better if I could use the POST to implement it instead which is what is usually used to save the editor contents.
I just upgraded to Moodle 3.1 and I installed preview version 2016021500. However the "eyeball" icon is not showing up. Is atto_preview known to work with Moodle 3.1? (To be clear I installed Moodle 3.1 from scratch and added the preview plug-in)
To add any plugin in to Atto you need to remember to add the button to the list of buttons in Plugins->Text editors->Atto HTML editor->Atto toobar settings. Did you remember to do this? I have been using the preview plugin on 3.1 for some time without issue, but it is an updated site not a new one. Otherwise, it might be helpful to know whether you are using a new theme.
I had to give up on getting the Toggle Preview to work for me but now I have to get it working for my students.
My installation is still Moodle 3.1+ and there are special themes. Yet the "eyeball" button still does not show up.
I did check in Plugins->Text editors->Atto HTML editor->Atto toolbar settings and I do see that "Toggle Preview" in in the list that comes up.
What I don't see is a list of actual buttons. Is there a list of buttons I can edit?
Thanks,
Peter Halverson
(I wish I could attach screen shots to these comments.)
I think I have a clue as to the problem. There is a "Toolbar Config" list that seems to have all the buttons listed. I think if I were to add the Toggle Preview button's name to that list, it might work. Question: what is the *name* of the button?
Thanks again,
Peter Halverson
PS: Here are the contents of the Toolbar Config field as it is right now.
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
I made a guess...
I appended ", preview" to the line beginning with "style1"
So now it reads "style1 = title, bold, italic, preview"
Logged, out and in and now it works. The "eyeball" show up and does what it is supposed to.
Yay!