-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UI element visible on read-only pads #13
Comments
Yea I'm yet to discover a good practice for which plugins should/shouldn't show on read only pages. @orblivion and @seballot did you have a thought on this? Something like a class that hides it on read only pages perhaps? I know we have the settings.json blob but I don't wanna be messing with that... How about |
I would expect that ep_font_color, ep_font_family and ep_align all work the same way in that regards, similar to ep_font_size. |
They should, do they not? |
why not just hiding the whole left-toolbar in real-only mode? (I never used this mode, not sure what is the goal) |
There has been cases where read only plugins get placed on left side of the toolbar so e can't do that. |
At least ep_font_color and ep_align don't hide. |
See also ether/ep_align#16. |
Ack will deal with it if I can |
@seballot before I hack something do you have a preference on how I do this? |
your idea of having a class that will be hidden seems good to me |
@seballot how is ep_headings2 not included in read only pad view? |
@seballot I'm just thinking and you might be right, we might be suitable just to say "Anything that's put in the toolbar left can just be hidden" - I reviewed a load of plugins and it seems fine to do so.. the exception being |
From peeking and poking around in the inspector, I would think the |
@thmo thanks for doing my homework for me :D Awesome, so I think I will just include this in those plugins. |
Wait, @seballot the bug is coming from font_color.css which isn't comin gfrom my plugin! It's coming from the colibris skin :P It's due to
This is why I reallllly don't like plugin code in core ;\ |
ah ah sorry, it was because I dont really like this double action things : first click the "A" button, the select appear, then click the select, the list of color appears I'm a bit tired of managing all those plugins. I think the plugin system is very nice to add custom functionalities or heavy functionalities (like ep_webrtc), but for all basic actions like changing text size, text color, align text etc... should IHMO definitely be part of etherdpad core. it would be much more easy to have a clean and nice toolbar (it will still be possible to activate/deactivate some feature of the toolbar), and also it will be less time consuming |
Yeah agreed. Let's fix these last ones up. Fwiw with do webrtc we are setting best practices so most of this functionality can be provided by plugin helpers. |
@seballot you on with fixing this up? |
how do I activate the read only mode? so I can test it? |
Click the embed button (in toolbar), click the read only switch, get the read only URL, visit it :) https://video.etherpad.com/p/r.b9c133871647a4d8b5d0c1ce5599fbf9 Is an example |
thanks ! fixed here ether/etherpad-lite#4017 |
The drop-down to change the color of selected text is visible also for read-only pads. Using it temporarily changes the color of the selected text in the current browser window. The original pad is not changed however (
[WARN] message - Dropped message, COLLABROOM for readonly pad
), and the change vanishes after reloading the page.Sometimes however the read-only pad looses the connection to the server when using the drop down.
The text was updated successfully, but these errors were encountered: