Skip to main content

CodeEditor

    The CodeEditor provides a text input field that is specifically designed for editing code. It further offers properties to configure e.g. syntax highlighting, spell checks or line wrapping. Once the editor is focused via the keyboard, the user must press Enter to start editing and Escape to quit editing and return to the keyboard navigation flow.

    Behavior tracking attributes

    Strato sets these data-dt-* attributes on the DOM elements of the component, so that Real User Monitoring can track user interactions. They cannot be changed by the consuming application.

    CodeEditor

    AttributeValue
    data-dt-componentCodeEditor

    ErrorFallback

    AttributeValue
    data-dt-children-nameReset

    EditorActionsMenu

    AttributeValue
    data-dt-children-nameOpenActionsMenu
    data-dt-ancestor`#${editorRootId}`
    data-dt-children-nameDownload

    OffScreenDiagnosticIndicators

    AttributeValue
    data-dt-children-nameScrollToErrorAbove
    data-dt-children-nameScrollToErrorBelow

    CopyButton

    AttributeValue
    data-dt-children-nameCopy
    Still have questions?
    Find answers in the Dynatrace Community