1 2 3 4 5 6 7 8
if (CKEDITOR) { try { CKEDITOR.instances[textAreaId].insertHtml(content, 'html'); } catch (e) { // do nothing. } }