CKEDITOR.replace('newscreator');if (!empty($data['newscreator']) || isset($data['newscreator']))if (empty($data['imgnews'])) {
    if (!empty($data['newstitle'])) {
        $url = str2url($data['newstitle']);
        if (!empty($data['newscreator'])) {
            if (!empty($data['script_text'])) {
                mysqli_query($query, "INSERT INTO `news` (date, author, title, url, site_text, script_text) VALUES ('{$date}', '{$author}', '{$data['newstitle']}', '{$url}', '{$data['newscreator']}', '{$data['script_text']}') ");
            } else {
                $errorContainer['script_text'] = 'Введите текст для версии скрипта!';
            }
        } else {
            $errorContainer['newscreator'] = 'Введите текст для версии сайта!';
        }
    } else {
        $errorContainer['newstitle'] = 'Введите название новости!';
    }
}<textarea name="newscreator" id="newscreator" rows="10" cols="80"></textarea>CKEDITOR.replace('newscreator');