I am trying to learn more about Flask by building a CMS. I am using flask-admin to add the posts, images etc.
I have managed to override textarea with ckeditor. But I want to pass the paths of the images in the static folder to ckeditor image plugin.
I can't figure out how to pass parameters to my edit.html template.
Here's the code:
class TestAdmin(ModelView):
form_overrides = dict(text=forms.CustomTextAreaField)
create_template = 'edit.html'
edit_template = 'edit.html'
From the documentation of flask-admin I have found that _template_args
can used to pass parameters to the template. But I can't figure out how.
What is the exact way to do that?