Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
17244 Zobrazení

In below code i need more then one ckeditor editorsin my one page.

<template id="ID_NAME" name="NAME">

<t t-call="website.layout">

<script type="text/javascript" src="/web/static/lib/ckeditor/ckeditor.js"/>

<script type="text/javascript">

CKEDITOR.config.toolbar = [['Bold','Italic','Underline','Strike'],['NumberedList','BulletedList', 'Blockquote']

,['Outdent','Indent','Link','Unlink','Image'],] ;

</script>

<div id="wrap">

<div class="container">

<form id="FORM_NAME" t-attf-action="DYNAMIC_ACTION_PATH" method="POST">

<t t-foreach="LIST" t-as="VARIABLE_NAME">

<textarea rows="3" name="content" class="form-control"><t t-raw="FIELS_NAME"></textarea>

</t>

</form>

<script type="text/javascript">

CKEDITOR.replace("section_content");

</script>

</div>

</div>

Avatar
Zrušit
Autor Nejlepší odpověď

If we want multiple ckeditor in one web page we must have unique id for each CKEitor. this i manage using jQuery i got multiple ckeditor in one webpage.

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
srp 22
3048
0
pro 20
3459
0
říj 19
2821
0
zář 19
3848
1
srp 17
3196