Package com.citytechinc.cq.component.annotations.widgets.rte

Examples of com.citytechinc.cq.component.annotations.widgets.rte.Edit


  private RtePlugin buildEditPlugin(RichTextEditor rteAnnotation) {

    if (rteAnnotation.edit().length > 0) {
      Edit[] editAnnotations = rteAnnotation.edit();
      Edit editAnnotation = editAnnotations[0];

      List<String> editFeatures = new ArrayList<String>();

      if (editAnnotation.cut()) {
        editFeatures.add("cut");
      }
      if (editAnnotation.copy()) {
        editFeatures.add("copy");
      }
      if (editAnnotation.pasteDefault()) {
        editFeatures.add("paste-default");
      }
      if (editAnnotation.pastePlaintext()) {
        editFeatures.add("paste-plaintext");
      }
      if (editAnnotation.pasteWordhtml()) {
        editFeatures.add("paste-wordhtml");
      }
      RtePluginParameters widgetParameters = new RtePluginParameters();
      widgetParameters.setFieldName("edit");
      widgetParameters.setFeatures(convertFeatures(editFeatures));
View Full Code Here


  private RtePlugin buildEditPlugin(RichTextEditor rteAnnotation) {

    if (rteAnnotation.edit().length > 0) {
      Edit[] editAnnotations = rteAnnotation.edit();
      Edit editAnnotation = editAnnotations[0];

      List<String> editFeatures = new ArrayList<String>();

      if (editAnnotation.cut()) {
        editFeatures.add("cut");
      }
      if (editAnnotation.copy()) {
        editFeatures.add("copy");
      }
      if (editAnnotation.pasteDefault()) {
        editFeatures.add("paste-default");
      }
      if (editAnnotation.pastePlaintext()) {
        editFeatures.add("paste-plaintext");
      }
      if (editAnnotation.pasteWordhtml()) {
        editFeatures.add("paste-wordhtml");
      }
      RtePluginParameters widgetParameters = new RtePluginParameters();
      widgetParameters.setFieldName("edit");
      widgetParameters.setFeatures(convertFeatures(editFeatures));
View Full Code Here

  private RtePlugin buildEditPlugin(RichTextEditor rteAnnotation) {

    if (rteAnnotation.edit().length > 0) {
      Edit[] editAnnotations = rteAnnotation.edit();
      Edit editAnnotation = editAnnotations[0];

      List<String> editFeatures = new ArrayList<String>();

      if (editAnnotation.cut()) {
        editFeatures.add("cut");
      }
      if (editAnnotation.copy()) {
        editFeatures.add("copy");
      }
      if (editAnnotation.pasteDefault()) {
        editFeatures.add("paste-default");
      }
      if (editAnnotation.pastePlaintext()) {
        editFeatures.add("paste-plaintext");
      }
      if (editAnnotation.pasteWordhtml()) {
        editFeatures.add("paste-wordhtml");
      }
      RtePluginParameters widgetParameters = new RtePluginParameters();
      widgetParameters.setFieldName("edit");
      widgetParameters.setFeatures(convertFeatures(editFeatures));
View Full Code Here

TOP

Related Classes of com.citytechinc.cq.component.annotations.widgets.rte.Edit

Copyright © 2018 www.massapicom. 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.