Alex-D / Trumbowyg

A lightweight and amazing WYSIWYG JavaScript editor under 10kB
https://alex-d.github.io/Trumbowyg
MIT License
3.99k stars 612 forks source link

Is it possible to query the editor version from JS? #1297

Open blocknotes opened 2 years ago

blocknotes commented 2 years ago

Hey :) Thank you for the editor!

As in the subject: is there a way to check the editor version from Javascript? I have a project which is a Ruby wrapper of Trumbowyg and I would like to have a test to check the expected version of the component.

Alex-D commented 2 years ago

Hi! There is no version variable or method in the lib :/ The only way is to check generated comment at the top of the JS file, which is a bit hacky ^^'