[Plugin: People Lists] People-Lists profile rich-text editor HTML and Link-Button fixes
-
Great plugin, thanks! Two problems with the rich text editor on the profile page: (1) user entered HTML is filtered out from the description field and therefore can’t be used (2) the add-link button doesn’t pop-up a form to enter the URL.
Fixes: add these three lines to the people-lists.php function “people_lists_tinymce_init_scripts()” :
add_action(‘admin_print_footer_scripts’, ‘wp_tiny_mce_preload_dialogs’, 30 );
remove_filter(‘pre_user_description’, ‘wp_filter_kses’);
add_filter( ‘pre_user_description’, ‘wp_filter_post_kses’ );The first line adds the dialog popup for links to the editor. The next two lines change the filter for the description field from one that filters out all HTML to one that only filters out dangerous HTML.
- The topic ‘[Plugin: People Lists] People-Lists profile rich-text editor HTML and Link-Button fixes’ is closed to new replies.