In Drupal 8, the field type for a plain text field is "string". The current formatter only supports the "text" field type, which is for formatted text. Is there any reason for this, or is it just an oversight? It confused the hell out of me when I first tried using this module.

Comments

alfaguru’s picture

Also note that the core bug https://www.drupal.org/node/2348459 means the module is currently unusable without this change.

jhodgdon’s picture

The Drupal 8 version of this module hasn't been updated recently. Someone contributed a patch quite a while ago and there are quite a few things that need to be updated.

If you'd like to make a patch that fixes the Drupal 8 version so it will actually work, that would be great! Otherwise I'll get to it eventually but not immediately.

jhodgdon’s picture

Title: Support for plain text in D8 » Drupal 8 version needs updating
Category: Feature request » Bug report
alfaguru’s picture

It's just a one line change. I'll roll it when I get a minute.

alfaguru’s picture

Here's the patch. Once this change was applied I was able to create a plain text field and format it as a Google map, then successfully create content and see a map displayed.

jhodgdon’s picture

Status: Active » Needs work

We probably actually shouldn't support formatted text fields at all -- having HTML tags would be a problem. I'll need to look into this a bit more, but I don't think the right fix is to add this field type; it should be replaced?

alfaguru’s picture

Make sense, although the Google web service may possibly ignore tags, there is no real value in supporting them.

jhodgdon’s picture

Status: Needs work » Closed (duplicate)

In the intervening time, this problem was fixed on a different issue.