Examples of CKEditorField


Examples of org.jahia.ajax.gwt.client.widget.form.CKEditorField

                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);
                              }
                            }
                        }
View Full Code Here

Examples of org.jahia.ajax.gwt.client.widget.form.CKEditorField

            public void onSuccess(Map<String, WCAGValidationResult> result) {
                      boolean wcagOK = true;
                      for (Map.Entry<String, WCAGValidationResult> wcagEntry : result.entrySet()) {
                          if (!wcagEntry.getValue().isEmpty()) {
                            wcagOK = false;
                            CKEditorField fld = fieldsForValidation.get(wcagEntry.getKey());
                            if (fld != null) {
                              fld.setWcagValidationResult(wcagEntry.getValue());
                            }
                          }
                        }
                      if (wcagOK) {
                        // WCAG checks are OK
View Full Code Here

Examples of org.jahia.ajax.gwt.client.widget.form.CKEditorField

        return $wnd.CKEDITOR.instances[this.@org.jahia.ajax.gwt.client.widget.ckeditor.CKEditor::instanceId].checkDirty();
      }-*/;


    public void checkWCAGCompliance(String editorId) {
      CKEditorField fld = CKEditorField.getInstance(editorId);
      if (fld != null) {
        fld.checkWCAGCompliance();
      }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.