Skip to content

Commit

Permalink
Bump Version 5.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Kim authored and Peter Kim committed Feb 23, 2022
1 parent 28a4d21 commit c688a51
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@

## NEXT

## Ckeditor 5.1.5 (2-23-2022)

* Initialize data in AssetResponse

## Ckeditor 5.1.4 (2-23-2022)

* Re-add ContentTypeDetector
Expand Down
18 changes: 10 additions & 8 deletions lib/ckeditor/asset_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,14 @@ def initialize(asset, request)
@asset = asset
@request = request
@params = request.params
end

def data
@data ||= read_data
@asset.data = Ckeditor::Http.normalize_param(file, @request)
end

# def data
# @data ||= read_data
# end

def json?
params[:responseType] == JSON_TYPE
end
Expand Down Expand Up @@ -109,11 +111,11 @@ def extract_mode
end
end

def read_data
data = Ckeditor::Http.normalize_param(file, request)
return if data.size.zero? || data.original_filename.blank?
# def read_data
# data = Ckeditor::Http.normalize_param(file, request)
# return if data.size.zero? || data.original_filename.blank?

data
end
# data
# end
end
end
2 changes: 1 addition & 1 deletion lib/ckeditor/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

module Ckeditor
module Version
GEM = '5.1.4'
GEM = '5.1.5'
EDITOR = '4.17.0'
end
end

0 comments on commit c688a51

Please sign in to comment.