dokuwiki-plugin-bureaucracy icon indicating copy to clipboard operation
dokuwiki-plugin-bureaucracy copied to clipboard

newline in textarea field

Open domenicoo opened this issue 9 years ago • 2 comments

Hi,

it seems to me that if the user adds a newline to an entry in a textarea field, the entry is broken. Is there a way to automatically strip the newlines?

More in general, is there any way to modify automatically a given entry?

Thank you for your plugins, Domenico

domenicoo avatar Aug 27 '15 09:08 domenicoo

So far I know textareas accept text with newlines on purpose. So at the place where you put the placeholder there will appear the whole text inclusive newlines as inputted in the textarea.

So I don't understand what is broken for you.

There is only filtering that could trigger warnings when the user inputs information that doesn't match an given regexp. There is at the moment no option to modify input data.

Klap-in avatar Aug 27 '15 12:08 Klap-in

Hi,

thank you for your answer. Maybe I should explain my problem better. I am using bureaucracy to make an input form that then goes via a template in a dataentry page. Now, if the user adds a newline in a text area, the dataentry form getst the newline and interprets it as a new field, as one can see when trying to modify the record.

I would either need a way to strip the newlines or then to tell the dataentry form that the newline is part of the field.

Thanks again, Domenico

domenicoo avatar Aug 27 '15 12:08 domenicoo