Try to search your question here, if you can't find : Ask Any Question Now ?

CKEDITOR kekule (Chemical equation plugin) not working on multiple instances on same page

HomeCategory: stackoverflowCKEDITOR kekule (Chemical equation plugin) not working on multiple instances on same page
pragati asked 2 weeks ago

I am using CKEditor. I have added a kekule plugin for writing chemical equations. It is working fine with a single instance of CKEditor in one page. However if I add multiple instances of CKEditor on the same page, then the kekule image adding function is not working.

Here is plugin in config.js file:

config.extraPlugins = 'kekule',
Here is full code:

<textarea class="form-control" id="question" name="question" placeholder="Question"></textarea>
 <textarea class="form-control" id="option1" name="option1" placeholder="Option1"></textarea>
<script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script >
if(typeof CKEDITOR !== 'undefined'){
var editor = CKEDITOR.replace('question', {
toolbarGroups : [{ name: 'insert', groups: [ 'insert' ] },],
extraPlugins: 'kekule',
});

}

if(typeof CKEDITOR !== 'undefined'){
var editor = CKEDITOR.replace('option1', {
toolbarGroups : [{ name: 'insert', groups: [ 'insert' ] },],
extraPlugins: 'kekule',
});

}

1 Answers
Best Answer
Matthias answered 2 weeks ago
Your Answer

6 + 15 =

Popular Tags

WP Facebook Auto Publish Powered By : XYZScripts.com