Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added google analytics. fixed bug

  • Loading branch information...
commit b441e84d633cdfd303e60a30a99904221562c1b0 1 parent c76a25a
James Hollingworth authored
Showing with 15 additions and 1 deletion.
  1. +14 −0 index.html
  2. +1 −1  src/bootstrap-wysihtml5.js
View
14 index.html
@@ -22,6 +22,20 @@
border-radius: 6px;
}
</style>
+
+<script type="text/javascript">
+
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-30181385-1']);
+ _gaq.push(['_trackPageview']);
+
+ (function() {
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+ })();
+
+</script>
</head>
<body>
<div class="container">
View
2  src/bootstrap-wysihtml5.js
@@ -32,7 +32,7 @@
"lists": true
};
- Wysihtml5 = function(el, options) {
+ var Wysihtml5 = function(el, options) {
this.el = el;
this.toolbar = this.createToolbar(el, options || defaultOptions);
this.editor = new wysi.Editor(this.el.attr('id'), {
Please sign in to comment.
Something went wrong with that request. Please try again.