Hotfix: change role="button" to type="button"

* Closes issue #45 and properly fixes issue #38
* Added typescript support line to README
* Bumped version to 2.5.1
* Rebuilt dist files
This commit is contained in:
Jeroen Akkerman 2019-01-17 12:29:45 +01:00
parent 8c6ae58a6c
commit 20cd3e4586
6 changed files with 7 additions and 6 deletions

View file

@ -11,6 +11,7 @@ Changes include:
* Support for Node 8 and beyond * Support for Node 8 and beyond
* Lots of refactored code * Lots of refactored code
* Links in preview will open in a new tab by default * Links in preview will open in a new tab by default
* Typescript support
My intention is to continue development on this project, improving it and keeping it alive. My intention is to continue development on this project, improving it and keeping it alive.

View file

@ -1,5 +1,5 @@
/** /**
* easymde v2.5.0 * easymde v2.5.1
* Copyright Jeroen Akkerman * Copyright Jeroen Akkerman
* @link https://github.com/ionaru/easy-markdown-editor * @link https://github.com/ionaru/easy-markdown-editor
* @license MIT * @license MIT

4
dist/easymde.min.js vendored

File diff suppressed because one or more lines are too long

2
package-lock.json generated
View file

@ -1,6 +1,6 @@
{ {
"name": "easymde", "name": "easymde",
"version": "2.5.0", "version": "2.5.1",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View file

@ -1,6 +1,6 @@
{ {
"name": "easymde", "name": "easymde",
"version": "2.5.0", "version": "2.5.1",
"description": "A simple, beautiful, and embeddable JavaScript Markdown editor that easy to use. Features include autosaving and spell checking.", "description": "A simple, beautiful, and embeddable JavaScript Markdown editor that easy to use. Features include autosaving and spell checking.",
"keywords": [ "keywords": [
"embeddable", "embeddable",

View file

@ -119,7 +119,7 @@ function createIcon(options, enableTooltips, shortcuts) {
options = options || {}; options = options || {};
var el = document.createElement('button'); var el = document.createElement('button');
el.className = options.name; el.className = options.name;
el.setAttribute('role', 'button'); el.setAttribute('type', 'button');
enableTooltips = (enableTooltips == undefined) ? true : enableTooltips; enableTooltips = (enableTooltips == undefined) ? true : enableTooltips;
if (options.title && enableTooltips) { if (options.title && enableTooltips) {