Advertisement:

Author Topic: [SOLVED] Getting WYSWYG HTML Editor for 'Edit Listing' on Admin Panel, how?  (Read 3550 times)

teseo

  • Hero Member
  • *****
  • Posts: 6169
Hi Eric,

Not "on top" but "replacing". We need a way to tell if we are on the frontside or the backside, and I think this will do:

Code: [Select]
<?php $is_admin strstr("http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"osc_admin_base_url());
      if (!
$is_adminosc_remove_hook('init''rich_edit_init'); ?>


Regards

SmaRTeY

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2519
Ah, I was trying to see if there was a parameter which you could use being in admin but as far as I can see there is not and nor is there a helper function telling me I'm in back-end so I see why you come up with the url check  8)