imports/vx/client/code/ux.js
/**
     * Start editing the current element via contenteditable.
     *
     * @param {object} $element JQuery element to edit.
     * @param {boolean} selectText True to select  text in contenteditable.
     */
Start editing the current element via contenteditable.
@param {object} $element JQuery element to edit.
@param {boolean} selectText True to select  text in contenteditable.
Start editing the current element via contenteditable . @param { object } $element JQuery element to edit . @param { boolean } selectText True to select text in contenteditable .
startEditing($element, selectText) {
        $element.attr("contenteditable", true)
        $element.addClass("selectable")
        $element.trigger("focus")
        if (selectText) {
            $element.selectText()
        }
    }
startEditing ( $element , selectText ) { $element . attr ( "contenteditable" , true ) $element . addClass ( "selectable" ) $element . trigger ( "focus" ) if ( selectText ) { $element . selectText ( ) } }
Start editing the current element via contenteditable.
Start editing the current element via contenteditable .