Skip to content
@froala

Froala

Editing software for fast development with better developer and user experience in mind.

Build Status npm npm

Froala WYSIWYG HTML Editor is one of the most powerful JavaScript rich text editors ever.

WYSIWYG HTML Editor

Demos

Download and Install Froala Editor

Install from npm

npm install froala-editor

Install from bower

bower install froala-wysiwyg-editor

Load from CDN

Using Froala Editor from CDN is the easiest way to install it and we recommend using the jsDeliver CDN as it mirrors the NPM package.

<!-- Include Editor style. -->
<link href="https://cdn.jsdelivr.net/npm/froala-editor@latest/css/froala_editor.pkgd.min.css" rel="stylesheet" type="text/css" />

<!-- Create a tag that we will use as the editable area. -->
<!-- You can use a div tag as well. -->
<textarea></textarea>

<!-- Include Editor JS files. -->
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/froala-editor@latest/js/froala_editor.pkgd.min.js"></script>

<!-- Initialize the editor. -->
<script>
  new FroalaEditor('textarea');
</script>

Load from CDN as an AMD module

Froala Editor is compatible with AMD module loaders such as RequireJS. The following example shows how to load it along with the Algin plugin from CDN using RequireJS.

<html>
<head>
  <!-- Load CSS files. -->
  <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/froala-editor@latest/css/froala_editor.css">

  <script src="require.js"></script>
  <script>
    require.config({
      packages: [{
        name: 'froala-editor',
        main: 'js/froala_editor.min'
      }],
      paths: {
        // Change this to your server if you do not wish to use our CDN.
        'froala-editor': 'https://cdn.jsdelivr.net/npm/froala-editor@latest'
      }
    });
  </script>

  <style>
    body {
      text-align: center;
    }
    div#editor {
      width: 81%;
      margin: auto;
      text-align: left;
    }
    .ss {
      background-color: red;
    }
  </style>
</head>

<body>
  <div id="editor">
    <div id='edit' style='margin-top:30px;'>
    </div>
  </div>

  <script>
    require([
      'froala-editor',
      'froala-editor/js/plugins/align.min'
    ], function(FroalaEditor) {
      new FroalaEditor('#edit')
    });
  </script>
</body>

</html>

Load Froala Editor as a CommonJS Module

Froala Editor is using an UMD module pattern, as a result it has support for CommonJS. The following examples presumes you are using npm to install froala-editor, see Download and install FroalaEditor for more details.

var FroalaEditor = require('froala-editor');

// Load a plugin.
require('froala-editor/js/plugins/align.min');

// Initialize editor.
new FroalaEditor('#edit');

Load Froala Editor as a transpiled ES6/UMD module

Since Froala Editor supports ES6 (ESM - ECMAScript modules) and UMD (AMD, CommonJS), it can be also loaded as a module with the use of transpilers. E.g. Babel, Typescript. The following examples presumes you are using npm to install froala-editor, see Download and install FroalaEditor for more details.

import FroalaEditor from 'froala-editor'

// Load a plugin.
import 'froala-editor/js/plugins/align.min.js'

// Initialize editor.
new FroalaEditor('#edit')

For more details on customizing the editor, please check the editor documentation.

Use with your existing framework

Browser Support

At present, we officially aim to support the last two versions of the following browsers:

  • Chrome
  • Edge
  • Firefox
  • Safari
  • Opera
  • Internet Explorer 11
  • Safari iOS
  • Chrome, Firefox and Default Browser Android

Resources

Reporting Issues

We use GitHub Issues as the official bug tracker for the Froala WYSIWYG HTML Editor. Here are some advices for our users that want to report an issue:

  1. Make sure that you are using the latest version of the Froala WYSIWYG Editor. The issue that you are about to report may be already fixed in the latest master branch version: https://github.com/froala/froala-wysiwyg/tree/master/js.
  2. Providing us reproducible steps for the issue will shorten the time it takes for it to be fixed. A JSFiddle is always welcomed, and you can start from this basic one.
  3. Some issues may be browser specific, so specifying in what browser you encountered the issue might help.

