flask-aceeditor
Because of this library (flask-aceeditor), it can be easily called when using the ace editor!
Install
$ pip install flask-aceeditor
use
from flask_aceeditor import *
...
aceeditor = AceEditor(app)
Load js file
...
{{ ace.load() }}<!-- be sure to precede the code using the ace editor! ! ! -->
...
Create editor (with color change button)
...
{{ ace.create(name="code", code="print('hello')") }}
<!-- name default is "code" code is code, default is "print('Hello World!')" -->
Note: When submitting the form, the field is the parameter name you passed in when you created it
因为这个库(flask-aceeditor),所以在使用ace编辑器能很方便地调用了!
安装
$ pip install flask-aceeditor
使用
from flask_aceeditor import *
...
aceeditor = AceEditor(app)
加载js文件
...
{{ ace.load() }}<!-- 一定要在使用ace编辑器的代码前面!!! -->
...
创建编辑器(有颜色变换按钮)
...
{{ ace.create(name="code", code="print('hello')") }}
<!-- name默认是"code" code是代码,默认是"print('Hello World!')" -->
注:提交表单时,字段是你当时创建时传入的参数name
Metadata
Release files for Flask-AceEditor 1.0.7
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 | |
|---|---|---|---|---|
| Flask-AceEditor-1.0.7.tar.gz | 2.0 MB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| Flask_AceEditor-1.0.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.1 MB
Release files / Flask-AceEditor-1.0.7.tar.gz
| Download URL | Flask-AceEditor-1.0.7.tar.gz |
|---|---|
| Size | 2.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7a81d2bde8e11e97dd5f75b1949438b260567189321283b434bcb11ed3d2f0e0
|
|
BLAKE2b-256 checksum How to use checksums |
6f84b3630c22a9c4ddccdeddde41c947a15485725e2bf130cce74b1ec9444ffa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.7.4
|
Release files / Flask_AceEditor-1.0.7-py3-none-any.whl
| Download URL | Flask_AceEditor-1.0.7-py3-none-any.whl |
|---|---|
| Size | 2.1 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
16738c67d796f8ac014c9db29037059fc95c82198b55bc8acd11bf22b44c464f
|
|
BLAKE2b-256 checksum How to use checksums |
4b83e2aaff94623e4cbf1d9c20bc3d858908e9a244e8d02e8f8bd8d777e79559
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.7.4
|
Security for Flask-AceEditor 1.0.7
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.