T
T
Tutucu2016-10-06 19:31:18
PHP
Tutucu, 2016-10-06 19:31:18

Problem with modx. Why doesn't TinyMCE work on the tickets page and the page doesn't scroll down?

Hello. I create a site, installed the necessary add-ons, everything was fine until I started creating tickets, the ticket editing page stopped scrolling down, although some of the settings and half of the "Content" field go down "behind the screen". Also, the TinyMCE edit menu has disappeared above the "Contents" field, although it is present on any other pages.

The console throws a JS error:
Uncaught TypeError: Cannot read property 'toggle_editor' of undefined tiny.js:126 .

It's just a TinyMCE plugin. But I did not change it in any way, I downloaded and installed it through the installer from the mod-x directory. So one of the most popular plugins in the mod-x directory is broken? Got into the specified file and line:

var tbl = Ext.get('tiny-toggle-label');
        tbl.createChild({
            html: Tiny.lang.toggle_editor
            ,style: 'float: left; margin-right: 5px;'
        });


Climb and change something - I'm afraid ... What should I do? Can any alternative be used?

Screen:
92d51687c83d458294724348d8224454.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Yank, 2016-10-06
@alex-lenk

You need to ask this question here https://modx.pro/help/ there are modex specialists.

D
dasmart, 2016-10-08
@dasmart

Don't be afraid to change. Tickets somehow incorrectly load tinymce, apparently. It does not contain a dictionary. Tiny.lang.toggle_editor is just the name of the toggle in the selected language.
The easiest thing to do is to replace with
a simple string
html: 'Toggle editor:'

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question