app/cms/scrivito/attribute_content.rb in scrivito_sdk-1.10.0.rc4 vs app/cms/scrivito/attribute_content.rb in scrivito_sdk-1.10.0.rc5

- old
+ new

@@ -136,10 +136,12 @@ def valid_widget_ruby_classes_for(field) computed_classes = self.class.assert_classes(valid_widget_classes_for(field), '#valid_widget_classes_for') ruby_classes = (computed_classes || Scrivito.models.widgets.to_a).uniq - ruby_classes.select { |ruby_class| ruby_class.valid_inside_container?(self.class) } + ruby_classes.select do |ruby_class| + ruby_class.valid_inside_container?(self.class) && !ruby_class.hide_from_editor? + end end def modification_for_attribute(attribute_name, revision=Workspace.current.base_revision) return Modification::UNMODIFIED unless revision