basecamp/trix

Code samples in official documentation work for 1.3.1 but not for 2.1.3

cimenta opened this issue · 0 comments

Describe the bug or issue here…

Steps to Reproduce
  1. use code to insert text as described on https://github.com/basecamp/trix#inserting-and-deleting-text
  2. you will get element2.editor is undefined for 2.1.3 in firefox.
  3. everything works for 1.3.1

https://jsfiddle.net/radek/x84Lnm76/9/

Details
  • Trix version: 2.1.3
  • Browser name and version: latest firefox , chrome
  • Operating system: Win11

When I load provided jsFiddle in Chrome, Vivaldi then the text Hello2 appears SOMETIMES. https://youtu.be/2LR6WaoLIDI

More info here

https://stackoverflow.com/questions/78802380/issue-with-loading-js-library-unpkg-com-v-cdnjs-cloudflare-com-inside-domcon