Get image URL from media library “insert from url”

Got the solution…!

Use fn.state('embed' insted of fn.on( 'insert'
Or use Both of them fn.state('embed' & fn.on( 'insert'

fn.state('embed').on( 'select', function() {
    var state = fn.state(),
        type = state.get('type'),
        embed = state.props.toJSON();

    // SHOW JSON for embeded URL
    console.log('embed'+JSON.stringify(embed));
});

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