bugy / script-server

Web UI for your scripts with execution management
Other
1.55k stars 246 forks source link

How to send complex texts in text field? #564

Closed Nottt closed 1 year ago

Nottt commented 2 years ago

I have a script that takes as input complex text, with new lines, emojis, special characters, everything.

This being the configuration:

   "parameters":[
      {
         "name":"TEXTO",
         "type":"text",
         "param":"-text",
         "required":true
      },
      {
         "name":"LINK",
         "type":"text",
         "param":"-link",
         "required":false
      }

However when people copy and paste into the text box it loses all the new lines. Is there a way to avoid that ?

bugy commented 2 years ago

unfortunately this is not supported https://github.com/bugy/script-server/issues/475

Nottt commented 2 years ago

there is really no way to add this?

bugy commented 2 years ago

According to HTML specification, <input> element doesn't support multiline :(

Nottt commented 2 years ago

Is there any workaround ?

bugy commented 2 years ago

Not any easy one, which I'm aware of, unfortunately

ad90xa0-aa @.***> schrieb am Fr., 22. Juli 2022, 03:34:

Is there any workaround ?

— Reply to this email directly, view it on GitHub https://github.com/bugy/script-server/issues/564#issuecomment-1192090593, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJXPJMUOYAO7NI6TGNRZD3VVH3CZANCNFSM54DCMC2A . You are receiving this because you commented.Message ID: @.***>