<script>
$(function () {
/* Replace the <textarea id="editor1"> with a CKEditor */
/* instance, using default configuration. */
CKEDITOR.replace('editor1')
<?php $AllCommunity=$dbf->fetchOrder("communities_notice","community_id='$_SESSION[community_id]'","id DESC","","");
if($AllCommunity){
$i=1;
$arry_edit=array();
foreach ($AllCommunity as $Community) {
array_push($arry_edit,$Community['id']);
}
for($i=0;$i<count($arry_edit);$i++) {
?>
CKEDITOR.replace('editor<?=$arry_edit[$i]+1?>')
<?php }}?>
/* bootstrap WYSIHTML5 - text editor */
$('.textarea').wysihtml5()
})
</script>