3 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
5 * This library is free software; you can redistribute it and/or modify it under
6 * the terms of the GNU Lesser General Public License as published by the Free
7 * Software Foundation; either version 2.1 of the License, or (at your option)
10 * This library is distributed in the hope that it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
17 <%@ include file="/html/taglib/init.jsp" %>
20 String cssClass = GetterUtil.getString((String)request.getAttribute("liferay-ui:input-editor:cssClass"));
21 String initMethod = (String)request.getAttribute("liferay-ui:input-editor:initMethod");
22 String name = namespace + GetterUtil.getString((String)request.getAttribute("liferay-ui:input-editor:name"));
25 <div class="lfr-textarea message-edit <%= cssClass %>">
26 <textarea id="<%= name %>" name="<%= name %>"></textarea>
29 <aui:script use="liferay-bbcode-editor">
30 window['<%= name %>'] = new Liferay.Editor.bbCode(
32 textarea: '#<%= name %>'
36 <c:if test="<%= Validator.isNotNull(initMethod) %>">
37 window['<%= name %>'].setHTML(<%= HtmlUtil.escape(namespace + initMethod) %>());