Getting selected content in editor?

I am trying to build custom buttons for dhtmlxEditor. Is there a way to find out what content is currently selected so I can apply alternate formatting to it?

Thanks!

Hi,

unfortunately, editor doesn’t provide such a method.