Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't view field html source in production environment, getting "Cannot read properties of undefined (reading 'dom')" #284

Open
agiovacchini opened this issue Mar 30, 2022 · 0 comments

Comments

@agiovacchini
Copy link

agiovacchini commented Mar 30, 2022

Can't view field html source by clicking this icon in editor in production environment but works in local development

image

In production I'm getting this error:

I'm using Rails 6.1.5 and tinymce-rails 5.10.3

theme.js?v=5.10.3:1 Uncaught TypeError: Cannot read properties of undefined (reading 'dom')
    at theme.js?v=5.10.3:1:4470
    at ze (theme.js?v=5.10.3:1:19745)
    at theme.js?v=5.10.3:3:18136
    at ve (theme.js?v=5.10.3:1:17897)
    at theme.js?v=5.10.3:3:18108
    at Object.n (theme.js?v=5.10.3:7:31464)
    at Object.find (theme.js?v=5.10.3:3:18084)
    at Object.find (theme.js?v=5.10.3:3:18286)
    at u (theme.js?v=5.10.3:3:18905)
    at As (theme.js?v=5.10.3:3:17022)
    at theme.js?v=5.10.3:3:19316
    at bo (theme.js?v=5.10.3:1:26806)
    at theme.js?v=5.10.3:3:19275
    at Object.fold (theme.js?v=5.10.3:7:31510)
    at Object.triggerFocus (theme.js?v=5.10.3:3:19241)
    at Object.set (theme.js?v=5.10.3:2:17559)
    at theme.js?v=5.10.3:2:20052
    at Object.each (theme.js?v=5.10.3:7:31662)
    at n (theme.js?v=5.10.3:2:20020)
    at theme.js?v=5.10.3:8:32700
    at Object.fold (theme.js?v=5.10.3:7:31510)
    at focusIn (theme.js?v=5.10.3:8:32623)
    at theme.js?v=5.10.3:8:14633
    at Object.fold (theme.js?v=5.10.3:7:31510)
    at Object.e [as focusIn] (theme.js?v=5.10.3:8:14466)
    at Object.show (theme.js?v=5.10.3:12:30571)
    at show (theme.js?v=5.10.3:12:31461)
    at Object.t [as show] (theme.js?v=5.10.3:1:20760)
    at theme.js?v=5.10.3:7:25864
    at Object.open (theme.js?v=5.10.3:13:2549)
    at o (theme.js?v=5.10.3:7:24935)
    at Object.open (theme.js?v=5.10.3:7:30321)
    at application-d1563c9020aa55c57940707b4b2fa7205cae546895864475b2b21ff6e16790fa.js:20:17056
    at l (application-d1563c9020aa55c57940707b4b2fa7205cae546895864475b2b21ff6e16790fa.js:20:16990)
    at Object.c [as open] (application-d1563c9020aa55c57940707b4b2fa7205cae546895864475b2b21ff6e16790fa.js:20:17032)
    at t.<anonymous> (plugin.js?v=5.10.3:1:271)
    at commands.exec.<computed> (application-d1563c9020aa55c57940707b4b2fa7205cae546895864475b2b21ff6e16790fa.js:23:20874)
    at t.execCommand (application-d1563c9020aa55c57940707b4b2fa7205cae546895864475b2b21ff6e16790fa.js:23:19639)
    at t.execCommand (application-d1563c9020aa55c57940707b4b2fa7205cae546895864475b2b21ff6e16790fa.js:24:6891)
    at Object.t [as onAction] (plugin.js?v=5.10.3:1:123)
    at theme.js?v=5.10.3:6:3909
    at theme.js?v=5.10.3:3:3822
    at theme.js?v=5.10.3:6:3871
    at theme.js?v=5.10.3:1:22287
    at Th (theme.js?v=5.10.3:7:32032)
    at run (theme.js?v=5.10.3:1:22264)
    at e (theme.js?v=5.10.3:8:10563)
    at theme.js?v=5.10.3:1:940
    at theme.js?v=5.10.3:3:17291
    at Object.fold (theme.js?v=5.10.3:7:31510)
    at As (theme.js?v=5.10.3:3:17183)
    at OO (theme.js?v=5.10.3:10:1275)
    at _O (theme.js?v=5.10.3:10:1384)
    at theme.js?v=5.10.3:3:19191
    at bo (theme.js?v=5.10.3:1:26806)
    at Object.triggerEvent (theme.js?v=5.10.3:3:19165)
    at Zb (theme.js?v=5.10.3:8:9435)
    at we (theme.js?v=5.10.3:1:18267)
    at ke (theme.js?v=5.10.3:1:18342)
    at t (theme.js?v=5.10.3:2:25731)
    at e (theme.js?v=5.10.3:8:10563)
    at theme.js?v=5.10.3:1:940
    at theme.js?v=5.10.3:3:17291
    at Object.fold (theme.js?v=5.10.3:7:31510)
    at As (theme.js?v=5.10.3:3:17183)
    at OO (theme.js?v=5.10.3:10:1275)
    at _O (theme.js?v=5.10.3:10:1384)
    at theme.js?v=5.10.3:3:19086
    at bo (theme.js?v=5.10.3:1:26806)
    at Object.triggerEvent (theme.js?v=5.10.3:3:19053)
    at theme.js?v=5.10.3:3:16109
    at HTMLDivElement.Kt.a (theme.js?v=5.10.3:1:9005)
