Index: MoinMoin/templates/modify_text_html.html |
=================================================================== |
--- a/MoinMoin/templates/modify_text_html.html |
+++ b/MoinMoin/templates/modify_text_html.html |
@@ -1,13 +1,10 @@ |
-{% extends "modify_binary.html" %} |
+{% from 'modify_text.html' import data_editor as base_editor %} |
-{% block head %} |
-{{ super() }} |
+{% macro extra_head() %} |
<script type="text/javascript" src="{{ url_for('serve.files', name='ckeditor', filename='ckeditor.js') }}"></script> |
<link rel="stylesheet" href="{{ url_for('serve.files', name='ckeditor', filename='contents.css') }}" /> |
-{% endblock %} |
+{% endmacro %} |
-{% block data_editor %} |
-<p> |
-{{ gen.textarea(form['data_text'], class='ckeditor', lang=lang, dir=direction, rows=rows_data, cols=cols) }} |
-</p> |
-{% endblock %} |
+{% macro data_editor(form) %} |
+{{ gen.textarea(form['data_text'], class='ckeditor', lang=lang, dir=direction, rows=form.rows|string, cols=form.cols|string) }} |
+{% endmacro %} |