Giter VIP home page Giter VIP logo

jquery-codemirror's People

Contributors

philsweb avatar

Watchers

 avatar

Forkers

felix1

jquery-codemirror's Issues

CodeMirror height in config

  • Change attribute name 'codemirror-config' โ†’ 'codemirror'

  • Create a new one 'jquery-codemirror'

  • 'codemirror-config' should be still accepted, 'codemirror' preferred

  • 'jquery-codemirror-config' accepted, 'jquery-codemirror' preferred

  • Add a new parameter to 'codemirrorInit(codemirrorConfig, pluginConfig)'

  • Add a pluginConfig key 'height: auto/inherit'

  • Set this value for an element with a '.CodeMirror' CSS class through another CSS class 'codemirror-height-inherit' inside plugin (!important) or jQuery().css()

  • Make this config key (height) work in 'codemirrorInit()' and 'jquery-codemirror' attribute

  • Set default as 'auto'

  • Update README

Release 1.2.0

HTML validation

Hello,

thanks for jQuery'ing this! Highly appreciated!

I am, by no means, well known in HTML5 or jQuery, but as I see it, the use of the private element attributes for configuration are incompatible with Polyglot XHTML5 and even result in invalid HTML5 (plain, that is). See Stackoverflow: Custom attributes - Yea or nay? for more on this. In order to result in valid HTML5, all that would be needed is the use of 'data-' as the start of the private attributes. For Polyglot the empty attributes (first, second, third in 'index.html') would need to become first="first" I think, but I did not investigate much into it.

Is there any special reason, you do it this way? Could this be changed? (I am aware, that configuration can be done differently)

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.