Skip to main content

A Pyramid application for Baidu Ueditor.

Project description

本模块帮助在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/

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyramidueditor-1.0.1.tar.gz (3.3 MB view details)

Uploaded Source

File details

Details for the file pyramidueditor-1.0.1.tar.gz.

File metadata

File hashes

Hashes for pyramidueditor-1.0.1.tar.gz
Algorithm Hash digest
SHA256 5c3de505feb8e3d18362f5083afb0d1c69798f84d62d54083e3e9c02bd806fa8
MD5 e39835d6aa28f05e5193ef630089d884
BLAKE2b-256 f05818afd07e92237d806f903699366e81a206418ac610f227861e536f219430

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page