Anyone have any suggestions for how reduce the width of the EditorView if the length of the longest line gets smaller? I can make the width increase when the line gets longer because the
editorView.contentDOM.offsetWidth will increase in that case and I can use that to change the width of the
editorView’s parent. Unfortunately,
editorView.contentDOM.offsetWidth doesn’t seem to decrease in the case that the line(s) get shorter. Is some other way that I could get the width of the longest line? Or is there some other way to approach the problem?
Thanks in advance.