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

Use jQuery version of TinyMCE (Trac #2545) #2545

Closed
elgg-gitbot opened this issue Feb 16, 2013 · 9 comments
Closed

Use jQuery version of TinyMCE (Trac #2545) #2545

elgg-gitbot opened this issue Feb 16, 2013 · 9 comments

Comments

@elgg-gitbot
Copy link

Original ticket http://trac.elgg.org/ticket/2545 on 40772468-02-22 by brettp, assigned to unknown.

Elgg version: 1.7

From #2533: Well.. and if we are on it: they have special jquery version http://tinymce.moxiecode.com/examples/example_22.php lean and mean ;) Should we not use this one or are we already and was I missing it...?

@elgg-gitbot
Copy link
Author

davetosh wrote on 40774139-05-07

We are not using this version, but we should.

@elgg-gitbot
Copy link
Author

davetosh wrote on 40774148-11-07

It might also be worth exploring other lightweight options such as: http://code.google.com/p/jwysiwyg/

@elgg-gitbot
Copy link
Author

davetosh wrote on 40774152-04-22

Or this http://jhtmlarea.codeplex.com/

@elgg-gitbot
Copy link
Author

trac user mjpowersjr wrote on 41031057-03-21

I just wanted to give you guys a heads up (and hopefully save you some time) if you do decide to upgrade to the jQuery version of TinyMCE. (Actually....this applies to either version of TinyMCE...)

I noticed a lot of work has been going into the caching layer of elgg 1.8, and I believe the caching system now has some way to auto-magically combine multiple js / css files for faster load times / eternal caching.

By default, TinyMCE does not handle this sort of setup very well, because it tries to guess its location, and automatically load additional support files (language & theme js files). But.....after staring at the source code for a while, I found a undocumented feature to work around this issue. Adding the following to your page BEFORE you include TinyMCE, will allow you to rename / combine the main TinyMCE js file however you would like. (The path should point to your tiny_mce install directory)

<script> 
  /* support for compressing the tiny_mce libary..... */
  var tinyMCEPreInit = { base: '/some/path/to/js/tiny_mce', suffix: '' };
</script>

@elgg-gitbot
Copy link
Author

brettp wrote on 41031176-11-05

mjpowersjr - Thanks for the tip! This will be very useful once we do switch over. I'm pushing this out to 1.8.1 because we've got our hands full for 1.8 already, and TinyMCE works as is without any major performance issues.

@elgg-gitbot
Copy link
Author

Milestone changed to Elgg 1.8.1 by brettp on 41031176-11-05

@elgg-gitbot
Copy link
Author

cash wrote on 42102630-11-12

We're planning to replace TinyMCE soon so I'm closing this.

@elgg-gitbot
Copy link
Author

Milestone changed to Near Term Future Release by cash on 42102630-11-12

@elgg-gitbot
Copy link
Author

cash wrote on 42102631-09-20

Er..I mean this time I really am closing it.

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

No branches or pull requests

1 participant