Skip to content
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

Remove the predefined text from new Pad when user does first input/click/key #6089

Open
q2apro opened this issue Jan 4, 2024 · 5 comments
Open

Comments

@q2apro
Copy link

q2apro commented Jan 4, 2024

Feature request
title: Remove predefined text when user clicks on it or moves the cursor or on first input/key event
labels: enhancement
assignees:


Is your feature request related to a problem? Please describe.
Every time a user users creates a new pad, s/he needs to delete the predefined text. This is bad usability.

Describe the solution you'd like
Remove predefined text when user clicks on it or moves the cursor or on first input/key event

Alternative
Put the hints/tips somewhere else and not into the pad content.

Plugin?
Could not find any plugin for this.

@SamTV12345
Copy link
Member

You can adapt the text via an env variable DEFAULT_PAD_TEXT or in your settings.json with defaultPadText. Leaving it blank will display no text when a pad is created.

@q2apro
Copy link
Author

q2apro commented Jan 6, 2024

I need this text to inform the users what they can do and what they have to be aware of.

So the options that come to my mind:

  1. Having the "intro text" as an overlay?!
  2. Remove the intro text with first key event.
  3. Have the text as a placeholder like with textareas.

How to achieve one of those? - I am using Etherpad docker.

I could not find any plugin that removes the intro text on interaction. Nor could I find any plugin where I can load my own Javascript to create a popup (that would hold the intro text).

@q2apro
Copy link
Author

q2apro commented Jan 14, 2024

How can I show a simple Javascript alert (with the hints) when the site loads?

It is important to my users. Since they are very young, most of them do not delete the predefined text and just write below it.

The plugin "ep_themes_ext" can load a custom CSS file. Maybe the developers can extend it to load custom JS?

@SamTV12345
Copy link
Member

You should be able to simply add a plugin that shows an alert.

@q2apro
Copy link
Author

q2apro commented Jan 26, 2024

I am running the default Etherpad docker. I do not know how to write a plugin and add it into the docker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants