This question has been flagged
1 Reply
16184 Views

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
Discard
Author Best Answer

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
Discard