Technical Support or Questions

If you have questions or need help integrating the editor please contact us instead of opening an issue.

Licensing

In order to use the Froala Editor you have to purchase one of the following licenses according to your needs. You can find more about that on our website on the pricing plan page.

Popular repositories Loading

  1. design-blocks design-blocks Public

    A set of 170+ Bootstrap based design blocks ready to be used to create clean modern websites.

    HTML 13.5k 1.2k

  2. wysiwyg-editor wysiwyg-editor Public

    The next generation Javascript WYSIWYG HTML Editor.

    CSS 5.3k 675

  3. angular-froala-wysiwyg angular-froala-wysiwyg Public

    Angular 4, 5, 6, 7, 8 and 9 plugin for Froala WYSIWYG HTML Rich Text Editor.

    TypeScript 736 202

  4. vue-froala-wysiwyg vue-froala-wysiwyg Public

    Vue component for Froala WYSIWYG HTML Rich Text Editor.

    JavaScript 633 86

  5. react-froala-wysiwyg react-froala-wysiwyg Public

    React component for Froala WYSIWYG HTML Rich Text Editor.

    JavaScript 565 131

  6. wysiwyg-rails wysiwyg-rails Public

    Ruby gem for Froala jQuery WYSIWYG HTML Rich Text Editor.

    CSS 464 104

Repositories

Showing 10 of 58 repositories
  • ember-froala-editor Public

    Ember component for Froala WYSIWYG HTML Rich Text Editor.

    froala/ember-froala-editor’s past year of commit activity
    JavaScript 70 MIT 35 5 0 Updated Nov 19, 2024
  • wordpress-froala-wysiwyg Public

    Wordpress plugin for Froala WYSIWYG HTML Editor.

    froala/wordpress-froala-wysiwyg’s past year of commit activity
    CSS 42 GPL-3.0 28 1 5 Updated Nov 18, 2024
  • django-froala-editor Public

    Package to integrate Froala WYSIWYG HTML rich text editor with Django.

    froala/django-froala-editor’s past year of commit activity
    CSS 284 71 22 6 Updated Nov 18, 2024
  • angular-froala-wysiwyg Public

    Angular 4, 5, 6, 7, 8 and 9 plugin for Froala WYSIWYG HTML Rich Text Editor.

    froala/angular-froala-wysiwyg’s past year of commit activity
    TypeScript 736 202 169 12 Updated Nov 18, 2024
  • react-froala-wysiwyg Public

    React component for Froala WYSIWYG HTML Rich Text Editor.

    froala/react-froala-wysiwyg’s past year of commit activity
    JavaScript 565 131 143 7 Updated Nov 18, 2024
  • froala-editor-nuget Public

    Nuget package for Froala WYSIWYG Editor

    froala/froala-editor-nuget’s past year of commit activity
    3 1 0 0 Updated Nov 18, 2024
  • Craft-3-Froala-WYSIWYG Public

    Craft 3 CMS plugin for Froala WYSIWYG HTML Rich Text Editor.

    froala/Craft-3-Froala-WYSIWYG’s past year of commit activity
    PHP 17 MIT 12 11 1 Updated Nov 18, 2024
  • wysiwyg-cake2 Public

    CakePHP Plugin for Froala Javascript WYSIWYG Rich Text Editor.

    froala/wysiwyg-cake2’s past year of commit activity
    CSS 11 MIT 11 0 0 Updated Nov 18, 2024
  • wysiwyg-cake Public

    CakePHP Plugin for Froala Javascript WYSIWYG Rich Text Editor.

    froala/wysiwyg-cake’s past year of commit activity
    CSS 8 16 2 4 Updated Nov 18, 2024
  • meteor-froala Public

    Meteor bindings for the Froala WYSIWYG HTML Editor.

    froala/meteor-froala’s past year of commit activity
    CSS 68 MIT 19 3 0 Updated Nov 18, 2024