mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
. Rhino JavaScript integration checkpoint:
- Added a new action to the repository for executing JavaScript files - Added script action UI to rule framework, means we can execute a JavaScript file as part of a rule - Lucene search and Saved Search functionality added to default data-model for scripts - Added Scripts folder to Data Dictionary (created during bootstrap) - Created patch to add the Scripts folder to existing schemas - Added ScriptService to ServiceRegistry bean git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2740 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -839,11 +839,12 @@ public class DocumentDetailsBean extends BaseDetailsBean
|
||||
}
|
||||
if (contentType != null)
|
||||
{
|
||||
// set the property to true by default if the filetype is text/HTML content
|
||||
// set the property to true by default if the filetype is a known content type
|
||||
if (MimetypeMap.MIMETYPE_HTML.equals(contentType) ||
|
||||
MimetypeMap.MIMETYPE_TEXT_PLAIN.equals(contentType) ||
|
||||
MimetypeMap.MIMETYPE_XML.equals(contentType) ||
|
||||
MimetypeMap.MIMETYPE_TEXT_CSS.equals(contentType))
|
||||
MimetypeMap.MIMETYPE_TEXT_CSS.equals(contentType) ||
|
||||
MimetypeMap.MIMETYPE_JAVASCRIPT.equals(contentType))
|
||||
{
|
||||
props.put(ContentModel.PROP_EDITINLINE, true);
|
||||
}
|
||||
|
Reference in New Issue
Block a user