Configuration table

Each integration 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)
Moodle 2.x Atto or TinyMCE (plugin version 3.57 or newer): /filter/wiris/configuration.ini
Atto: /lib/editor/atto/plugins/wiris/configuration.ini (plugin version 3.56 or older)
TinyMCE: /lib/editor/tinymce/plugins/tiny_mce_wiris/tinymce/configuration.ini (plugin version 3.56 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 <pluginwiris_engine.war>/WEB-INF/pluginwiris/configuration.ini
Any editor in Ruby on Rails <wirispluginengine gem path>/configuration.ini

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 and folder properties

Key Description Default value Possible values
wiriseditorsavemode Specifies how are formulas stored in the database. See this page xml(6) 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.
wirisconfigurationclass Name of the class that updates the loaded configuration. This is an advanced feature.

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 MathType parameters.

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. false true, false
wirisaccessibilityenabled Whether to include the alternative text for the formula in the image alt attribute. true true, false

See also the style properties at MathType parameters.

MathType properties

Key Description Default value Possible values
wiriseditorparameters MathType can be initialized with different variables described here: EDITOR PARAMETERS. The variables that are required in MathType are included in wiriseditorparameters in JSON format. default parameters of MathType See list of parameters

MathType Integrations deprecated 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 Custom toolbar.
wiriseditormodalwindow Modal window true Open editor on a modal dialog instead of a pop up.
wiriseditormodalwindowfullscreen Modal window fullscreen false Opens the modal window in fullscreen mode by default.

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.

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>

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>

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