helloflask / flask-ckeditor

CKEditor integration for Flask, including image upload, code syntax highlight, and more.
https://flask-ckeditor.readthedocs.io
MIT License
202 stars 68 forks source link

Custom_url Only Loads part of resource ? #7

Closed LRENZ closed 6 years ago

LRENZ commented 6 years ago

Hi, I download my Customs CKEditor build resource ,and Use "Custom_url" to import , but only "/static/ckeditor/ckeditor.js" "http://127.0.0.1:5000/static/ckeditor/config.js?t=I3I8" can be rendered in the index.html.

Here is my Template: <!DOCTYPE html>

Flask-CKEditor Demo {{ ckeditor.load(custom_url=url_for('static', filename='ckeditor/ckeditor.js')) }} body: {{ ckeditor.config(name='body', custom_config="uiColor: '#9AB8F3'") }}
greyli commented 6 years ago

only "/static/ckeditor/ckeditor.js" "http://127.0.0.1:5000/static/ckeditor/config.js?t=I3I8" can be rendered in the index.html.

Why are you need to render this files in index.html? The template code seems correct.

LRENZ commented 6 years ago

Sorry to reply so late, I fix that issue by adding a new files, It looks like:

Flask-CKEditor Demo {{ ckeditor.load(custom_url=url_for('static', filename='lib/ckeditor/ckeditor.js')) }} I don't Know why,but it works. Thank you Very much for you patient help. And I notice that the new version has released and I am trying to integrate the new flask-ckeditor version(image upload) with flask-admin. Anyway, Thanks for your awesome work
greyli commented 6 years ago

You are welcome :)