for (PropertiesEditor pe : langPropertiesEditorMap.values()) {
if (pe != null) {
for (PropertiesEditor.PropertyAdapterField adapterField : pe.getFieldsMap().values()) {
Field<?> field = adapterField.getField();
if ((field instanceof CKEditorField) && field.isEnabled() && !field.isReadOnly() && ((FieldSet)adapterField.getParent()).isExpanded()) {
CKEditorField ckfield = (CKEditorField) field;
if (ckfield.isIgnoreWcagWarnings()) {
continue;
}
if (ckfield.getItemId() == null) {
ckfield.setItemId("CKEditorField-" + (fieldsToValidate.size() + 1));
}
String text = ckfield.getRawValue();
if (text != null && text.trim().length() > 0) {
fieldsToValidate.put(field.getItemId(), ckfield);
}
}
}