-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
Copy pathindex.coffee.erb
26 lines (22 loc) · 964 Bytes
/
index.coffee.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#= export Trix
#= require_self
#= require trix/core
#= require trix/config
#= require trix/elements/trix_editor_element
@Trix =
VERSION: "<%= depend_on_asset("trix/VERSION").to_s.chomp %>"
ZERO_WIDTH_SPACE: "\uFEFF"
NON_BREAKING_SPACE: "\u00A0"
OBJECT_REPLACEMENT_CHARACTER: "\uFFFC"
browser:
# Android emits composition events when moving the cursor through existing text
# Introduced in Chrome 65: https://bugs.chromium.org/p/chromium/issues/detail?id=764439#c9
composesExistingText: /Android.*Chrome/.test(navigator.userAgent)
# IE 11 activates resizing handles on editable elements that have "layout"
forcesObjectResizing: /Trident.*rv:11/.test(navigator.userAgent)
# https://www.w3.org/TR/input-events-1/ + https://www.w3.org/TR/input-events-2/
supportsInputEvents: do ->
typeof InputEvent isnt "undefined" and
"inputType" of InputEvent.prototype and
"data" of InputEvent.prototype
config: {}