Any way to change the TextBlock style to have boarders?

Is there a way to use the default TextBlock but make some style changes such as minimum width and boarders? We are using GoJs 1.7.11. I tried to set myDiagram.toolManager.textEditingTool.defaultTextEditor.mainElement.className = “myTextEditorCSSClass”; but get error defaultTextEditor does not have mainElement property.
Thanks

You’ll want to use a custom text editor. We have some examples:

HTMLInfo Text Editor (just a reimplementation of the default)
Text Editing Examples