Compile JS

This commit is contained in:
Luke Towers 2022-08-23 20:45:28 -06:00
parent f758ca5a37
commit 461549e733
2 changed files with 4 additions and 2 deletions

View File

@ -145,7 +145,8 @@ this.$textarea.on('froalaEditor.paste.beforeCleanup',this.proxy(this.beforeClean
this.$form.on('oc.beforeRequest',this.proxy(this.onFormBeforeRequest))
this.$textarea.froalaEditor(froalaOptions)
this.editor=this.$textarea.data('froala.editor')
if(this.options.readOnly){this.editor.edit.off()}this.$el.on('keydown','.fr-view figure',this.proxy(this.onFigureKeydown))}
if(this.options.readOnly){this.editor.edit.off()}this.$el.on('keydown','.fr-view figure',this.proxy(this.onFigureKeydown))
snowboard.globalEvent("richEditorInit",this);}
RichEditor.prototype.dispose=function(){this.unregisterHandlers()
this.$textarea.froalaEditor('destroy')
this.$el.removeData('oc.richEditor')

View File

@ -215,7 +215,8 @@ this.dropzone.on('totaluploadprogress',this.proxy(this.uploadUpdateTotalProgress
this.dropzone.on('queuecomplete',this.proxy(this.uploadQueueComplete))
this.dropzone.on('sending',this.proxy(this.uploadSending))
this.dropzone.on('error',this.proxy(this.uploadError))
this.dropzone.on('success',this.proxy(this.uploadSuccess))}
this.dropzone.on('success',this.proxy(this.uploadSuccess))
snowboard.globalEvent("mediaManagerInitUploader",this);}
MediaManager.prototype.destroyUploader=function(){if(!this.dropzone)return
this.dropzone.destroy()
this.dropzone=null}