trac/htdocs/js/wikitoolbar.js
Function addWikiFormattingToolbar
has 79 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
window.addWikiFormattingToolbar = function(textarea) {
if ((document.selection == undefined)
&& (textarea.setSelectionRange == undefined)) {
return;
}
Function encloseSelection
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function encloseSelection(prefix, suffix) {
textarea.focus();
var start, end, sel, scrollPos, subst;
if (document.selection != undefined) {
sel = document.selection.createRange().text;