
/**************************************
    Webutler V3.0 - www.webutler.de
    Copyright (c) 2008 - 2014
    Autor: Sven Zinke
    Free for any use
    Lizenz: GPL
**************************************/

(function()
{CKEDITOR.plugins.formfields={lang:[CKEDITOR.lang.detect(CKEDITOR.config.language)],init:function(editor)
{if(editor.addMenuItems)
{editor.addMenuItems({formfelder:{label:editor.lang.formfields.title,group:'formfelder',order:1,getItems:function()
{return{textfield:CKEDITOR.TRISTATE_OFF,textarea:CKEDITOR.TRISTATE_OFF,checkbox:CKEDITOR.TRISTATE_OFF,radio:CKEDITOR.TRISTATE_OFF,select:CKEDITOR.TRISTATE_OFF,hiddenfield:CKEDITOR.TRISTATE_OFF,button:CKEDITOR.TRISTATE_OFF,imagebutton:CKEDITOR.TRISTATE_OFF,sendtofield:CKEDITOR.TRISTATE_OFF};}}});}
if(editor.contextMenu)
{editor.contextMenu.addListener(function(element,selection,path)
{var isForm=path.contains('form',1);if(isForm&&element.getName()!='input'&&element.getName()!='textarea'&&element.getName()!='button'&&element.getName()!='select'&&!element.data('cke-realelement'))
{return{formfelder:CKEDITOR.TRISTATE_OFF};}
return null;});}}};CKEDITOR.plugins.add('formfields',CKEDITOR.plugins.formfields);})();