Open engrost opened 10 years ago
This is still an issue, and a rather glaring one
I'll investigate since this is an open bug with our integration, but any insight from the authors would be much appreciated
The following code is a simple workaround for this situation:
$(function () {
Suit.after_inline.register('my_unique_func_name', function(inline_prefix, row){
$.each($(row).find('.redactor_box'), function(index, redactor_box){
var script = $(redactor_box).parent().find("script").html()
if(script.search("__prefix__") > -1){
$(redactor_box).find(".redactor_editor").remove()
$(redactor_box).find(".redactor_toolbar").remove()
$(redactor_box).removeClass("redactor_box")
var index = $(row).closest('.inline-related').index(".dynamic-" + inline_prefix)
eval(script.replace("__prefix__", index))
}
})
});
});
Django 1.6.2 django-suit 0.2.4-0.2.9 django-suit-reactor 0.2
Scenario: 2 Models - parent and FK with SortableStackedInline in admin and reactor widget over field
How to recreate:
Expected: Save without any problems
Actual: Getting error that 'description' is empty
Work Around: