How to add button to WYSIWYG to insert shortcode with params (filled in system popup)?

How to add button to WYSIWYG to insert shortcode with params (filled in system popup)?

error code: 523