(anonymous) @ theme.js?v=5.10.3:1
ze @ theme.js?v=5.10.3:1
(anonymous) @ theme.js?v=5.10.3:3
ve @ theme.js?v=5.10.3:1
(anonymous) @ theme.js?v=5.10.3:3
n @ theme.js?v=5.10.3:7
find @ theme.js?v=5.10.3:3
find @ theme.js?v=5.10.3:3
u @ theme.js?v=5.10.3:3
As @ theme.js?v=5.10.3:3
(anonymous) @ theme.js?v=5.10.3:3
bo @ theme.js?v=5.10.3:1
(anonymous) @ theme.js?v=5.10.3:3
fold @ theme.js?v=5.10.3:7
triggerFocus @ theme.js?v=5.10.3:3
set @ theme.js?v=5.10.3:2
(anonymous) @ theme.js?v=5.10.3:2
each @ theme.js?v=5.10.3:7
n @ theme.js?v=5.10.3:2
(anonymous) @ theme.js?v=5.10.3:8
fold @ theme.js?v=5.10.3:7
focusIn @ theme.js?v=5.10.3:8
(anonymous) @ theme.js?v=5.10.3:8
fold @ theme.js?v=5.10.3:7
e @ theme.js?v=5.10.3:8
show @ theme.js?v=5.10.3:12
show @ theme.js?v=5.10.3:12
t @ theme.js?v=5.10.3:1
(anonymous) @ theme.js?v=5.10.3:7
open @ theme.js?v=5.10.3:13
o @ theme.js?v=5.10.3:7
open @ theme.js?v=5.10.3:7
(anonymous) @ application-d1563c9020aa55c57940707b4b2fa7205cae546895864475b2b21ff6e16790fa.js:20
l @ application-d1563c9020aa55c57940707b4b2fa7205cae546895864475b2b21ff6e16790fa.js:20
c @ application-d1563c9020aa55c57940707b4b2fa7205cae546895864475b2b21ff6e16790fa.js:20
(anonymous) @ plugin.js?v=5.10.3:1
commands.exec.<computed> @ application-d1563c9020aa55c57940707b4b2fa7205cae546895864475b2b21ff6e16790fa.js:23
t.execCommand @ application-d1563c9020aa55c57940707b4b2fa7205cae546895864475b2b21ff6e16790fa.js:23
t.execCommand @ application-d1563c9020aa55c57940707b4b2fa7205cae546895864475b2b21ff6e16790fa.js:24
t @ plugin.js?v=5.10.3:1
(anonymous) @ theme.js?v=5.10.3:6
(anonymous) @ theme.js?v=5.10.3:3
(anonymous) @ theme.js?v=5.10.3:6
(anonymous) @ theme.js?v=5.10.3:1
Th @ theme.js?v=5.10.3:7
run @ theme.js?v=5.10.3:1
e @ theme.js?v=5.10.3:8
(anonymous) @ theme.js?v=5.10.3:1
(anonymous) @ theme.js?v=5.10.3:3
fold @ theme.js?v=5.10.3:7
As @ theme.js?v=5.10.3:3
OO @ theme.js?v=5.10.3:10
_O @ theme.js?v=5.10.3:10
(anonymous) @ theme.js?v=5.10.3:3
bo @ theme.js?v=5.10.3:1
triggerEvent @ theme.js?v=5.10.3:3
Zb @ theme.js?v=5.10.3:8
we @ theme.js?v=5.10.3:1
ke @ theme.js?v=5.10.3:1
t @ theme.js?v=5.10.3:2
e @ theme.js?v=5.10.3:8
(anonymous) @ theme.js?v=5.10.3:1
(anonymous) @ theme.js?v=5.10.3:3
fold @ theme.js?v=5.10.3:7
As @ theme.js?v=5.10.3:3
OO @ theme.js?v=5.10.3:10
_O @ theme.js?v=5.10.3:10
(anonymous) @ theme.js?v=5.10.3:3
bo @ theme.js?v=5.10.3:1
triggerEvent @ theme.js?v=5.10.3:3
(anonymous) @ theme.js?v=5.10.3:3
Kt.a @ theme.js?v=5.10.3:1
Show 42 more frames
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant