Setting tinymce
This commit is contained in:
@@ -72,14 +72,14 @@
|
|||||||
{form_field form=$form field='chapo'}
|
{form_field form=$form field='chapo'}
|
||||||
<div class="form-group {if $error}has-error{/if}">
|
<div class="form-group {if $error}has-error{/if}">
|
||||||
<label for="{$label_attr.for}" class="control-label">{intl l="{$label}"} : </label>
|
<label for="{$label_attr.for}" class="control-label">{intl l="{$label}"} : </label>
|
||||||
<input type="text" id="{$label_attr.for}" name="{$name}" class="form-control" value="{$CHAPO}" title="{intl l="{$label}"}" placeholder="{intl l='Chapo'}">
|
<textarea id="{$label_attr.for}" name="{$name}" class="form-control" title="{intl l="{$label}"}" placeholder="{intl l='Chapo'}">{$CHAPO}</textarea>
|
||||||
</div>
|
</div>
|
||||||
{/form_field}
|
{/form_field}
|
||||||
|
|
||||||
{form_field form=$form field='postscriptum'}
|
{form_field form=$form field='postscriptum'}
|
||||||
<div class="form-group {if $error}has-error{/if}">
|
<div class="form-group {if $error}has-error{/if}">
|
||||||
<label for="{$label_attr.for}" class="control-label">{intl l="{$label}"} : </label>
|
<label for="{$label_attr.for}" class="control-label">{intl l="{$label}"} : </label>
|
||||||
<input type="text" id="{$label_attr.for}" name="{$name}" class="form-control" value="{$POSTSCRIPTUM}" title="{intl l="{$label}"}" placeholder="{intl l='Post Scriptum'}">
|
<textarea id="{$label_attr.for}" name="{$name}" class="form-control" title="{intl l="{$label}"}" placeholder="{intl l='Post Scriptum'}">{$POSTSCRIPTUM}</textarea>
|
||||||
</div>
|
</div>
|
||||||
{/form_field}
|
{/form_field}
|
||||||
</div>
|
</div>
|
||||||
@@ -125,4 +125,25 @@
|
|||||||
{javascripts file='assets/js/main.js'}
|
{javascripts file='assets/js/main.js'}
|
||||||
<script src="{$asset_url}"></script>
|
<script src="{$asset_url}"></script>
|
||||||
{/javascripts}
|
{/javascripts}
|
||||||
|
|
||||||
|
<script src="{url file='/tinymce/tinymce.min.js'}"></script>
|
||||||
|
<script>
|
||||||
|
tinymce.init({
|
||||||
|
selector: ".wysiwyg",
|
||||||
|
theme: "modern",
|
||||||
|
menubar : false,
|
||||||
|
language: "",
|
||||||
|
plugins: [
|
||||||
|
"advlist autolink link image lists charmap print preview hr anchor pagebreak",
|
||||||
|
"searchreplace wordcount visualblocks visualchars insertdatetime media nonbreaking",
|
||||||
|
"table contextmenu directionality emoticons paste textcolor filemanager"
|
||||||
|
],
|
||||||
|
toolbar1: "undo redo | bold italic underline | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | styleselect | filemanager | link unlink anchor | image media | forecolor backcolor | print preview code ",
|
||||||
|
image_advtab: true ,
|
||||||
|
external_filemanager_path:"{url file='/tinymce/plugins/filemanager/'}'",
|
||||||
|
filemanager_title:"{intl l='Files manager'}" ,
|
||||||
|
external_plugins: { "filemanager" : "{url file='/tinymce/plugins/filemanager/plugin.min.js'}"}
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
{/block}
|
{/block}
|
||||||
Reference in New Issue
Block a user