flask-ueditor-demo icon indicating copy to clipboard operation
flask-ueditor-demo copied to clipboard

Flask集成百度UEditor编辑器1.4.3版本示例。实现了图片上传、附件上传、视频上传、涂鸦、远程抓图等功能。

Results 1 flask-ueditor-demo issues
Sort by recently updated
recently updated
newest added

我需要实现上传文件之后,调用回调函数,文件的地址作为回调函数的参数 我发现upload函数里有这样的代码,如下,但是我不知道应该怎么用?求教 ``` if 'callback' in request.args: callback = request.args.get('callback') if re.match(r'^[\w_]+$', callback): result = '%s(%s)' % (callback, result) mimetype = 'application/javascript' else: result = json.dumps({'state': 'callback参数不合法'}) ```