Skip to content

Commit 9f0dcd7

Browse files
committed
fix: link editor schema autocomplete
1 parent 4e435d7 commit 9f0dcd7

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

extension.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "OpenSemanticLab",
3-
"version": "0.36.2",
3+
"version": "0.36.3",
44
"author": [
55
"Simon Stier"
66
],

modules/ext.OpenSemanticLab.editor/ve_integration.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ var template_tools = [
207207
"label": {
208208
"title": "Label (optional)",
209209
"title*": {"de": "Beschriftung (optional)"},
210-
"description": "If not set, the no text (external) or the page name (internal) will be displayed.",
210+
"description": "If not set, no text (external) or the page name (internal) will be displayed.",
211211
"description*": {"de": "Falls nicht gesetzt wird kein Text (extern) oder der Seitenname (intern) angezeigt."},
212212
"type": "string",
213213
"format": "text"
@@ -227,7 +227,8 @@ var template_tools = [
227227
"format": "autocomplete",
228228
"options": {
229229
"autocomplete": {
230-
"category": "Category:Entity"
230+
"$comment": "filter only on labels per user input",
231+
"query": ""
231232
},
232233
"_dependencies": {
233234
"root.url": ""
@@ -371,7 +372,7 @@ var template_tools = [
371372
"mode": {
372373
"title": "Display mode",
373374
"title*": {"de": "Anzeigemodus"},
374-
"description": "Defines how the elements are displayed",
375+
"description": "Defines how the elements are displayed",
375376
"description*": {"de": "Definiert wie die Elemente angezeigt werden"},
376377
"type": "string",
377378
"enum": ["default", "slideshow"],
@@ -408,7 +409,7 @@ var template_tools = [
408409
"options": {
409410
"autocomplete": {
410411
"$comment": "attached file of the current page",
411-
"query": "[[-HasFileAttachment::" + mw.config.get("wgPageName") + "]][[Display_title_of_normalized::like:*{{{_user_input_normalized}}}*]]|?Display_title_of=label|?HasImage=image|?HasDescription=description"
412+
"query": "[[-HasFileAttachment::" + mw.config.get("wgPageName") + "]]"
412413
}
413414
},
414415
"links": [

0 commit comments

Comments
 (0)