Package com.liferay.faces.portal.component.inputrichtext.internal

Examples of com.liferay.faces.portal.component.inputrichtext.internal.WYSIWYGTemplate.format()


    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

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.