跳至內容
選單
此問題已被標幟
1 回覆
17238 瀏覽次數

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>

頭像
捨棄
作者 最佳答案

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.

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
8月 22
3046
0
12月 20
3458
0
10月 19
2819
0
9月 19
3842
1
8月 17
3193