Skip to content

Replaces the author "Biographical Info" profile field with a TinyMCE visual editor.

License

Notifications You must be signed in to change notification settings

certainlyakey/Visual-Biography-Editor

 
 

Repository files navigation

Visual Editor Biography

  • Contributors: kevinlearynet, RoccoMarco, certainlyakey
  • Tags: profile, biography, bio, rich, text, editor, wysiwyg, tinymce, wpeditor, visual, editor, biographic, info, description, profile biography, profile description, rich text, TinyMCE, user, user profile, users, author
  • Requires at least: 3.3.0
  • Tested up to: 3.3.1
  • Stable tag: trunk

Replaces the author "Biographical Info" profile field with a TinyMCE visual editor.

Description

Replaces the Biographical Info profile field with the WordPress visual editor, TinyMCE, allowing you to editor an author's biography using rich text.

Please note that this plugins modifies the output of get_the_author_meta('description') and the_author_meta('description'), apply the same filters used to format content in the main editor.

Multisite Compatibility

The Visual Editor Biography plugin is compatibly with WordPress Multisite, just use the Network Activate feature to enable a visual editor on every site. If you only want a visual editor for a specific site then activate the plugin for that site only.

Hooks

There's a hook veb_wp_editor_args which allows to change the default arguments passed to wp_editor and thus change its functionality. Here's an example:

// Remove Media button from the user biography rich text field
function remove_media_from_user_bio($args) {
  $args['media_buttons'] = false;
  return $args;
}
add_filter('veb_wp_editor_args', 'remove_media_from_user_bio' );

Installation

  1. Install easily with the WordPress plugin control panel or manually download the plugin and upload the folder visual-editor-biography to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress

Screenshots

  1. The TinyMCE visual editor added to the Users > Profile page

The TinyMCE visual editor

  1. The formatted front end view for get_the_author_meta('description') and the_author_meta('description')

The formatted front end view

Changelog

1.6

  • Added a hook veb_wp_editor_args for changing default wp_editor arguments
  • Some Polylang compatibility fixes

1.5

  • Added Polylang compatibility (RoccoMarco)

1.4

  • Check for 'edit_posts' capability instead of 'contributor' for accurate role checks
  • Remove 'the_content' filters from get_the_author_description() function and instead add filters individually to avoid future conflicts with other plugins: wptexturize(), wpautop() and convert_chars(). Thanks to Matt Wiebe for making this great suggestion.

1.3

  • Restrict the rich text editing profile switch to contributor level users or higher for security
  • Add current_user_can() restrictions for added security throughout plugin

1.2

  • Fix issue with JS loading on user-edit.php; when administrators edit other people's bio's

1.1

  • Updates and bug fixes for older WordPress versions
  • Add plugin Banner to /assets/ folder for WordPress repository

1.0

  • Initial public release to the WordPress plugin repository

About

Replaces the author "Biographical Info" profile field with a TinyMCE visual editor.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 97.7%
  • JavaScript 2.3%