Giter VIP home page Giter VIP logo

bootstrapeditortemplates's People

Contributors

maarten88 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bootstrapeditortemplates's Issues

Since your EditorTemplates render complete control groups - it doesn't work good with Visual Studio MVC scaffolding

I don't know if this is an issue for you really.
When you're building an app that takes into consideration things like localisation, you're probably not relying on Visual Studio's scaffolding / code generation capabilities

but, I thought it was worth mentioning.

E.g, my razor already has control groups in it due to the fact they were generated for me .. and then the .EditorFor part of the control group is now essentially nesting a new control group into the HTML output

\

Would recommend NOT modifying bootstrap.css file as it changes every point release

Might not be considered an issue, but...

I would suggest adding a BET.css file with the alterations and instructions on integrating them into site-specific css.files; I took a quick shot at comparing your file and mine, and the diffs were quite considerable given that they rearranged a lot of stuff wihtout really changing it.

Mine is 3.3.1

If you'd like, I'll take a look at identifying the changes and make a pull request for it.

Support for VB.NET?

my MVC 5 web project is in VB.NET (shock!!) but the Package Mgr installed your C# scripts and code files nevertheless.

I'm going to convert the code, but, I'm no NuGet package author. Let me know if you want my end results to incorporate in a new release.

EnumDropDownListFor in EditorTemplate is ambigius

The call is ambiguous between the following methods or properties: 'Demo_Bootstrap.Utility.EnumDropDown.EnumDropDownListFor<object,object>(System.Web.Mvc.HtmlHelper, System.Linq.Expressions.Expression<System.Func<object,object>>, object)' and 'System.Web.Mvc.Html.SelectExtensions.EnumDropDownListFor<object,object>(System.Web.Mvc.HtmlHelper, System.Linq.Expressions.Expression<System.Func<object,object>>, object)' c:\Users\NSA-PC\Documents\Visual Studio 2013\Projects\Demo Bootstrap\Demo Bootstrap\Views\Shared\EditorTemplates\Enum.cshtml 7 6 Demo Bootstrap

Solution is to remove EnumDropDownList.cs for asp.net mvc 5.

there's a dependency on Microsoft.AspNet.Web.Optimization

BootstrapEditorTemplatesConfig.vb had a squiggly on the Imports System.Web.Optimization which only becomes available if you run the nuget command:

Install-Package Microsoft.AspNet.Web.Optimization

which, to my surprise, I didn't have it already installed, so I installed it.. but, since your project seems to reference them, I thought it probably should have auto retrieved it

Multiline template appears to be named incorrectly

The System.ComponentModel.DataAnnotations.Datatype value for Multiline is DataType.MultilineText. So unless I'm mistaken, the template should be renamed from Multiline.cshml to MultilineText.cshtml.

Error if Config section 'system.web/globalization' already defined.

Error upon restart of app => Config section 'system.web/globalization' already defined. Sections must only appear once per config file. See the help topic for exceptions

... if there was one already there. And any good reason for this:
<globalization culture="en-US" uiCulture="en-US" enableClientBasedCulture="false" requestEncoding="utf-8" responseEncoding="utf-8" />

instead of this:

<globalization uiCulture="auto" culture="auto" enableClientBasedCulture="true" requestEncoding="utf-8" responseEncoding="utf-8" />

Issue with multiple Markdown controls (giving solution)

Hi there, i just found your Editor Templates and I'm trying to use them
I needed to have multiple markdown controls on my page and i've noticed that the current editor template fail with the preview window (all markdowns textarea share the same preview window)

I've found a fix, here it is

@model object

@{
   string guidID = Guid.NewGuid().ToString();
}

<link rel="stylesheet" type="text/css" href="/Scripts/mdd_styles.css" />
<div class="form-group@(Html.ValidationErrorFor(m => m, " has-error"))">
   @Html.LabelFor(m => m, new { @class = "control-label" })
   <div class="mdd_toolbar"></div>
   @Html.TextAreaFor(
            m => m,
            8, 15,
            ViewBag.ClearTextField == true ? new { @class = "form-control mdd_editor clear-text-field", data_mdd_preview = "#" + guidID } : new { @class = "form-control mdd_editor", data_mdd_preview = "#" + guidID })
   @Html.ValidationMessageFor(m => m, null, new { @class = "help-block" })
   <br />
   <label>Preview</label>
   <hr />
   <div class="mdd_preview" id="@guidID"></div>
   <hr />
</div>

I just create a random ID and assign it to the preview window, while using data-mdd-preview on the textarea

MM

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.