Following the Communist victory on the mainland in 1949 , 2 million Nationalists fled to Taiwan and established a government using the 1947 constitution drawn up for all of China .