From a4631992c340d7a274a018b355747bf1c7106ae9 Mon Sep 17 00:00:00 2001 From: Ivan Tcholakov Date: Wed, 20 Oct 2010 13:02:49 +0300 Subject: [PATCH] Feature #2132 - Online editor: A new configuration option has been added - the path to the file d.svg. --- main/inc/lib/fckeditor/fckeditor.php | 1 + main/inc/lib/main_api.lib.php | 4 +++- tests/main/inc/lib/main_api.lib.test_standalone.php | 6 ++++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/main/inc/lib/fckeditor/fckeditor.php b/main/inc/lib/fckeditor/fckeditor.php index 506b02e976..d1aff5ccb8 100755 --- a/main/inc/lib/fckeditor/fckeditor.php +++ b/main/inc/lib/fckeditor/fckeditor.php @@ -584,6 +584,7 @@ class FCKeditor $config['FlashPlayerVideo'] = api_get_path(TO_REL, FLASH_PLAYER_VIDEO); $config['ScriptSWFObject'] = api_get_path(TO_REL, SCRIPT_SWFOBJECT); $config['ScriptASCIIMathML'] = api_get_path(TO_REL, SCRIPT_ASCIIMATHML); + $config['DrawingASCIISVG'] = api_get_path(TO_REL, DRAWING_ASCIISVG); return $config; } diff --git a/main/inc/lib/main_api.lib.php b/main/inc/lib/main_api.lib.php index 506a10111f..4398c7f28f 100755 --- a/main/inc/lib/main_api.lib.php +++ b/main/inc/lib/main_api.lib.php @@ -203,6 +203,7 @@ define('FLASH_PLAYER_AUDIO', '{FLASH_PLAYER_AUDIO}'); define('FLASH_PLAYER_VIDEO', '{FLASH_PLAYER_VIDEO}'); define('SCRIPT_SWFOBJECT', '{SCRIPT_SWFOBJECT}'); define('SCRIPT_ASCIIMATHML', '{SCRIPT_ASCIIMATHML}'); +define('DRAWING_ASCIISVG', '{DRAWING_ASCIISVG}'); // Forcing PclZip library to use a custom temporary folder. define('PCLZIP_TEMPORARY_DIR', api_get_path(SYS_ARCHIVE_PATH)); @@ -339,7 +340,8 @@ function api_get_path($path_type, $path = null) { FLASH_PLAYER_AUDIO => 'inc/lib/mediaplayer/player.swf', FLASH_PLAYER_VIDEO => 'inc/lib/mediaplayer/player.swf', SCRIPT_SWFOBJECT => 'inc/lib/swfobject/swfobject.js', - SCRIPT_ASCIIMATHML => 'inc/lib/asciimath/ASCIIMathML.js' + SCRIPT_ASCIIMATHML => 'inc/lib/asciimath/ASCIIMathML.js', + DRAWING_ASCIISVG => 'inc/lib/asciimath/d.svg' ); static $is_this_function_initialized; diff --git a/tests/main/inc/lib/main_api.lib.test_standalone.php b/tests/main/inc/lib/main_api.lib.test_standalone.php index a0af9636b0..f362be70ec 100755 --- a/tests/main/inc/lib/main_api.lib.test_standalone.php +++ b/tests/main/inc/lib/main_api.lib.test_standalone.php @@ -42,7 +42,8 @@ class TestMainApi extends UnitTestCase { FLASH_PLAYER_AUDIO, FLASH_PLAYER_VIDEO, SCRIPT_SWFOBJECT, - SCRIPT_ASCIIMATHML + SCRIPT_ASCIIMATHML, + DRAWING_ASCIISVG ); $res = array(); @@ -240,7 +241,8 @@ class TestMainApi extends UnitTestCase { FLASH_PLAYER_AUDIO, FLASH_PLAYER_VIDEO, SCRIPT_SWFOBJECT, - SCRIPT_ASCIIMATHML + SCRIPT_ASCIIMATHML, + DRAWING_ASCIISVG ); $res = array();