Open barb12 opened 7 years ago
I guess you can't retrieve the html content of the editor with a trixInitialize function. I am not quite sure I'm understanding your issue but if you want to get the text that you're typing in the editor appears, you might want to use a change or a blur event like : trix-change or trix-blur
@barb12 to retrive trix HTML strings you can use editor.element.innerHTML
or on trix-change event changeEvent.target.value
Thank you @Saikat-Sinha !
to retrieve the text from the trix-editor the following is used
$scope.trixInitialize = function(e, editor) { editor.getDocument() // is a Trix.Document instance }
this returns the string of editor's content... i would like to know to return the html string content of the editor thanks