edvin
programCodeProperty.onChange { richText.replaceText(it) }
richText.textProperty().onChange { programCode = it}