Ayuda

2

I want to use multiple ckeditor editors one page in website template. please help me.

Avatar
Virali

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
Descartar
1 Respuesta
0
Avatar
Virali
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
Descartar