{% extends 'forms/base_widget.html' %}


{% block html %}
    <input type="hidden" name="{{ field.name }}" id="{{ field.id }}" value="{{ field._value() }}">
    <div id="{{ field.id }}-editor" style="margin-bottom: 10px;"></div>
{% endblock %}


{% block javascript %}
    <script>
        (function() {
            'use strict';

            var field = $('#{{ field.id }}');
            var editor = new RichTextEditor(600, 300, {{ simple | tojson }});
            editor.set(field.val());
            editor.onLoad(function() {
                editor.onChange(function() {
                    field.val(editor.get()).trigger('change');
                });
            });
            $E('{{ field.id }}-editor').set(editor.draw());
            // Re-position the dialog if we have one since the initial position is
            // wrong due to the editor being loaded after the dialog has been opened.
            var dialog = field.closest('.ui-dialog-content');
            if (dialog.length) {
                dialog.dialog('option', 'position', dialog.dialog('option', 'position'));
            }
        })();
    </script>
{% endblock %}

{% extends 'forms/base_widget.html' %}


{% block html %}
    <input type="hidden" name="{{ field.name }}" id="{{ field.id }}" value="{{ field._value() }}">
    <div id="{{ field.id }}-editor" style="margin-bottom: 10px;"></div>
{% endblock %}


{% block javascript %}
    <script>
        (function() {
            'use strict';

            var field = $('#{{ field.id }}');
            var editor = new RichTextEditor(600, 475, {{ simple | tojson }});
            editor.set(field.val());
            editor.onLoad(function() {
                editor.onChange(function() {
                    field.val(editor.get()).trigger('change');
                });
            });
            $E('{{ field.id }}-editor').set(editor.draw());
            // Re-position the dialog if we have one since the initial position is
            // wrong due to the editor being loaded after the dialog has been opened.
            var dialog = field.closest('.ui-dialog-content');
            if (dialog.length) {
                dialog.dialog('option', 'position', dialog.dialog('option', 'position'));
            }
        })();
    </script>
{% endblock %}

Increase ckeditor widget height (300px => 475px)
Increase ckeditor widget height (300px => 475px)
