akzhan/jwysiwyg — Issue #285: Code Snippet Button fires an error when editor has no focus
Author: tonydspaniard
Created: 2012-02-23 00:18:57+00:00
State: open

When clicking the code snippet button, when editor had no focus, was firing an error....

The issue was solved by adding the following:

```javascript
this.getInternalSelection = function () {
// firefox: document.getSelection is deprecated
this.editor.focus(); /* addition */

```
Congratulations for such tool...