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
pull/53/head
Jeroen Akkerman 5 years ago
parent 8c6ae58a6c
commit 20cd3e4586

@ -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.

@ -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

File diff suppressed because one or more lines are too long

2
package-lock.json generated

@ -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": {

@ -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",

@ -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) {

Loading…
Cancel
Save