diff --git a/myapp/templates/inc/editor.js b/myapp/templates/inc/editor.js index c6496e2..182c094 100644 --- a/myapp/templates/inc/editor.js +++ b/myapp/templates/inc/editor.js @@ -35,3 +35,11 @@ if (value != {{ param }}) { } {% endif %} {%- endmacro %} + +{% macro setValue(name, param, type="tinymce") -%} +{% if type=="tinymce" %} +tinymce.get("{{ name }}").setContent({{ param }}); +{% elif type=="ckeditor" %} +CKEDITOR.instances["{{ name }}"].setData({{ param }}); +{% endif %} +{%- endmacro %} diff --git a/myapp/templates/inc/filter.html b/myapp/templates/inc/filter.html new file mode 100644 index 0000000..e0bd2ad --- /dev/null +++ b/myapp/templates/inc/filter.html @@ -0,0 +1,15 @@ +