本模块帮助在Pyramid应用中集成百度Ueditor HTML编辑器.
说明:采用 Ueditor 1.4.3 封装了一层接口,实现图片、涂鸦、附件、视频、截图上传 在线文件待续
1、安装方法
- 方法一:将github整个源码包下载回家,在命令行运行:
python setup.py install
- 方法二:使用pip工具在命令行运行(推荐):
pip install PyramidUeditor
2、配置urls
from pyramid.static import static_view
from pyramid_ueditor.settings import UEDITOR_STATIC_ROOT
config.include(‘pyramid_ueditor’)
config.add_static_view(‘uestatic’, path=UEDITOR_STATIC_ROOT, cache_max_age=3600)
3、修改pyramid_ueditor.pyramid_ueditor.settings.py
UEDITOR_UPLOAD_ROOT 为上传路径。可进行修改
4、自带的访问方式
/ueditor/
Metadata
Release files for pyramidueditor 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyramidueditor-1.0.1.tar.gz | 3.3 MB | Without provenance | Details for pyramidueditor-1.0.1.tar.gz |
Release files / pyramidueditor-1.0.1.tar.gz
| Download URL | pyramidueditor-1.0.1.tar.gz |
|---|---|
| Size | 3.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5c3de505feb8e3d18362f5083afb0d1c69798f84d62d54083e3e9c02bd806fa8
|
|
BLAKE2b-256 checksum How to use checksums |
f05818afd07e92237d806f903699366e81a206418ac610f227861e536f219430
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pyramidueditor 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.