Hi, are there any plans to add plugin parameters to set default input paramaters when embed docs?
As of now you can in plugin parameters set default engine to use which is nice, but it would be even nicer to be able to set default value for the other input parameters 'Document URL', 'Width' and 'Height'. These have to be entered manually every time you want to embed a document to the article.
The default for 'Document URL' would be the default path to the folder you store your files in, and then the customer only needs to add the filename to it.
I have however added default values to the input parameters by modifying the file .../media/aridocsviewer/editor/tpl/modal_body.tpl
Code: |
<div class="adv-jeditor-group-doc control-group">
<label class="control-label with-tip" for="#{prefix}_tbxADVDocUrl" title="#{messages.docUrlTip}">#{messages.docUrl}</label>
<div class="controls">
<input type="text" id="#{prefix}_tbxADVDocUrl" class="input-xlarge" data-plugin-key="url" value=files/ />
</div>
</div>
<div class="control-group">
<label class="control-label with-tip" for="#{prefix}_tbxADVWidth" title="#{messages.widthTip}">#{messages.width}</label>
<div class="controls">
<input type="text" id="#{prefix}_tbxADVWidth" class="input-mini" data-plugin-key="width" value="100%"/>
</div>
</div>
<div class="control-group">
<label class="control-label with-tip" for="#{prefix}_tbxADVHeight" title="#{messages.heightTip}">#{messages.height}</label>
<div class="controls">
<input type="text" id="#{prefix}_tbxADVHeight" class="input-mini" data-plugin-key="height" value="1200"/>
</div>
</div>
|
This would of course get overridden again if I was to update the plugin in the future, so therefor if an option in the plugin parameters to assign default values to all the input parameters would be added for a next version of Ari Docs, then that would be nice.