Open mfa opened 11 years ago
django-wysiwyg looks for the editor configuration in two JavaScript variables:
django_wysiwyg_editor_configs[field_id]
django_wysiwyg_editor_config
as fallback.You can include a custom django_wysiwyg_editor_configs[field_id] = {...}
block below the {% wysiwyg_setup }%
tag to make this work.
reopening for needs-documentation marker.
thx for the help. I solved my issue like this:
django_wysiwyg_editor_configs["id_field1"] = django_wysiwyg_editor_config;
django_wysiwyg_editor_configs["id_field1"]["height"] = "200px";
django_wysiwyg_editor_configs["id_field2"] = $.extend({}, django_wysiwyg_editor_config);
django_wysiwyg_editor_configs["id_field2"]["height"] = "500px";
jquery.extend is needed to get a copy of django_wysiwyg_editor_config.
How can I set a different height for two YUI editors in the same form?