Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to stop CKeditor from adding a toolbar to all textarea elements

I am using ckeditor to simply make one of my textareas on the page into a ckeditor field. I am doing this by using the add by class name method to add it to only one field. The problem is that it adds a toolbar to every other textarea as well even though they do not have the ckeditor class set on them. This is such a simple use case that I felt there would be a simple way to do it. But I have not been able to find anything among the config or in the documentation which will let me do this.

EDIT: The Code

<textarea id="mag-field" name="{{entry.title}}>{{ content }}</textarea>

<textarea class="ckeditor" name="{{ name }}">{{ value | e}}</textarea>

<script type="text/javascript" src="js/ckeditor"></script> 
like image 525
Moin Qidwai Avatar asked Dec 12 '25 22:12

Moin Qidwai


1 Answers

CKEDITOR.disableAutoInline = true;

Not weird, the CKEditor site says this sets to false by default.

like image 114
maddogandnoriko Avatar answered Dec 16 '25 02:12

maddogandnoriko