Obsolete Pages{{Obsolete}}
The official documentation is at: http://docs.alfresco.com
In line editors for different document types help make the alfresco web client more useful. Alfresco ships with a inline HTML editor. What it means to be 'inline' is as follows. You can edit the document directly within (or in line with) the alfresco web client.
Another example of an inline editor is and XML editor which presents the user with a UI, hiding the complexity and technical aspects of XML.
This guide is a tutorial for adding editors to the web client. As an example we will add the editLiveForXml editor to the Alfresco webclient.
editLiveForXml is a commercial applet. The applet can be downloaded at http://www.ephox.com/product/editliveforxml/default.asp
This tutorial is in no way connected with Ephox or is it suggesting that you should or should not use the Ephox EditLive for XML product. The editor is available for download, largely comprehensive, and thus is suitable as an example.
A beta of an integration of EditLive (XHTML version) that is supported by Ephox can now be found at http://liveworks.ephox.com/integrations/alfresco/
Step one is the easiest step. We need to build the view portion of the application. In our case the view is an applet and so our view is just a wrapper around it.
Create a jsp under source\web\jsp\dialog\
Name the file edit-wellformed-xml-inline.jsp
paste the following in to the file:
<r:page titleId='title_edit_html_inline'>
<f:view>
<f:loadBundle basename='alfresco.messages.webclient' var='msg'/>
<h:form acceptCharset='UTF-8' id='edit-file'>
<tr>
<td></td>
</td>
<td></td>
</tr>
<tr valign=top>
</td>
<td height='100%'>
</td> <td bgcolor='#EEEEEE'>
</td> </td> |
<a:panel id='checkout-panel' rendered='#{CheckinCheckoutBean.document.properties.workingCopy == false}'>
</a:panel> |
|