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'
|
all*.exclude group: 'maven-plugins'
|
||||||
}
|
}
|
||||||
|
|
||||||
version = "1.1.0"
|
version = "1.1.1"
|
||||||
|
|
||||||
ext {
|
ext {
|
||||||
alfresco = [:]
|
alfresco = [:]
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
border-right: 1px solid #ccc;
|
border-right: 1px solid #ccc;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
margin-left: 3px;
|
margin-left: 3px;
|
||||||
|
text-align: left;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -300,6 +301,8 @@
|
|||||||
|
|
||||||
.markdown-body li {
|
.markdown-body li {
|
||||||
list-style: inside !important;
|
list-style: inside !important;
|
||||||
|
float: none;
|
||||||
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
.markdown-body ul,
|
.markdown-body ul,
|
||||||
|
@ -13,6 +13,14 @@
|
|||||||
<css>/res/components/preview/MarkDown.css</css>
|
<css>/res/components/preview/MarkDown.css</css>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</customization>
|
</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>
|
</customizations>
|
||||||
</module>
|
</module>
|
||||||
</modules>
|
</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
|
//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.
|
//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") {
|
if(pObj.item && pObj.item.node && pObj.item.node.mimetype == "text/x-markdown") {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user