Modify ↓
Opened 16 years ago
Last modified 7 years ago
#3630 new enhancement
Can Autolink be configured as OFF by default?
Reported by: | Owned by: | Jun Omae | |
---|---|---|---|
Priority: | normal | Component: | TracWysiwygPlugin |
Severity: | minor | Keywords: | |
Cc: | Trac Release: | 0.10 |
Description
I have issue with plugin default behavior. The project I am documenting uses CamelCase extensively and default autolink makes it tiresome to unlink all the occurrences. Is it possible to add to plugin configuration default value for Autolink, or to remember the last state of it?
Thanks.
Attachments (0)
Change History (3)
comment:1 Changed 15 years ago by
comment:2 Changed 15 years ago by
...would love this feature, too. The autolink feature is so annoying!
comment:3 Changed 7 years ago by
you may patch tracwysiwygplugin/0.12/tracwysiwyg/htdocs/wysiwyg.js
:
--- tracwysiwygplugin/0.12/tracwysiwyg/htdocs/wysiwyg.js.dist 2013-12-05 02:41:57.000000000 +0100 +++ tracwysiwygplugin/0.12/tracwysiwyg/htdocs/wysiwyg.js 2017-03-21 18:24:16.285311318 +0100 @@ -2,7 +2,7 @@ var TracWysiwyg = function(textarea, opt var self = this; var editorMode = TracWysiwyg.getEditorMode(); textarea.setAttribute('data-tracwysiwyg-initialized', 'doing'); - this.autolink = true; + this.autolink = false; this.textarea = textarea; this.options = options = options || {}; var wikitextToolbar = null; @@ -755,7 +755,7 @@ TracWysiwyg.prototype.setupToggleEditorB var mode = TracWysiwyg.editorMode; var html = '' + '<label for="editor-autolink-@" title="Links as you type (Ctrl-L)">' - + '<input type="checkbox" id="editor-autolink-@" checked="checked" />' + + '<input type="checkbox" id="editor-autolink-@"' + (this.autolink? 'checked="checked"':'') + ' />' + 'autolink </label>' + '<label for="editor-wysiwyg-@">' + '<input type="radio" name="__EDITOR__@" value="wysiwyg" id="editor-wysiwyg-@" '
Note: See
TracTickets for help on using
tickets.
I too woud be very happy if there would exist an option to deactivate it by default.