Skip to content

Commit d9c9ef6

Browse files
authored
Merge pull request #314 from pratikb64/hide-upload-file-library
fix: remove library from file uploader
2 parents d15631f + 3e1a536 commit d9c9ef6

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

wiki/public/js/editor.js

+2
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,8 @@ function insertMarkdown(type) {
201201
docname: this.docname,
202202
frm: this.frm,
203203
folder: "Home/Attachments",
204+
disable_file_browser: true,
205+
allow_toggle_private: false,
204206
allow_multiple: false,
205207
restrictions: {
206208
allowed_file_types: ["image/*"],

wiki/public/scss/wiki.scss

+4
Original file line numberDiff line numberDiff line change
@@ -1245,6 +1245,10 @@ p {
12451245
border-top: unset;
12461246
justify-content: end;
12471247

1248+
.btn:first-child {
1249+
display: none;
1250+
}
1251+
12481252
.btn {
12491253
width: 100%;
12501254
}

0 commit comments

Comments
 (0)