utes,
			styles = allowedContent.td.styles;

		if ( !rule ) {
			return;
		}

		switch ( rule ) {
			case 'th':
				if ( state ) {
					allowedContent.th = true;
				} else {
					delete allowedContent.th;
				}
			case 'rowspan':
			case 'colspan':
				addRemoveRule( rule, state, attributes );
				break;
			default:
				addRemoveRule( rule, state, styles );
		}

		editor.once( 'destroy', function() {
			setTimeout( function() {
				editor = createEditor();

				// Calling destroy on editor removes listener