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

Commit

Permalink
update to version 4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sorvell committed Apr 2, 2014
1 parent af55887 commit 369fd73
Show file tree
Hide file tree
Showing 432 changed files with 31,987 additions and 17,803 deletions.
58 changes: 31 additions & 27 deletions code-mirror.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,34 +4,30 @@
license that can be found in the LICENSE file.
-->
<link rel="import" href="../polymer/polymer.html">
<script src="codemirror-3.14/lib/codemirror.js"></script>
<script src="codemirror-3.14/mode/xml/xml.js"></script>
<script src="codemirror-3.14/mode/javascript/javascript.js"></script>
<script src="codemirror-3.14/mode/css/css.js"></script>
<script src="codemirror-3.14/mode/vbscript/vbscript.js"></script>
<script src="codemirror-3.14/mode/htmlmixed/htmlmixed.js"></script>
<link rel="import" href="codemirror-import.html">

<polymer-element name="code-mirror" attributes="value mode theme tabSize lineNumbers">
<template>
<link rel="stylesheet" href="codemirror-3.14/lib/codemirror.css">
<link href="codemirror-3.14/theme/ambiance.css" rel="stylesheet" />
<link href="codemirror-3.14/theme/ambiance-mobile.css" rel="stylesheet" />
<link href="codemirror-3.14/theme/blackboard.css" rel="stylesheet" />
<link href="codemirror-3.14/theme/cobalt.css" rel="stylesheet" />
<link href="codemirror-3.14/theme/eclipse.css" rel="stylesheet" />
<link href="codemirror-3.14/theme/elegant.css" rel="stylesheet" />
<link href="codemirror-3.14/theme/erlang-dark.css" rel="stylesheet" />
<link href="codemirror-3.14/theme/lesser-dark.css" rel="stylesheet" />
<link href="codemirror-3.14/theme/midnight.css" rel="stylesheet" />
<link href="codemirror-3.14/theme/monokai.css" rel="stylesheet" />
<link href="codemirror-3.14/theme/neat.css" rel="stylesheet" />
<link href="codemirror-3.14/theme/night.css" rel="stylesheet" />
<link href="codemirror-3.14/theme/rubyblue.css" rel="stylesheet" />
<link href="codemirror-3.14/theme/solarized.css" rel="stylesheet" />
<link href="codemirror-3.14/theme/twilight.css" rel="stylesheet" />
<link href="codemirror-3.14/theme/vibrant-ink.css" rel="stylesheet" />
<link href="codemirror-3.14/theme/xq-dark.css" rel="stylesheet" />
<link href="codemirror-3.14/theme/xq-light.css" rel="stylesheet" />
<link rel="stylesheet" href="codemirror-4.0/lib/codemirror.css">
<link href="codemirror-4.0/theme/ambiance.css" rel="stylesheet">
<link href="codemirror-4.0/theme/ambiance-mobile.css" rel="stylesheet">
<link href="codemirror-4.0/theme/blackboard.css" rel="stylesheet">
<link href="codemirror-4.0/theme/cobalt.css" rel="stylesheet">
<link href="codemirror-4.0/theme/eclipse.css" rel="stylesheet">
<link href="codemirror-4.0/theme/elegant.css" rel="stylesheet">
<link href="codemirror-4.0/theme/erlang-dark.css" rel="stylesheet">
<link href="codemirror-4.0/theme/lesser-dark.css" rel="stylesheet">
<link href="codemirror-4.0/theme/midnight.css" rel="stylesheet">
<link href="codemirror-4.0/theme/monokai.css" rel="stylesheet">
<link href="codemirror-4.0/theme/neat.css" rel="stylesheet">
<link href="codemirror-4.0/theme/night.css" rel="stylesheet">
<link href="codemirror-4.0/theme/rubyblue.css" rel="stylesheet">
<link href="codemirror-4.0/theme/solarized.css" rel="stylesheet">
<link href="codemirror-4.0/theme/twilight.css" rel="stylesheet">
<link href="codemirror-4.0/theme/vibrant-ink.css" rel="stylesheet">
<link href="codemirror-4.0/theme/xq-dark.css" rel="stylesheet">
<link href="codemirror-4.0/theme/xq-light.css" rel="stylesheet">
<link href="codemirror-4.0/addon/fold/foldgutter.css" rel="stylesheet">

<style>
:host {
Expand All @@ -50,12 +46,17 @@
tabSize: 2,
lineNumbers: true,
ready: function() {
if (!this.value) {
this.value = this.textContent;
}
this.mirror = CodeMirror(this.shadowRoot, {
value: this.value,
value: this.value || this.textContent,
mode: this.mode,
theme: this.theme,
tabSize: this.tabSize,
lineNumbers: this.lineNumbers
lineNumbers: this.lineNumbers,
foldGutter: true,
gutters: ["CodeMirror-linenumbers", "CodeMirror-foldgutter"]
});
},
refresh: function() {
Expand All @@ -75,6 +76,9 @@
},
lineNumbersChanged: function() {
this.mirror.setOption('lineNumbers', this.lineNumbers);
},
focus: function() {
this.mirror.focus();
}
});
</script>
Expand Down
23 changes: 0 additions & 23 deletions codemirror-3.14/LICENSE

This file was deleted.

80 changes: 0 additions & 80 deletions codemirror-3.14/addon/edit/closebrackets.js

This file was deleted.

86 changes: 0 additions & 86 deletions codemirror-3.14/addon/edit/closetag.js

This file was deleted.

44 changes: 0 additions & 44 deletions codemirror-3.14/addon/edit/continuecomment.js

This file was deleted.

25 changes: 0 additions & 25 deletions codemirror-3.14/addon/edit/continuelist.js

This file was deleted.

Loading

0 comments on commit 369fd73

Please sign in to comment.