Skip to content
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.

No @Html.Editor() template for multiline text #965

Closed
dougbu opened this issue Aug 11, 2014 · 2 comments
Closed

No @Html.Editor() template for multiline text #965

dougbu opened this issue Aug 11, 2014 · 2 comments

Comments

@dougbu
Copy link
Member

dougbu commented Aug 11, 2014

This is a functional gap compared to MVC 5.2. While we have all @Html.TextArea() overloads, the corresponding default editor template (MultilineTextTemplate()) does not yet exist. @Html.Editor() will return an <input> (not <textarea>) element for properties with an applied [DataType(DataType.MultilineText)].

Note bug #933 also blocks the [DataType(DataType.MultilineText)] scenario. But fixing this bug would at least allow developers to usefully set ModelMetadata.DataTypeName to "MultilineText". The scenario would work from there.

@dougbu dougbu changed the title Address MultilineTextTemplate TODO item No @Html.Editor() template for multiline text Aug 13, 2014
@dougbu
Copy link
Member Author

dougbu commented Aug 13, 2014

Fix here is to address "MultilineText" template TODO item in TemplateRenderer and DefaultEditorTemplates.

@danroth27 danroth27 added this to the 6.0.0-beta1 milestone Sep 3, 2014
dougbu added a commit that referenced this issue Oct 16, 2014
- #965
- test call-throughs from `Html.Editor[For]()` to inner `IHtmlHelper`
 - add another parameter to `DefaultTemplatesUtilities.GetHtmlHelper()`

nit: reorder dictionaries at the top of `TemplateRenderer` slightly
dougbu added a commit that referenced this issue Oct 16, 2014
- #965
- test call-throughs from `Html.Editor[For]()` to inner `IHtmlHelper`
 - add another parameter to `DefaultTemplatesUtilities.GetHtmlHelper()`

nit: reorder dictionaries at the top of `TemplateRenderer` slightly
dougbu added a commit that referenced this issue Oct 16, 2014
- #965
- test call-throughs from `Html.Editor[For]()` to inner `IHtmlHelper`
 - add another parameter to `DefaultTemplatesUtilities.GetHtmlHelper()`

nit: reorder dictionaries at the top of `TemplateRenderer` slightly
@dougbu
Copy link
Member Author

dougbu commented Oct 16, 2014

Fixed w/ commit 34f17db

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants