etherpad-lite icon indicating copy to clipboard operation
etherpad-lite copied to clipboard

Hide menu_right on ReadOnly pads

Open jj-DC opened this issue 4 years ago • 2 comments

I'm rather perplexed that etherpad doesn't appear to have an iframe parameter that hides the unordered list toolbar which houses the menu_right options (import/export, timeslide, settings, share & users), particularly for read-only pads.

If you want pads to be read-only, then you're not going to want your viewers to have any control over content. It's effectively a whiteboard. You type stuff in to the source pad, and the iframe delivers those updates to the pad without the user needing to see anything other than the text on screen. If you have users on multiple pages on a site, and you are using a read-only pad as an announcement channel, then you just want the message to appear in the page, in real time.

Of course I know I could just turn off the toolbar options in the json settings. But that would be stupid. Because I still want to use those features on read-write pads. Just not on read-only pads.

Am I missing something? I can use the showControls switch in the iframe parameters which will remove the editbar. Is there a switch that should remove the right toolbar, too? If it doesn't exist, could it be built? Perhaps as part of the Read-only options?

jj-DC avatar Sep 20 '21 07:09 jj-DC

Those buttons still exist for read-only pads because they could still be useful to users: export pad as HTML, visit a historical version of the pad, see list of other users viewing the pad, etc. But I can definitely see the value in adding a query parameter to hide those buttons. Patches (or funding) would be welcome. :slightly_smiling_face:

Something to keep in mind: ep_readonly_guest puts the login button inside the user list, so hiding that button would make it difficult for users to log in. That's unlikely to be a problem for pads embedded in an iframe.

rhansen avatar Sep 20 '21 09:09 rhansen

Thanks Richard! Yes, it makes sense to me as an iframe parameter more than a setting as such.

I am, of course, happy to donate to the funding!

jj-DC avatar Sep 20 '21 22:09 jj-DC