Days
Hours
Minutes
Seconds
x

New Froala Editor v4.5.1 is here – Learn More

Skip to content

Quick and Easy Methods to Adjust the Size of Your Froala Editor

Logo for the Froala quick and easy methods to adjust the size of your Froala Editor.

Froala Javascript Editor offers developers the complete flexibility and creativity to adjust the look and feel of the editor to suit their application. In a recent blog post, we discussed how to include multiple Froala Editors on a single webpage. Today, we’ll discuss how to adjust the size of the editors so they can nicely fit on a single webpage.

The ‘Editor Size’parameter allows us to achieve this functionality. Users can tune in to the following:

ADJUST MIN AND MAX HEIGHT

Users can adjust the height of the editors by setting ‘heightMin’ and ‘heightMax’ in JavaScript.
heightMin will prevent the text editor box from being smaller than the value passed.
heightMax will prevent the text editor box from being taller than the value passed.

Step 1:
Include the CSS File under the ‘Resources’ section
https://cdn.jsdelivr.net/npm/froala-editor/css/froala_editor.pkgd.min.css
https://cdn.jsdelivr.net/npm/froala-editor/js/froala_editor.pkgd.min.js

Step 2:
Apply the HTML code of the editor. If you need to add multiple editors on your webpage, instantiate multiple instances of it in this section.

HTML code section in a web editor, emphasizing coding and design

Step 3:
Add the JS code of the editor by defining the heightMin & heightMax

new FroalaEditor('div#froala-editor', {
  heightMin: 800,
  heightMax: 1000
})

SEE IT IN ACTION

FIDDLE
https://jsfiddle.net/6gs194ad/1/

Final Output with Min and Max Height Set
Web browser window with minimum and maximum height settings

 

PREDEFINED HEIGHTS

The ‘height’ parameter allows you to set the specific height of the editor. If the text appears longer inside, the text editor automatically adds in a vertical scrollbar.

Here’s a quick rundown on how to enable this feature.
Follow Steps 1 & 2 as highlighted above.
Step 3: Add the JS code of the editor by defining ‘height

new FroalaEditor('div#froala-editor', {
   height: 200
 })

SEE IT IN ACTION

FIDDLE
https://jsfiddle.net/e674knz9/

Final Output with Predefined Height set
Browser window with a height option slider interface

TRY FROALA EDITOR

Don’t let other editors on the market dictate how you should design your application. Try Froala and unlock the rich editing capabilities of the modern, customizable, and flexible WYSIWYG Editor

FusionCharts Brings Powerful JavaScript Data Components to the Idera Family!

A group of working professionals gathered around a massive laptop organizing analytical data.

Idera, Inc., the parent company of Froala and many other exciting software productivity brands, recently announced the acquisition of FusionCharts, a market leader in JavaScript charting components and tools. FusionCharts will join Idera’s Developer Tools business unit that includes Embarcadero, LANSA, Sencha, Whole Tomato and Froala. As the General Manager of Froala and Sencha, I am thrilled to include FusionCharts under my leadership umbrella.

What does FusionCharts do?

FusionCharts empowers developers to build user-friendly, visually appealing dashboards for web and mobile projects. The company’s products include FusionCharts Suite XT, FusionTime, and FusionExport charting libraries that offer 100+ interactive charts and over 2,000 data-driven maps. FusionCharts products are easy to use and include extensive documentation, consistent API, and cross-browser support to build data visualization for projects of any complexity.

 

How does the acquisition benefit the Froala Community?

Froala customers will directly benefit from this acquisition as it complements the Froala WYSIWYG Editor with additional robust charting capabilities. Developers can add new dimensions to their applications utilizing the capabilities and power of FusionCharts. FusionCharts easily integrates into popular front-end frameworks (such as React, jquery etc.) or back-end server-side programming languages of your choice (eg: PHP, Django and more)—allowing users to stay with their development methodology and enhance their existing projects with advanced charting and dashboard elements.

We are dedicated to building on FusionCharts’ history of market-leading charting components and data visualization tools. The synergy between Idera’s Dev Tools products, and the addition of FusionCharts to this mix will provide more options to thousands of developers worldwide. You can trust that the quality of FusionCharts will be above and beyond the high standards you already know and enjoy with the Froala product.

 

The Future is Bright

This acquisition opens the door for immense growth and we are thrilled to drive the possibilities that lie ahead. FusionCharts is trusted by more than 800,000 developers and more than 28,000 companies worldwide, including Facebook, Apple, Microsoft, Google, Oracle, Adobe, IBM, Intel, Caterpillar, Walmart, Vanguard, and many others.

Data visualization plays a critical role in today’s software products. FusionCharts helps developers convert data into engaging visualizations with minimal effort and learning required. Charting expands Idera’s JavaScript developer reach and further solidifies our position as the go-to source for mission-critical JS components.

Learn more about Fusioncharts at http://fusioncharts.com/
The future is bright and we stay committed to making our customers successful! I am here to answer any questions you may have.

Written by Kegan Blumenthal
Kegan Blumenthal is the General Manager of Froala. He has nearly 10 years of experience leading companies in the developer tools space. Most recently, he was Head of Business Development at PullRequest, a service providing high quality, on-demand code reviewers for any project or language. Before PullRequest, he was the GM at Corona Labs, one of the leading game engines in the mobile gaming space and led Corona through successful acquisitions.

Using Multiple Froala Editors On a Single Webpage

Browser with a text editor showing the Froala Inline Editor Demo page bolding the title.

Froala Editor is a lightweight WYSIWYG HTML Editor written in Javascript that enables rich text editing capabilities for your applications and provides users with customizable features and parameters that can be tweaked to suit their specific needs. For example, buttons, dropdowns, pop-ups, icon shortcuts, and other features can be quickly customized based on your preferences. Or how about creating multiple Froala editors on one webpage, each with their own unique features and without affecting the editing experience? Sounds interesting?

In this article, we’ll look at how to do this in a few easy steps. With multiple Froala editors on a single webpage, you can even drag and drop images from one editor to another!

Step 1: 

Include Froala Editor CSS and JS File under the Resources section:

https://editor-latest.s3.amazonaws.com/v3/css/froala_editor.pkgd.min.css

https://editor-latest.s3.amazonaws.com/v3/js/froala_editor.pkgd.min.js

A detailed view of a web editor interface with a focus on design elements

Step 2: 

Add the HTML code of the editor multiple times at your desired places on the page.

The HTML code of multiple editors should be a unique ID. Here we have:

<div id=”froala-editor1”> and <div id=”froala-editor2”>

A complex web editor interface with multiple tools and options

Step 3: 

Add the Javascript code of the editor including editor1 and editor2.

A web editor interface showing text formatting options and toolbar

Step 4: 

Customize the editors with different toolbars by including toolbarButtons option.

A web editor interface with image editing tools and options

 

Try it out in JSFiddle

https://jsfiddle.net/t7bw4j20/1/

 

See it in Action

Try Froala Editor

Unlock the rich editing capabilities of the modern WYSIWYG Editor