CharlesMx / mxCalendar

mxCalendar for ModX WCMS. Full event management with categories, repeating events, event list and calendar views.
http://www.charlesmx.com
18 stars 23 forks source link

Richtext editor issues - Uncaught ReferenceError: tinyMCE is not defined #157

Closed Lefthandmedia closed 9 years ago

Lefthandmedia commented 10 years ago

Hi the richtext editor is not working on my 2.2.14 with MXc 1.1.10 My first thought was that it was because we use redactor i can't confirm that this is the reason. Any one else using MXc en Redactor and having problems? Second: After looking for more richtext settings i didn't find any richtext settings under the 'mxcalendars' namespace but i did find mxcalendars.use_richtext setting in core namespace under TinyMCE area. that's not supposed to be there? right?

Lefthandmedia commented 10 years ago

after further investigation i found an error on line 1506 of mxcalendars.grid.js

if(tinyMCE){
``` . since i'm using Redactor i get the JS error tinyMCE is not defined 
Lefthandmedia commented 10 years ago

I found that the setting mxcalendars.use_richtext was set in the namespace 'mxcalendar' instead of 'mxcalendars'

Lefthandmedia commented 10 years ago

changing

if(tinyMCE)

into

if(typeof tinyMCE !== "undefined")

solved a big part of this problem

matdave commented 10 years ago

THANKS Lefthandmedia! The namespace thing was my issue, since we use TinyMCE.