some very small fix for image alternative text and browse files manager
This commit is contained in:
parent
8c98645a69
commit
579bc3c245
|
@ -49,7 +49,7 @@ $(document).ready(function(){
|
||||||
})
|
})
|
||||||
insertBtn.bind(clickEvent,function(){
|
insertBtn.bind(clickEvent,function(){
|
||||||
var alt_text = $("#"+language+"_desc_"+$("input[type=checkbox]:checked").val()).val();
|
var alt_text = $("#"+language+"_desc_"+$("input[type=checkbox]:checked").val()).val();
|
||||||
alt_text = (alt_text ? alt_text : "This is alt text");
|
alt_text = (alt_text ? alt_text : "This is an image");
|
||||||
if(url){
|
if(url){
|
||||||
window.opener.CKEDITOR.tools.callFunction( funcNum, url, function() {
|
window.opener.CKEDITOR.tools.callFunction( funcNum, url, function() {
|
||||||
var element,
|
var element,
|
||||||
|
|
|
@ -26,7 +26,7 @@ CKEDITOR.editorConfig = function( config ) {
|
||||||
// config.filebrowserImageBrowseUrl = '/browser/browse.php?type=Images';
|
// config.filebrowserImageBrowseUrl = '/browser/browse.php?type=Images';
|
||||||
// config.filebrowserUploadUrl = '/uploader/upload.php';
|
// config.filebrowserUploadUrl = '/uploader/upload.php';
|
||||||
|
|
||||||
config.filebrowserBrowseUrl = "<%= Rails.application.routes.url_helpers.admin_assets_path %>";
|
config.filebrowserBrowseUrl = "<%= Rails.application.routes.url_helpers.admin_assets_path %>?module_app_id=<%= ModuleApp.first(conditions: {title: 'Asset'}).id.to_s %>";
|
||||||
config.filebrowserImageBrowseUrl = "<%= Rails.application.routes.url_helpers.admin_assets_path %>?type=images&module_app_id=<%= ModuleApp.first(conditions: {title: 'Asset'}).id.to_s %>";
|
config.filebrowserImageBrowseUrl = "<%= Rails.application.routes.url_helpers.admin_assets_path %>?type=images&module_app_id=<%= ModuleApp.first(conditions: {title: 'Asset'}).id.to_s %>";
|
||||||
// config.filebrowserUploadUrl = "<%= Rails.application.routes.url_helpers.file_upload_admin_assets_path %>";
|
// config.filebrowserUploadUrl = "<%= Rails.application.routes.url_helpers.file_upload_admin_assets_path %>";
|
||||||
|
|
||||||
|
|
Reference in New Issue