Disabling drag and drop of attachments on non existing wiki pages
parent
f19cf18537
commit
78782fd51f
|
@ -656,7 +656,7 @@ EditableWysiwyg = (attachmentsService, attachmentsFullService) ->
|
||||||
link = ($scope, $el, $attrs, $model) ->
|
link = ($scope, $el, $attrs, $model) ->
|
||||||
|
|
||||||
isInEditMode = ->
|
isInEditMode = ->
|
||||||
return $el.find('textarea').is(':visible')
|
return $el.find('textarea').is(':visible') and $model.$modelValue.id
|
||||||
|
|
||||||
|
|
||||||
uploadFile = (file, type) ->
|
uploadFile = (file, type) ->
|
||||||
|
|
|
@ -228,6 +228,7 @@
|
||||||
"PREVIEW_BUTTON": "Preview",
|
"PREVIEW_BUTTON": "Preview",
|
||||||
"EDIT_BUTTON": "Edit",
|
"EDIT_BUTTON": "Edit",
|
||||||
"ATTACH_FILE_HELP": "Attach files by dragging & dropping on the textarea above.",
|
"ATTACH_FILE_HELP": "Attach files by dragging & dropping on the textarea above.",
|
||||||
|
"ATTACH_FILE_HELP_SAVE_FIRST": "Save first before if you want to attach files by dragging & dropping on the textarea above.",
|
||||||
"MARKDOWN_HELP": "Markdown syntax help"
|
"MARKDOWN_HELP": "Markdown syntax help"
|
||||||
},
|
},
|
||||||
"PERMISIONS_CATEGORIES": {
|
"PERMISIONS_CATEGORIES": {
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
mixin wysihelp
|
mixin wysihelp
|
||||||
div.wysiwyg-help
|
div.wysiwyg-help
|
||||||
span.drag-drop-help(translate="COMMON.WYSIWYG.ATTACH_FILE_HELP")
|
span.drag-drop-help(ng-if="wiki.id", translate="COMMON.WYSIWYG.ATTACH_FILE_HELP")
|
||||||
|
span.drag-drop-help(ng-if="!wiki.id", translate="COMMON.WYSIWYG.ATTACH_FILE_HELP_SAVE_FIRST")
|
||||||
a.help-markdown(
|
a.help-markdown(
|
||||||
href="https://tree.taiga.io/support/misc/taiga-markdown-syntax/"
|
href="https://tree.taiga.io/support/misc/taiga-markdown-syntax/"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
|
|
Loading…
Reference in New Issue