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 rich text editor not available for chunks #57

Open
spartan1024 opened this issue Apr 7, 2011 · 2 comments
Open

TinyMCE rich text editor not available for chunks #57

spartan1024 opened this issue Apr 7, 2011 · 2 comments

Comments

@spartan1024
Copy link

We use Revolution 2.0.7-pl with TinyMCE 4.2.2 plugin. My settings:

which_editor TinyMCE
which_element_editor TinyMCE

I can edit Resources with TinyMCE, but it is not available for Chunks. Only raw HTML code input is possible.

That's bad because not every site updater is able to write HTML.


I posted this to modcms issue tracker and they responded:

This is not a bug with the MODX core, but rather a feature request for the TinyMCE extra. TinyMCE issues need to be filed in their respective bugtracker:

http://github.com/splittingred/TinyMCE/issues/

Thanks!

@drscre
Copy link

drscre commented Jul 27, 2011

I guess that's still the bug in ModX manager, not TinyMCE package.

I'm working with MODX Revolution 2.1.3-pl (traditional) and the issue can be fixed by changing the following in 'manager/assets/widgets/element/modx.panel.chunk.js' (and in minified js, of course):

replace

if (MODx.onLoadEditor) { MODx.onLoadEditor(this); }

with

if (MODx.config.use_editor && MODx.loadRTE) {
      MODx.loadRTE('modx-chunk-snippet');
}

@Mark-H
Copy link
Contributor

Mark-H commented Jul 30, 2011

AFAIK this is neither a bug in MODX or Tiny - but rather a function that's simply not supported yet...

Resources & Chunks are two different beasts and I would expect more changes then those few modifications you refer to are needed behind the scenes.

That said - I can definitely see a need for something like this for some clients (though they usually never touch Elements on my sites) and it's good that you guys filed it.

If you need clients to edit chunks for a sidebar or a similar content it may be worth checking out the Asides addon by Romain Tripault,a French dev. I think he's made that to work with TinyMCE as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants