Skip to content

Commit

Permalink
LPS-30353
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorge Ferrer authored and ipeychev committed Nov 21, 2012
1 parent 68db5ba commit 391937b
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion portal-web/docroot/html/portlet/blogs/view_entry_content.jsp
Expand Up @@ -172,7 +172,14 @@ AssetEntry assetEntry = (AssetEntry)request.getAttribute("view_entry_content.jsp
<aui:a href="<%= viewEntryURL %>"><liferay-ui:message arguments='<%= new Object[] {"aui-helper-hidden-accessible", entry.getTitle()} %>' key="read-more-x-about-x" /> &raquo;</aui:a>
</c:when>
<c:when test='<%= pageDisplayStyle.equals(RSSUtil.DISPLAY_STYLE_FULL_CONTENT) || strutsAction.equals("/blogs/view_entry") %>'>
<%= entry.getContent() %>

<%
String blogEntryContentId = "blog-entry-content" + entry.getEntryId();
%>

<div id="<%= blogEntryContentId %>" contenteditable="true" spellcheck="false">
<%= entry.getContent() %>
</div>

<liferay-ui:custom-attributes-available className="<%= BlogsEntry.class.getName() %>">
<liferay-ui:custom-attribute-list
Expand All @@ -182,7 +189,19 @@ AssetEntry assetEntry = (AssetEntry)request.getAttribute("view_entry_content.jsp
label="<%= true %>"
/>
</liferay-ui:custom-attributes-available>

<portlet:actionURL var="updateEntryContent">
<portlet:param name="struts_action" value="/blogs/update_entry_content" />
<portlet:param name="entryId" value="<%= entry.getEntryId() %>" />
</portlet:actionURL>

<liferay-ui:input-editor
editorImpl="ckeditor"
inlineEdit="<%= true %>"
inlineEditSaveURL="<%= updateEntryContent %>"
name="<%= blogEntryContentId %>"
/>

</c:when>
<c:when test='<%= pageDisplayStyle.equals(RSSUtil.DISPLAY_STYLE_TITLE) && !strutsAction.equals("/blogs/view_entry") %>'>
<aui:a href="<%= viewEntryURL %>"><liferay-ui:message arguments='<%= new Object[] {"aui-helper-hidden-accessible", entry.getTitle()} %>' key="read-more-x-about-x" /> &raquo;</aui:a>
Expand Down

0 comments on commit 391937b

Please sign in to comment.