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

TinyMCE Editor (as Template Variable) not connected to settings #97

Open
moniarde opened this issue Jan 31, 2013 · 3 comments
Open

TinyMCE Editor (as Template Variable) not connected to settings #97

moniarde opened this issue Jan 31, 2013 · 3 comments

Comments

@moniarde
Copy link

Platform: MODX Revo 2.2.4pl, TinyMCE plugin 4.3.3

I am having problems with the rich text editor as a template variable, where the textarea is only about 380px wide, despite all settings point to make the editor width 100% of the window. A quick test to see if the TV RTE would respond to MODx system settings showed that, when I changed the TinyMCE theme on the main MODx settings, the main content theme changed, but the TV theme did not. I also checked the plugin settings directly; the main content RTE changed width and height on command, but the TV RTE did not.

Primarily, the width of the RTE as a TV needs to be fixed, but beyond that, to connect it with system and plugin settings.

Attached: screen shot of RTE as TV
Screen Shot 2013-01-31 at 5 35 02 PM

@krajicek
Copy link

krajicek commented Oct 1, 2013

Confirming the same issue. However I have 3 TVs where this work just fine (RTE has full width - or 95% as per properties) and 1 TV where this issue causes it to be about 380px wide.

funny is that it has different width set - this is captured via Firebug - changed < > brackets into [ ]:
[table id="tv11_tbl" class="mceLayout" cellspacing="0" cellpadding="0" role="presentation" style="width: 187px; height: 100px;"]

Platform: MODX Revo 2.2.8pl, TinyMCE plugin 4.3.3

@Pendrokar
Copy link

Experience the same. With one and two TinyMCE RichText template variable.

Platform: MODX Revo 2.3.1pl, TinyMCE plugin 4.3.3

@DKurilo
Copy link

DKurilo commented May 14, 2015

The problem is in /assets/components/tinymce/tiny.js
When you have Rich Text in Settings checked it calls MODx.loadRTE
In other case tinyMCE doesn't initialize.
I just added
if (Tiny.config.plugins.indexOf(',inlinepopups')<0) MODx.loadRTE();
as the first string in onTVLoad function body.
I know it isn't the best solution, but it works for me.

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

4 participants