Fix the issue when choose file strip render mode in document library, the preview of md file will fail
This commit is contained in:
parent
86eecbc3b9
commit
e1edfcbe4c
@ -30,7 +30,7 @@ configurations {
|
||||
all*.exclude group: 'maven-plugins'
|
||||
}
|
||||
|
||||
version = "1.1.0"
|
||||
version = "1.1.1"
|
||||
|
||||
ext {
|
||||
alfresco = [:]
|
||||
|
@ -20,6 +20,7 @@
|
||||
border-right: 1px solid #ccc;
|
||||
padding: 10px;
|
||||
margin-left: 3px;
|
||||
text-align: left;
|
||||
|
||||
}
|
||||
|
||||
@ -300,6 +301,8 @@
|
||||
|
||||
.markdown-body li {
|
||||
list-style: inside !important;
|
||||
float: none;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.markdown-body ul,
|
||||
|
@ -13,6 +13,14 @@
|
||||
<css>/res/components/preview/MarkDown.css</css>
|
||||
</dependencies>
|
||||
</customization>
|
||||
<customization>
|
||||
<targetPackageRoot>org.alfresco.components.documentlibrary</targetPackageRoot>
|
||||
<sourcePackageRoot>com.parashift.markdown.preview-config</sourcePackageRoot>
|
||||
<dependencies>
|
||||
<js>/res/components/preview/MarkDown.js</js>
|
||||
<css>/res/components/preview/MarkDown.css</css>
|
||||
</dependencies>
|
||||
</customization>
|
||||
</customizations>
|
||||
</module>
|
||||
</modules>
|
||||
|
@ -7,7 +7,7 @@ if (model.widgets)
|
||||
{
|
||||
|
||||
//We need to know some extra bits about the node, such as the repoPath to display images
|
||||
pObj = eval('(' + remote.call("/slingshot/doclib2/node/" + url.args.nodeRef.replace(":/","")) + ')');
|
||||
pObj = eval('(' + remote.call("/slingshot/doclib2/node/" + model.nodeRef.replace(":/","")) + ')');
|
||||
|
||||
//We check to see if the mime type is markdown, and if so, overwrite the conditions object.
|
||||
if(pObj.item && pObj.item.node && pObj.item.node.mimetype == "text/x-markdown") {
|
||||
|
Loading…
x
Reference in New Issue
Block a user