I have created a new input type called 'Plain Text', and for some reason I cannot put any spaces in the text between words. Any idea what's causing this? Thanks

Comments

cog.rusty’s picture

What is an input type? An input format or a filter?

- If it is a filter, it does whatever you programmed its code to do.
- If it is an input format, go to admin/settings/filters, find it, configure it, and see which filters it has enabled in it and what they do.

probocop’s picture

Thanks for your response.

Sorry I did indeed mean input format.

Do you have any idea which setting would prevent spaces being allowed in text? Also left and right arrows (on the keyboard) don't do anything, but up and down go to the start/end of the line. Baffled by this one!

cog.rusty’s picture

Spaces are probably removed by one of the filters that I mentioned. You need to examine the enabled filters in your input format and read what each one of them does.

Your keyboard problem is probably something different. Maybe a wysiwyg editor or a javascript conflict is causing it, but I have no idea how you have things set up.

probocop’s picture

Interesting, I have just tried disabling javascript and it works fine, so it must indeed be a javascript conflict. Will have to do a bit of debugging. thanks!

nevets’s picture

Do you mean "spaces" literal, ie multiple space characters vs a single space character?

probocop’s picture

It is just all spaces being blocked. When I'm typing in the box (it's not got a wysiwyg on it) sentences cannot have spaces in, even when typing. For example - thissentencehasnospacesin!

nevets’s picture

That would be a browser or javascript issue (Drupals input format comes into play when the node is output).

drtduarte’s picture

Hello there,

Did you solve the problem? I have the same issue on all fields of my drupal installation...

Regards,
David