What are server side SDK libraries? A server side SDK acts as a wrapper for REST APIs, allowing developers to build client applications while accessing the APIs they need.
The Froala WYSIWYG Editor has its own server side SDK where it’s possible to install and configure the library, to generate a unique session and run operations on the image manager.
For instance, you can save images and files on the server to publish as content on your website. That being said, you are required to handle a load image and delete image request when interacting with the image manager.
There are also certain actions that determine how files will load on the server including S3 uploads not to mention validations as you will see in the upcoming sections.
1. How can you download the .Net SDK Library?
In order to run the application, simply click the download button to get started. Extract the zip file to preview the rich text editor. The other option is to use Nuget by pasting a specific command into the Package Manager Console.
2. How do you get the text editor running on a Java SDK?
Click Download Java SDK to save a zip file of the Froala text editor onto your computer. Now, you have to import the .jar file into your project directory by configuring a build path in the Eclipse IDE. This will let you display examples of the Java library in your framework.
In the latest version, you can upload basic files and videos to the Java SDK or change the load time as listed in the project updates. The HTML editor should be able to run smoothly on HttpServlet.
3. How do you install the Node.JS package manager?
Follow these instructions to download the Node.JS SDK library. You will need the package manager installed on top of the editor SDK so make sure to run the npm command in Node.JS. You can import the SDK into your program by assigning a variable to the require() method and passing in the JS file location.
To take advantage of server-side integration, you do have to download ImageMagick, an open-source image altering tool. After you have the directory pulled up, you can launch the example apps by initiating the nodejs server.
4. How do you import the PHP SDK library in your app?
The PHP SDK library can be extracted from a zip file, similar to the previous frameworks. If you would rather use Composer, a PHP package manager, you should get the Froala Editor and place it in your composer.json file.
Create a “require” object and assign it the attribute “froala/wysiwyg-editor-php-sdk”. Next, run php composer.phar install to have it added to the example directory. Then, import it into your PHP app with the correct file path.
5. How do you download the Python SDK editor from GitHub?
The HTML Editor currently supports the Python SDK and operates on both Python 2 and Python 3 through widely-accepted frameworks such as Django, Flask, and Pyramid. These examples can be loaded onto specified API.
The only dependency required to start the app is Wand ImageMagick binding, which is a Python add-on for resizing and rotating images, with a few dimensions to customize. To get examples from Django, you have to call python mange.py runserver in the console.
If you’re working in Flask, you have to export FLASK_APP=server.py followed by python -m flask run to initiate the server. To run examples in Pyramid, you will need to call python server.py at localhost 7000.
6. How can you add the Ruby SDK editor to your gem file?
And lastly, there is the Ruby SDK editor, a library available for Froala’s Ruby Gem. Open a new gem file to add gem ‘froala-editor-sdk’, then run it using bundle install. Now, follow the instructions to upload an image to the controller.
The quick start method requires you to set up an upload route in routes.rb. Paste the code from the Github README and assign a jQuery selector to the Froala Editor method. Don’t forget to include your upload image file name as a URL string.
Store the file in a json format by defining an upload_image function that renders a public image through the SDK library. The three dependencies to look out for are: mime-types, mini_magick, and wysiwyg-rails.
Are you experiencing problems with your integration?
If you get stuck for any reason, feel free to ask the Froala Support team for assistance. We are open to suggestions in case you have to send a bug report or want to provide feedback on our server SDK library.