﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
14577	Adding New Item using editor.AddmenuItem	eteamin		"I am using this code to create instance of CKEDITOR and add a new item using editor addmenuitem:
<script src=""${tg.url('/lib/ckeditor/ckeditor.js')}""></script>
<div class=""row"">
    <div class=""col-xs-12"">
        <textarea id=""editorlocal"">
            local
        </textarea>
    </div>
</div>

<script type=""text/javascript"">
    CKEDITOR.replace('editorlocal', {
        scayt_serviceProtocol: 'http',
		scayt_serviceHost: '${server_host}',
		scayt_servicePort: '${server_port}',
		scayt_servicePath: 'scayt/ssrv.json',
		scayt_customerId: '',
        scayt_srcUrl: '/lib/ckscayt/ckscayt.js',
        scayt_autoStartup: true
    });
    CKEDITOR.config.scayt_sLang= 'fa_IR';


        var editor = CKEDITOR.instances.editorlocal;
        var addtodb = 'addtodb';
        editor.addCommand(addtodb, { exec: function () {} });
        editor.addMenuItem({
                  label : 'ADD',
                  command : addtodb
               });
        alert('shit');
        editor.contextMenu.addListener( function( element ) {
            return {
                Add: CKEDITOR.TRISTATE_OFF
            };
        });


</script>
but in the console it says addMenuItem is not a function.
I want to know where exactly does this function is ready to be used so i can create the menu item after that point. thank you"	Task	closed	Normal		General		invalid		
