I'm using Tinymce which is a html editor.
There is a known bug in TinyMCE which effects the ability of inserting/editing links when Tinymce is used within a Twitter Bootstrap modal (as shown in the picture below)
I was able to get past this by using the following code snippet
$(document).on('focusin', '.mce-textbox', function() {
$(this).focus();
});
This however, is causing 'too much recursion' errors.
I have created the demo below which shows the error in the console and I have also included the code which makes it work (uncomment this to make it work however, this is when I get the errors)
demo (js fiddle)
Any ideas on how to fix this issue?