Text fields, created by the Text module, do not display a Text editor when Filtered Text is chosen as Text processing opition, and the length of the text field is shortened, independent of the length set on the Form Display page.

Some ideas from IRC on that:

<nod_> oh then there should be a js error somewhere
<swentel> and yes, in D8, there's a JS error as nod_ predicted
<nod_> all right the issue seems to be that there are no attributes for the input tag generated
<nod_> yched: when you have a text field (not long text) and you configure as filtered text, there are no attributes on the input tag, you just end up with <input class="full-text">
<nod_> text-full
<yched> nod_: the attributes that make EditInPlace work ?
<nod_> yched: amongst them yes, but the field doesn't even have an ID or type attribute
<swentel> yeah that's really really weird
<nod_> yeah the value isn't even saved.
<yched> nod_: hmm - yep, sounds like a bug in TextfieldWidget logic indeed - blame accepted pending more investigation ;-)
<swentel> I think it's rather #type text_format that can't handle a textfield
<swentel> because the widget definition looks fine
<yched>  swentel above is probably right, sounds like a bug in the 'text_format' Form API element
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dineshw’s picture

Not a bug!
I just tested by creating two fields:
one with plain text formatting and other field with filtered text formatting.

But field with filtered text formatting has option of Text Format selected in Drop down.

dineshw’s picture

Status: Active » Closed (cannot reproduce)
ifrik’s picture

Status: Closed (cannot reproduce) » Active
FileSize
66.59 KB

Thanks for the screenshots - they actually reproduce the issue.

The problem is not that "Basic HTML" does not show up in the drop-down menu.
The problem is that when the "Basic HTML" format is chosen, the text editor is not displayed, even though it should. That can be quite nicely seen in the screen shot, but I've also marked it now.

The other part of the issue is that the length of the text field is shortened when "Filtered text" is chosen as an option.
That might also be the case for the text field "Admins Text" in the screenshot.

Version: 8.0.x-dev » 8.1.x-dev

Drupal 8.0.6 was released on April 6 and is the final bugfix release for the Drupal 8.0.x series. Drupal 8.0.x will not receive any further development aside from security fixes. Drupal 8.1.0-rc1 is now available and sites should prepare to update to 8.1.0.

Bug reports should be targeted against the 8.1.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.2.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.1.x-dev » 8.2.x-dev

Drupal 8.1.9 was released on September 7 and is the final bugfix release for the Drupal 8.1.x series. Drupal 8.1.x will not receive any further development aside from security fixes. Drupal 8.2.0-rc1 is now available and sites should prepare to upgrade to 8.2.0.

Bug reports should be targeted against the 8.2.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.3.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.2.x-dev » 8.3.x-dev

Drupal 8.2.6 was released on February 1, 2017 and is the final full bugfix release for the Drupal 8.2.x series. Drupal 8.2.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.3.0 on April 5, 2017. (Drupal 8.3.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.3.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.4.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.3.x-dev » 8.4.x-dev

Drupal 8.3.6 was released on August 2, 2017 and is the final full bugfix release for the Drupal 8.3.x series. Drupal 8.3.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.4.0 on October 4, 2017. (Drupal 8.4.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.4.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.5.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.4.x-dev » 8.5.x-dev

Drupal 8.4.4 was released on January 3, 2018 and is the final full bugfix release for the Drupal 8.4.x series. Drupal 8.4.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.5.0 on March 7, 2018. (Drupal 8.5.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.5.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.6.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Wim Leers’s picture

Component: text.module » editor.module
Category: Bug report » Support request
Status: Active » Fixed
Issue tags: +CKEditor in core

This is because CKEditor doesn't work for input[type=text], it only works for <textarea>.

 * @Editor(
 *   id = "ckeditor",
 *   label = @Translation("CKEditor"),
…
 *   supported_element_types = {
 *     "textarea"
 *   }

If a text editor does support this, they can list textfield there.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.