Hey Unnati, '\n' is usually used to type text in a new line inside a textarea. So with Selenium Webdriver, we can achieve this in following way:
WebElement webelement = driver.findElement(By.id("cke_1_contents"));
webelement.sendKeys(“This is line one.\n This is line two.”);