Inscryb / inscryb-markdown-editor

A simple, beautiful, and embeddable JavaScript Markdown editor. Based off SimpleMDE by Sparksuite.
MIT License
90 stars 16 forks source link

Force sync does not update textarea valid/invalid status #11

Open SamWhited opened 6 years ago

SamWhited commented 6 years ago

I'm submitting a...

Reproduction steps

https://jsfiddle.net/hv352zf8/

Notice that in the example if you remove the inscrybmde the CSS changes the button color. However, if you set a markdown editor on the textarea, even with forceSync as shown in the readme, the button text does not update.

Version information

Browser type and version: Firefox 62.0a1 SimpleMDE version: 1.11.3

CWharton commented 6 years ago

Will have to find time to look into this one unless you have time to do a PR

SamWhited commented 6 years ago

Will have to find time to look into this one unless you have time to do a PR

Normally I'd love to help, but I'm afraid that I've spent my entire career avoiding front end work (and JavaScript in particular) at all costs and have no idea how any of this works :)

CWharton commented 6 years ago

I understand. I will try and find time to look into it more.

zipprich commented 5 years ago

After codemirror is active the sourcecode looks like this: textarea2

and therefore your CSS selector "textarea:valid+button" won't match.