WP Editor, save content and category on frontend

Use WordPress’s Ajax API. like this:

$.ajax({
    data: {
        action: 'save_post_frontend',
        content: // get your text
    },
    method: 'POST',
    url: ajaxurl,
    success: // on success
});

Now save the data in wp_ajax_save_post_frontend hook.
See documentation for more info.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)