Azuma Daisuke

Results 15 comments of Azuma Daisuke

/* ********************************* Usage in qor-example: product.Meta(&admin.Meta{Name: "Description", Config: &admin.RichEditorConfig{AssetManager: assetManager, Plugins: []admin.RedactorPlugin{ {Name: "medialibrary", Source: "/admin/assets/javascripts/qor_redactor_medialibrary.js"}, {Name: "loadstyle", Source: "/admin/assets/javascripts/qor_redactor_loadstyle.js"}, }, Settings: map[string]interface{}{ "medialibraryUrl": "/admin/product_images", "loadStyleNamespace": "yourNamespace", "loadStyleLink": "http://your_stylesheets_file_path", }...

You need to have a Media Library first. https://github.com/qor/media/blob/master/media_library/media_library.go

"medialibraryUrl": "/admin/product_images"

config medialibraryUrl with your own medialibraryUrl, that's why i paste the Usage Settings: map[string]interface{}{ "medialibraryUrl": "/admin/product_images", "loadStyleNamespace": "yourNamespace", "loadStyleLink": "http://your_stylesheets_file_path", }

Yes, you can richEditorConfig := &admin.RichEditorConfig{ Plugins: []admin.RedactorPlugin{ {Name: "medialibrary1", Source: "/admin/assets/javascripts/qor_redactor_medialibrary.js"}, {Name: "medialibrary2", Source: "XXXXXXXXXXXX"}, }, Settings: map[string]interface{}{ "medialibraryUrl": "/admin/media_library/", "medialibraryUrl2": "XXXXXXXX", }, }

Have no idea, it seems https://github.com/qor/l10n problem

seem you don't use latest qor

https://github.com/qor/admin/blob/master/func_map.go#L646 The error lines don't match the latest master

your description is so vague, so can't give constructive advice.

可以写自己的js实现 https://doc.getqor.com/admin/theming_and_customization.html