basecamp / basecamp/trix

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

Open
#1,173 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
20k
Forks
1.1k
Avg merge
3d 12h
Merged PRs (30d)
13

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.