Deprecated

This function has been deprecated. This is no longer required as of upload field introduction instead.

ap_tinymce_editor_settings( $type = 'question' )

Description #

TinyMCE editor setting

Changelog #

VersionDescription
4.1.0This is no longer required as of upload field introduction.
3.0.0Introduced.

Source #

File: includes/deprecated.php

function ap_tinymce_editor_settings( $type = 'question' ) {
	_deprecated_function( __FUNCTION__, '4.1.0', 'This is no longer required as of upload field introduction.' );

	$setting = array(
		'textarea_rows' => 8,
		'tinymce'       => ap_opt( $type . '_text_editor' ) ? false : true,
		'quicktags'     => ap_opt( $type . '_text_editor' ) ? true : false,
		'media_buttons' => false,
	);

	if ( ap_opt( $type . '_text_editor' ) ) {
		$settings['tinymce'] = array(
			'content_css'      => ap_get_theme_url( 'css/editor.css' ),
			'wp_autoresize_on' => true,
			'statusbar'        => false,
		);
	}

	return apply_filters( 'ap_tinymce_editor_settings', $setting, $type );
}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment