Examples of WYSIWYGTemplate


Examples of com.liferay.faces.portal.component.inputrichtext.internal.WYSIWYGTemplate

    // Encode the closing </textarea> element.
    responseWriter.endElement("textarea");

    // Encode the script that contains functions with names specific to this component, so that they can be
    // invoked directly by the JavaScript generated by the JSP tag.
    WYSIWYGTemplate wysiwygTemplate = getWYSIWYGTemplate(facesContext);
    String formattedTemplate = wysiwygTemplate.format(facesContext, inputRichText);
    responseWriter.startElement(StringPool.SCRIPT, uiComponent);
    responseWriter.writeAttribute(StringPool.TYPE, ContentTypes.TEXT_JAVASCRIPT, null);
    responseWriter.write(formattedTemplate);
    responseWriter.endElement(StringPool.SCRIPT);
View Full Code Here

Examples of com.liferay.faces.portal.component.inputrichtext.internal.WYSIWYGTemplate

    try {
      FacesContext startupFacesContext = FacesContext.getCurrentInstance();
      ExternalContext externalContext = startupFacesContext.getExternalContext();
      Map<String, Object> applicationMap = externalContext.getApplicationMap();
      boolean minified = startupFacesContext.isProjectStage(ProjectStage.Production);
      applicationMap.put(WYSIWYGTemplate.class.getName(), new WYSIWYGTemplate(minified));
    }
    catch (Exception e) {
      logger.error(e);
    }
  }
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.