{% extends "base.html" %} {% block content %}
The edit tools comprise the UI elements for the editors as well as code
that must be injected into the edited page. The code in
djaodjin-editor.js
and less.js
) can be injected
into the edited page one of two ways:
testsite/urls/content.py: url(r'^$', TemplateView.as_view(template_name='index.html')), testsite/urls/__init__.py: url(r'^content/', include('testsite.urls.content')), url(r'^(?P<page>\S+)?', EditView.as_view(), name='pages_edit'),
2 The list of templates used to render the page could still be available if we use a minimal server-side decorator that adds the list into the edited page.
3 When we tried to set iframe content through src="data:text/html..."
,
the stylesheet links defined in the iframe content are not loaded.
When we tried to insert content in the iframe through Javascript,
the page loads forever (this might be a side effect of how we inject the tools
into the iframe). I haven't tried to use <iframe srcdoc="..."
yet.