Hi
I kind of solved the issue and this is what I did:
1. Move the tiny_mce folder from $RAILS_ROOT/vendor/plugins/
community_engine/plugins/tiny_mce to $RAILS_ROOT/vendor/plugins/
tiny_mce
2. Move the initializer file from $RAILS_ROOT/vendor/plugins/
community_engine/config/initializers/mce_options.rb to $RAILS_ROOT/
config/initializers/mce_options.rb
3. Since I have used the kete-tiny_mce gem before, I had to comment
out the config.gem line in my config/environment.rb file
4. In my layout files, I added the (converted from haml to html)
tiny_mce include:
<%= javascript_include_tiny_mce_if_used %>
<%= tiny_mce if using_tiny_mce? %>
5. Since i was using active_scaffold for my admin backend, I had to
remove the tiny_mce bridge sub directory in $RAILS_ROOT/vendor/plugins/
active_scaffold/lib/bridges
6. in the activescaffold controller I was able to reuse my
uses_tiny_mce :options => {
..
}
block and I got tiny_mce controls when defining e.g.
config.columns[:body].form_ui = :text_editor which I dont really
understans since I removed the tiny_mce bridge from active_scaffold. I
had expected to have to add a class to the text area using an activeS-
caffold helper file. But hey I am not complaining!
The tiny_mce editor does work well in all CE occurrences as well after
the move.
Hope this helps.
Cheers J.
PS: If anybody does come up to reuse the editor keeping it in its
original location inside the community_engine tree, please post here
and let us know!
--
You received this message because you are subscribed to the Google Groups
"CommunityEngine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/communityengine?hl=en.