-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtiny_mce.html.twig
More file actions
35 lines (30 loc) · 958 Bytes
/
Copy pathtiny_mce.html.twig
File metadata and controls
35 lines (30 loc) · 958 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<script>window.tinymce || document.write('<script src="{{ asset('js/tinymce.min.js', 'contao-components/tinymce4') }}">\x3C/script>')</script>
<script>
window.tinymce && tinymce.init({
selector: '#{{ selector }}',
license_key: 'gpl',
language: '{{ language }}',
element_format: 'html',
document_base_url: '{{ base }}',
branding: false,
promotion: false,
setup: function(editor) {
editor.getElement().removeAttribute('required');
},
{% block plugins %}
plugins: 'link, lists',
{% endblock %}
{% block menubar %}
menubar: '',
{% endblock %}
{% block toolbar %}
toolbar: 'bold italic | bullist numlist',
{% endblock %}
{% block custom %}
statusbar: false,
min_height: 120,
text_patterns: false,
paste_as_text: true,
{% endblock %}
});
</script>