wire/modules/Inputfield/InputfieldCKEditor/InputfieldCKEditor.js
/**
 * Get ProcessWire config settings for given CKE editor object or name
 *
 * @param editor
 * @returns {*}
 *
 */
Get ProcessWire config settings for given CKE editor object or name
@param editor
@returns {*}
Get ProcessWire config settings for given CKE editor object or name @param editor @returns { * }
function ckeGetProcessWireConfig(editor) {
	var editorName = typeof editor == "string" ? editor : editor.name;
	var configName = editorName.replace('Inputfield_', 'InputfieldCKEditor_');
	var $repeaterItem = '';
	var settings = {};
	configName = configName.replace('Inputfield_', 'InputfieldCKEditor_');
	if(typeof ProcessWire.config[configName] == "undefined" && configName.indexOf('_repeater') > 0) {
		configName = configName.replace(/_repeater[0-9]+/, '');
		$repeaterItem = $('#' + editorName).closest('.InputfieldRepeaterItem');
	}
	if(typeof ProcessWire.config[configName] == "undefined" && configName.indexOf('_ckeditor') > 0) {
		configName = configName.replace(/_ckeditor$/, ''); 
	}
	if(typeof ProcessWire.config[configName] == "undefined" && configName.indexOf('__') > 0) {
		configName = configName.replace(/__\d+$/, ''); 
	}
	if(typeof ProcessWire.config[configName] == "undefined") {
		settings.error = 'Cannot find CKEditor settings for ' + configName;
	} else {
		settings = ProcessWire.config[configName];
	}
	if($repeaterItem.length) {
		settings['repeaterItem'] = $repeaterItem;
	} else {
		settings['repeaterItem'] = '';
	}
	return settings;
}
function ckeGetProcessWireConfig ( editor ) { var editorName = typeof editor == "string" ? editor : editor . name ; var configName = editorName . replace ( 'Inputfield_' , 'InputfieldCKEditor_' ) ; var $repeaterItem = '' ; var settings = { } ; configName = configName . replace ( 'Inputfield_' , 'InputfieldCKEditor_' ) ; if ( typeof ProcessWire . config [ configName ] == "undefined" && configName . indexOf ( '_repeater' ) > 0 ) { configName = configName . replace ( / _repeater[0-9]+ / , '' ) ; $repeaterItem = $ ( '#' + editorName ) . closest ( '.InputfieldRepeaterItem' ) ; } if ( typeof ProcessWire . config [ configName ] == "undefined" && configName . indexOf ( '_ckeditor' ) > 0 ) { configName = configName . replace ( / _ckeditor$ / , '' ) ; } if ( typeof ProcessWire . config [ configName ] == "undefined" && configName . indexOf ( '__' ) > 0 ) { configName = configName . replace ( / __\d+$ / , '' ) ; } if ( typeof ProcessWire . config [ configName ] == "undefined" ) { settings . error = 'Cannot find CKEditor settings for ' + configName ; } else { settings = ProcessWire . config [ configName ] ; } if ( $repeaterItem . length ) { settings [ 'repeaterItem' ] = $repeaterItem ; } else { settings [ 'repeaterItem' ] = '' ; } return settings ; }
Get ProcessWire config settings for given CKE editor object or name
 @param editor
 @returns {*}
Get ProcessWire config settings for given CKE editor object or name @param editor @returns { * }
// inline only // remove language-id