We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When loading documents pdf error: Uncaught TypeError: Cannot read property '0' of null
my config: $(function(){ var csrf_token = $('meta[name=csrf-token]').attr('content'); var csrf_param = $('meta[name=csrf-param]').attr('content'); var params; if (csrf_param !== undefined && csrf_token !== undefined) { params = csrf_param + "=" + encodeURIComponent(csrf_token); } $('.redactor').redactor( { "imageUpload":"/redactor_rails/pictures?" + params, "fileUpload":"/redactor_rails/documents?" + params, "imageGetJson":"/redactor_rails/pictures", "path":"/assets/redactor-rails", "css":"style.css"} ); });
my uploadres: class RedactorRailsDocumentUploader < CarrierWave::Uploader::Base include RedactorRails::Backend::CarrierWave
storage :file
def store_dir "system/redactor_assets/documents/#{model.id}" end
def extension_white_list RedactorRails.document_file_types end end
Help.
The text was updated successfully, but these errors were encountered:
same here :(
Sorry, something went wrong.
No branches or pull requests
When loading documents pdf error:
Uncaught TypeError: Cannot read property '0' of null
my config:
$(function(){
var csrf_token = $('meta[name=csrf-token]').attr('content');
var csrf_param = $('meta[name=csrf-param]').attr('content');
var params;
if (csrf_param !== undefined && csrf_token !== undefined) {
params = csrf_param + "=" + encodeURIComponent(csrf_token);
}
$('.redactor').redactor(
{ "imageUpload":"/redactor_rails/pictures?" + params,
"fileUpload":"/redactor_rails/documents?" + params,
"imageGetJson":"/redactor_rails/pictures",
"path":"/assets/redactor-rails",
"css":"style.css"}
);
});
my uploadres:
class RedactorRailsDocumentUploader < CarrierWave::Uploader::Base
include RedactorRails::Backend::CarrierWave
storage :fog
storage :file
def store_dir
"system/redactor_assets/documents/#{model.id}"
end
def extension_white_list
RedactorRails.document_file_types
end
end
Help.
The text was updated successfully, but these errors were encountered: