Tabla de configuración de WIRIS Plugin

El contenido de esta página solo está disponible en inglés.

Important: From version 3.50.0 you only need to create a configuration.ini file if you need to change any of WIRIS plugin defaults. WIRIS plugin packages include a configuration.ini.dist example file. You need to create a new configuration.ini (without .dist) and edit the latter so that your changes have effect. You can also copy (or rename) configuration.ini.dist to configuration.ini. To uncomment variables you need to remove the leading #.

Server configuration file (configuration.ini)

Each plugin has the configuration.ini file in a different place. Check this table to find your file.

Integration File
Moodle 1.x filter/wiris/wrs_config.php (plugin version 2.3 or newer)
pluginwiris/wrs_config.php (plugin version 2.2 or older)
FCKEditor in PHP, ASP and ASP.net <FCKEditor directory>/editor/plugins/fckeditor_wiris/configuration.ini
CKEditor in PHP, ASP and ASP.net <CKeditor directory>/plugins/ckeditor_wiris/configuration.ini
TinyMCE in PHP, ASP and ASP.net <TinyMCE directory>/jscripts/tiny_mce/plugins/tiny_mce_wiris/configuration.ini
Xinha in PHP, ASP and ASP.net <Xinha directory>/plugins/xinha_wiris/configuration.ini
NicEdit in PHP, ASP and ASP.net <NicEdit directory>/nicedit_wiris/configuration.ini
RadEditor in ASP.net <RadEditor directory>/radeditor_wiris/configuration.ini
Cute Editor in ASP.net <Cute Editor directory>/cuteeditor_wiris/configuration.ini
Any editor in Java WEB-INF/pluginwiris/configuration.ini
Any editor in Ruby on Rails <wirispluginengine gem path>/configuration.ini

configuration.ini table

Connection properties
Key Description Default value Possible values
wirisimageserviceprotocol Specifies formula image server protocol. If left blank, it is computed automatically   http, https
wirisimageservicehost(1) Specifies formula image server host. www.wiris.net  
wirisimageserviceport Specifies formula image server port. If left blank, it is computed automatically   (number)
wirisimageservicepath Specifies formula image server path. /demo/editor/render  
wirisimageservice version Specifies formula image version. 2.0 1.0, 2.0
wirisproxy Specifies if your server is using a proxy connection or not. false true, false
wirisproxy_host If wirisproxy is true, this value specifies the proxy host.    
wirisproxy_port If wirisproxy is true, this value specifies the proxy port.    
wirisproxy_user If wirisproxy is true, this value specifies the proxy user (if needed).    
wirisproxy_password If wirisproxy is true, this value specifies the proxy password (if needed).    
wiriscorsenabled If wiriscorsenabled is true, this value specifies if the cross domain is enabled. false true, false

 

Configuration & folder properties
Key Description Default value Possible values
wiriseditorsavemode(5) Specifies how are formulas stored in the database. See this page xml xml, image, base64.
wiriseditorparsexml Specifies if mathml should be parsed on non-mathml modes (image or base64) false false, true.
wiriscachedirectory Directory where the images of the created formulas are stored. /<plugin_directory>/cache  
wirisformuladirectory Directory where the created formulas are stored. /<plugin_directory>/formulas  
wirisstorageclass Name of the class that manages the storage of formulas. This is an advanced feature. See this page. See this page.
wirisconfigurationclass Name of the class that updates the loaded configuration. This is an advanced feature. See this page. See this page.

 

Style properties
Key Description Default value Possible values
wirisimagebackgroundcolor Specifies formula background color. #FFFFFF  
wirisimagecolor Specifies formula foreground color. #000000  
wirisimagefontsize Specifies formula font size. 16px  
wirisfontfamily Specifies formula font family. Arial  
See also the style properties at WIRIS editor.

 

Other properties
Key Description Default value Possible values
wirisimagedpi Defines the dpi's of the formula. A number multiple of 96. 96
wirisimagedefaultstretchy Whether the MathML of the parenthesis are interpreted as stretchy by default. true, false false
wirisaccessibilityenabled Whether to include the alternative text for the formula in the image alt attribute. true true, false
See also the other properties at WIRIS editor.

 

WIRIS editor properties
Key Description Default value Possible values
wirisrtllanguages List of Right to Left languages. When the language parameter (see above) belongs to this list, formulas are edited right to left. ar See list of languages
wirisltrlanguages

Used to define Left to Right languages and to overwrite rtlLanguages.

For example, if rtlLanguages is ar and ltrLanguages is ar_ma, all arabic languages are defined as RTL except arabic from Morocco.

ar_ma See list of languages
wirisarabicindiclanguages Used to define languages that use Arabic-Indic numerals(5). ar_eg, ar_sd, ar_sa See list of languages
wiriseasternarabicindiclanguages Used to define languages that use Eastern Arabic-Indic numerals(5). fa, ps, ur See list of languages
wiriseuropeanlanguages Used to define languages that use European numerals and overwrite arabicIndicLanguages and easternArabicIndicLanguages(5).   See list of languages
wiriseditortoolbar The toolbar definition. general A custom toolbar XML definition without line breaks or the name of a specific toolbar. See this page.
wiriseditormodalwindow Modal window false Open editor on a modal dialog instead of a pop up.

See also the arabic countries table.

(5) Numbers entered with keyboard are replaced by their equivalents in the numerals assigned to the current editor language.

WIRIS cas properties
Key Description Default value Possible values
wiriscascodebase(1) Specifies where is your CAS applet codebase. http://www.wiris.net/ demo/wiris/wiris-codebase/  
wiriscasarchive(1) Specifies the CAS applet file name. wrs_net_en.jar  
wiriscasclass(1) Specifies main CAS applet class. WirisApplet_net_en  
CAS_width Specifies the default CAS applet width. 450  
CAS_height Specifies the default CAS applet height. 400  

 

WIRIS editor 2 properties (old)
Key Description Default value Possible values
wirisformulaeditor codebase(1) Specifies where is your formula editor applet codebase. http://www.wiris.net/ demo/formula/codebase/  
wirisformulaeditorarchive Specifies the formula editor applet file name. wiriseditor.jar  
wirisformulaeditorcode Specifies main formula editor applet class. WirisFormulaEditor  
wirisformulaeditorlang

Specifies main formula editor language. See list of languages

en  

(1)The WIRIS plugin needs to access an external server to get additional resources (formula editor applet, image service and WIRIS cas). See architecture for more information. The default configuration connects to www.wiris.net to get such services. However, these services (not only the plugin) can be hosted in the customer server.

(2)These options are only available on PHP integrations.

(3)These options are only available on Java integrations.

(4)These options must be filled on Java integrations older than 3.50.0 and are not optional.

(5)In plugin versions older than 3.50.0 the default value was image.

Configuration using .NET Web.config

From version 3.50.0 you can alternatively add your custom configuration using your project Web.config file instead of creating a configuration.ini file using the following format:

<appSettings>
  <add key="com.wiris.plugin.<configuration-key>" value="#ff0000"/>
</appSettings>

Configuration using Java web.xml

From version 3.50.0 you can alternatively add your custom configuration using your project web.xml file instead of creating a configuration.ini file using the following format:

<context-param>
   <param-name>com.wiris.plugin.<configuration-key></param-name>
   <param-value><configuration-value></param-value>
</context-param>

JavaScript configuration files

In versions older than 3.50.0, some configuration parameters should be defined directly in the following javascript files.

JavaScript configuration files
Integration File
CKEditor ckeditor/plugins/ckeditor_wiris/plugin.js
FCKEditor fckeditor/editor/plugins/fckeditor_wiris/fckplugin.js
TinyMCE tiny_mce/plugins/tiny_mce_wiris/editor_plugin.js
Xinha xinha/plugins/xinha_wiris/xinha_wiris.js
Generic pluginwiris/integration/integration.js