made link fit visible area of editor