Open davisonn opened 8 years ago
I want the editor to initialize as a bulleted list, but am having the following issue: (note: I have the toolbar hidden since it takes up too much space for my uses)
$scope.trixInitialize = function(e, editor) { editor.setSelectedRange([0,0]); editor.insertHTML('<ul><li></li></ul>'); }
results in a list followed by an empty div: <ul><li><!--block--><br></li></ul><div><!--block--><br></div>
<ul><li><!--block--><br></li></ul><div><!--block--><br></div>
$scope.trixInitialize = function(e, editor) { editor.setSelectedRange([0,0]); editor.insertString('Hello World'); }
<div><!--block-->Hello World</div>
Am I missing something?
can anyone help me on this
I want the editor to initialize as a bulleted list, but am having the following issue: (note: I have the toolbar hidden since it takes up too much space for my uses)
results in a list followed by an empty div:
<ul><li><!--block--><br></li></ul><div><!--block--><br></div>
<div><!--block-->Hello World</div>
Am I missing something?