orionjs / orioncms

[Old] Orion is an open source framework built on Meteor that makes complex as well as simple apps possible with minimal effort.
http://orionjs.org
MIT License
715 stars 129 forks source link

How can I upgrade orionjs:froala to froala v2? #349

Open ecuanaso opened 8 years ago

ecuanaso commented 8 years ago

So I'm in the process of migrating orionjs:froala to Froala V2. I've made some progress but I'm stuck in some parts. Inside the froala.js file https://github.com/orionjs/orion/blob/master/packages/froala/froala.js

I changed the initialization of the editor from editable to froalaEditor. https://gist.github.com/ecuanaso/f809adbe0c6a1a63903f

This change helped me show the Froala v2 in my orion backend panel-> http://postimg.org/image/qo1yob18h/

However when I try to write content and or upload images inside the froala editor, I receive an error 'Editor should be initialized before calling the html.get method.'

  1. So my question, what else inside the orion:froala package do I have to change to make it work with froala v2?
  2. When I get this up and running how do I configure the image_manager to receive images from my server? If you're not sure what the image_manager is here's a screenshot.

http://s25.postimg.org/enn1ncnpb/Screen_Shot_2015_10_05_at_8_56_18_AM.png

and here's the link to the tutorial on how to server side integration, however it's in php. https://www.froala.com/wysiwyg-editor/v2.0/docs/server-integrations/php-image-manager

I'm trying to find the material way to connect the image manager with meteor.

macrozone commented 8 years ago

I started a PR with the update to version 2:

https://github.com/orionjs/orion/pull/355

ecuanaso commented 8 years ago

Hey, macrozone. I was able to upgrade to v2, there's still some bugs I have to iron out though. Right now, I'm working on integrating my server to to show images from the images I upload to the filesystem show on the image-manager. The image-manager right now shows images from the froala server -> http://s25.postimg.org/enn1ncnpb/Screen_Shot_2015_10_05_at_8_56_18_AM.png