Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

add external text editor to plugin

Alexander Verzakov
Contributor
March 17, 2022

Hi colleagues.

I have plugin for jira-server that includes textarea tags in configuration pages.

I wish to use nicEdit js editor(or in case you can suggest better analogue it will be very appretiated). NicEdit editor is main js script and gif with images. 

<web-resource key="
<resource type="download" name="nicEdit.js" location="/lib/nicedit/nicEdit.js"/>
<resource type="download" name="nicEditorIcons.gif" location="/lib/nicedit/nicEditorIcons.gif"/>

When i add js script plugin not drawed properly and causes 

...:8080/nicEditorIcons.gif 404

How do i properly insert plugin resources in plugin?

Thank you.

2 answers

0 votes
Alexander Verzakov
Contributor
March 17, 2022

Also i tried get reources by link

...:8080/download/resources/com.avvd.jira.plugin.defaulter:defaulter-resources/nicEditorIcons.gif/lib/nicEdit/nicEditorIcons.gif

But also get 404 error. So i confused. 

0 votes
Alexander Verzakov
Contributor
March 17, 2022

Editor configuration has point at

iconsPath : '../nicEditorIcons.gif',

How i can define waht link to place in it? 

 

The main question, like i think is how to call plugin webresource from js.

Suggest an answer

Log in or Sign up to answer