Set value of "Target" to "New window" in Insert/modify link in KB article body.

Yash31
Tera Contributor

I have requirement as follows:

While creating knowledge article, when inserting or modifying the link in article body the value of "Target" on the Popup should be set to New Window by default.

Is it possible to do so? Please suggest possible ways if any.

find_real_file.png

1 ACCEPTED SOLUTION

Tushar Sharma2
Kilo Guru

Hello Yash,

 

Please follow below steps : 

 

1) Navigate to the UI Page search record with name  "html_insert_link_dialog" .

find_real_file.png

2) On the HTML field of this record scroll to around line where it says:

<g2:ui_select_option text="${gs.getMessage('None (use implicit)')}" value="" selected="$[jvar_selected_target]" />

3) Change the value attribute of the line from:

value="" to value="_self"

*Value of empty and value of _self are the same. The reason why we're doing this is so the system will not default to this option. It will always default to an option that has value=""

4) Now pick any other option that you want to be the new default and move this to the top, replacing the position that "None (use implicit)" previously occupied. It should look like this:

5) Save the change and now when using the Insert/Modify Link functionality, it should now default to Target: 'New window (_blank)' (assuming this was the option you've selected to be the default)

 

 

Regards,

Tushar

DXSherpa

View solution in original post

7 REPLIES 7

Tushar Sharma2
Kilo Guru

Hello Yash,

 

Please follow below steps : 

 

1) Navigate to the UI Page search record with name  "html_insert_link_dialog" .

find_real_file.png

2) On the HTML field of this record scroll to around line where it says:

<g2:ui_select_option text="${gs.getMessage('None (use implicit)')}" value="" selected="$[jvar_selected_target]" />

3) Change the value attribute of the line from:

value="" to value="_self"

*Value of empty and value of _self are the same. The reason why we're doing this is so the system will not default to this option. It will always default to an option that has value=""

4) Now pick any other option that you want to be the new default and move this to the top, replacing the position that "None (use implicit)" previously occupied. It should look like this:

5) Save the change and now when using the Insert/Modify Link functionality, it should now default to Target: 'New window (_blank)' (assuming this was the option you've selected to be the default)

 

 

Regards,

Tushar

DXSherpa

Thanks Tushar. 

I couldn't get this to work. I'm using Tokyo where it seems like the WYSIWYG editor is different now. Has anyone found a solution for this in Tokyo?

Hi, I found the following system property in Utah:

glide.ui.html.editor.default_link_target

which governs the new WYSIWYG editor, you just need to set the value to whichever you would like it to default to and you're done!