inscryb-markdown-editor icon indicating copy to clipboard operation
inscryb-markdown-editor copied to clipboard

Force sync does not update textarea valid/invalid status

Open SamWhited opened this issue 7 years ago • 4 comments

I'm submitting a...

  • [x] Bug report
  • [ ] Feature request

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

SamWhited avatar Jun 11 '18 00:06 SamWhited

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

CWharton avatar Jul 21 '18 17:07 CWharton

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 :)

SamWhited avatar Aug 30 '18 18:08 SamWhited

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

CWharton avatar Aug 30 '18 20:08 CWharton

After codemirror is active the sourcecode looks like this: textarea2

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

zipprich avatar Jul 29 '19 13:07 zipprich