app/assets/javascripts/formagic/inputs/redactor_character.coffee in formagic-0.3.4 vs app/assets/javascripts/formagic/inputs/redactor_character.coffee in formagic-0.3.7
- old
+ new
@@ -1,27 +1,21 @@
# -----------------------------------------------------------------------------
# Author: Alexander Kravets <alex@slatestudio.com>,
# Slate Studio (http://www.slatestudio.com)
-#
-# Coding Guide:
-# https://github.com/thoughtbot/guides/tree/master/style/coffeescript
# -----------------------------------------------------------------------------
-
-# -----------------------------------------------------------------------------
# REDACTOR CUSTOM VERSION
#= require ./redactor_images
# -----------------------------------------------------------------------------
# change default fast speed from 200 to 10 as it's used by redactor modals
# while closing
console.log ':: [redactor-character] change $.fx.speeds.fast from 200 to 10 ::'
$.fx.speeds.fast = 10
@redactorCharacter =
+ # PRIVATE ===================================================================
- # PRIVATE ===============================================
-
# TODO: fixed toolbar disabled on mobile
_redactor_options: ->
@_trigger_change = true
config = @_get_default_config()
@@ -39,11 +33,10 @@
config.toolbarFixed = false
# config.toolbarFixedTopOffset = 40
return config
-
_get_default_config: () ->
focus: false
imageFloatMargin: '20px'
buttonSource: true
pastePlainText: true
@@ -68,10 +61,5 @@
@$input.trigger('change')
@_trigger_change = true
initCallback: ->
new RedactorImages(this)
-
-
-
-
-