So I haven't found any other inline-div editing jquery/javascript software besides NicEdit. I want to inject a tab, or any html at that matter into the div where my cursor is. I stumbled upon some code here:
function insertAtCursor(editor, value){
var editor = nicEditors.findEditor(editor);
var range = editor.getRng();
var editorField = editor.selElm();
editorField.nodeValue = editorField.nodeValue.substring(0, range.startOffset) +
value +
editorField.nodeValue.substring(range.endOffset, editorField.nodeValue.length);
}
HOWEVER, it doesn't work if the cursor is exactly on the left side (no text entered, right at the beginning of the line) (nodeValue turns to be null). Also, when text is entered, the cursor jumps around in several browsers (comparing Chrome and Firefox).
Is there a WYSIWYG that supports inline Tabs (tab button) or text inject with Divs (or textareas that mimic divs?) Why is this so hard to find?