Fixed template for insert/edit link
authorAlexander Ebert <ebert@woltlab.com>
Sun, 26 Oct 2014 20:06:04 +0000 (21:06 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Sun, 26 Oct 2014 20:06:04 +0000 (21:06 +0100)
wcfsetup/install/files/js/3rdParty/redactor/plugins/wmonkeypatch.js

index a9d1e8d3adada50bc479374c58b69f12ecc3b404..1296d02968f73cf34375c54c96e1da33fa89d07d 100644 (file)
@@ -476,6 +476,19 @@ RedactorPlugins.wmonkeypatch = function() {
                        // template: imageEdit
                        this.opts.modal.imageEdit = this.opts.modal.image;
                        
+                       // template: link
+                       this.opts.modal.link =
+                               '<fieldset id="redactor-modal-link">'
+                                       + '<dl>'
+                                               + '<dt><label for="redactor-link-url" />URL</label></dt>' /* TODO: use a phrase instead of hardcoding it! */
+                                               + '<dd><input type="url" id="redactor-link-url" /></dd>'
+                                       + '</dl>'
+                                       + '<dl>'
+                                               + '<dt><label for="redactor-link-url-text">' + this.lang.get('text') + '</label></dt>'
+                                               + '<dd><input type="text" id="redactor-link-url-text" /></dd>'
+                                       + '</dl>'
+                               + '</fieldset>';
+                       
                        // template: quote
                        this.opts.modal.quote =
                                '<fieldset>'