# Firefox 78でテキストエディタが動作しない？

**URL:** <https://meta.discourse.org/t/text-editor-is-not-working-in-firefox-78/231513>\
**Category:** Product Support\
**Created:** [2022 年 6 月 30 日午前 12:12 UTC](https://meta.discourse.org/t/text-editor-is-not-working-in-firefox-78/231513 "2022-06-30T00:12:50Z")\
**Posts on this page:** 1\
**Showing post:** 22

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [2022 年 7 月 12 日午前 9:38 UTC](https://meta.discourse.org/t/text-editor-is-not-working-in-firefox-78/231513/22 "2022-07-12T09:38:30Z")

</div>

このようなバグを機能検出するのは難しいため、ユーザーエージェントを確認するしかないと思います。

> <https://github.com/discourse/discourse/pull/17443>
>
> Prior to v89, Firefox has bugs with document.execCommand("insertText"): https://…bugzil.la/1220696
> 
> This commit introduces some variables to browser-detect, and therefore wraps the entire logic in an IIFE to avoid state leaking. (\`let\`/\`const\` are not supported on older browsers)
> 
> (best reviewed \[with whitespace changes hidden\](https://github.com/discourse/discourse/pull/17443/files?diff=split&w=1))

---

_[View the full topic](https://meta.discourse.org/t/text-editor-is-not-working-in-firefox-78/231513)._
