Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/files_texteditor.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2018-02-09 11:51:23 +0300
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2018-02-09 12:52:31 +0300
commit6f351e10e0322cfe09ff313b38d6ee7ec524b3b0 (patch)
tree9a3a4d58671d40548bd754b36a94547fc3688a38 /js
parent70e94722ec1815ab990891a3162d90a39e735d88 (diff)
Use CSS rules for formatted text only with formatted text previews
This will be needed in a following commit when plain text previews generated by this app are introduced. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'js')
-rw-r--r--js/public-share.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/public-share.js b/js/public-share.js
index 7210ded..c1302db 100644
--- a/js/public-share.js
+++ b/js/public-share.js
@@ -45,7 +45,7 @@ $(document).ready(function(){
$.get(downloadUrl).success(function(content) {
previewElement
.removeClass('icon-loading')
- .addClass('preview')
+ .addClass('preview formatted-text')
.html(DOMPurify.sanitize(
marked(content, {
renderer: renderer,