Merge "Remove template for insert-link dialog"

This commit is contained in:
jenkins-bot 2021-10-13 20:20:30 +00:00 committed by Gerrit Code Review
commit 3bcaa37303
3 changed files with 5 additions and 11 deletions

View file

@ -79,7 +79,6 @@
},
"templates": {
"dialogInsertFile.html": "templates/dialogInsertFile.html",
"dialogInsertLink.html": "templates/dialogInsertLink.html",
"dialogInsertReference.html": "templates/dialogInsertReference.html",
"dialogInsertTable.html": "templates/dialogInsertTable.html",
"dialogReplace.html": "templates/dialogReplace.html"

View file

@ -105,13 +105,13 @@
'insert-link': {
titleMsg: 'wikieditor-toolbar-tool-link-title',
id: 'wikieditor-toolbar-link-dialog',
htmlTemplate: 'dialogInsertLink.html',
html: $( '<fieldset>' ).append(
insertLinkTitleInputField.$element,
insertLinkLinkTextField.$element,
insertLinkLinkTypeField.$element
),
init: function () {
$( '.wikieditor-toolbar-link-target' ).replaceWith( insertLinkTitleInputField.$element );
$( '.wikieditor-toolbar-link-text' ).replaceWith( insertLinkLinkTextField.$element );
$( '.wikieditor-toolbar-link-type' ).replaceWith( insertLinkLinkTypeField.$element );
// Automatically copy the value of the internal link page title field to the link text field unless the
// user has changed the link text field - this is a convenience thing since most link texts are going to
// be the same as the page title - Also change the internal/external radio button accordingly

View file

@ -1,5 +0,0 @@
<fieldset>
<div class="wikieditor-toolbar-link-target"></div>
<div class="wikieditor-toolbar-link-text"></div>
<div class="wikieditor-toolbar-link-type"></div>
</fieldset>