philsweb / jquery-codemirror Goto Github PK
View Code? Open in Web Editor NEWCodemirror jQuery wrapper
Codemirror jQuery wrapper
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
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)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.