Opened 9 years ago

Closed 9 years ago

#6095 closed Bug (duplicate)

addMenuGroup is not a function

Reported by: SLX Owned by:
Priority: Normal Milestone:
Component: General Version: 3.3.1
Keywords: Cc:

Description

I have this error "a.addMenuGroup is not a function" when I remove at once plugins contextmenu and scayt.

CKEDITOR.editorConfig = function( config )
  {
  config.removePlugins = 'contextmenu,scayt';
  }

Error is not triggered when I additionally remove liststyle.

Other people only disable plugin "scyte" to achieve this error. Look at this thread http://cksource.com/forums/viewtopic.php?f=11&t=18990

I think that is because plugins "liststyle" and "scyte" need required property with "menu" plugin.

I added this lines to source files and it seems to work:

File \ckeditor\_source\plugins\liststyle\plugin.js:10

(function()
{
	CKEDITOR.plugins.liststyle =
	{
  	requires : [ 'menu' ],               // HERE 
		init : function( editor )
		{


And in file \ckeditor\_source\plugins\scayt\plugin.js:486

	CKEDITOR.plugins.add( 'scayt',
	{
		requires : [ 'menubutton', 'menu' ],       //HERE

		beforeInit : function( editor )

Change History (1)

comment:1 Changed 9 years ago by Frederico Caldeira Knabben

Keywords: addMenuGroup scyte contextmenu liststyle removed
Resolution: duplicate
Status: newclosed

DUP of #5799

Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy