yle markup

                // Get selected text
                var selected_text = getSelectedText(theform);

                if (selected_text == '') {
                        // Display prompt if no text is selected
                        var inserttext = prompt( 'Enter the text to be formatted:'+"\n["+sb_code+"]xxx[/"+sb_code+"]", '' );
                        if ( (inserttext != null) ) {
                                insertAtCaret(theform, "["+sb_code+"]"+inserttext+"[/"+sb_code+"]");
  