How to get file url from ImageManager, FlashManager,DocumentManager,MediaManager?
I use "OnClientCommandExecuting" event to get file url when click Insert.
So:
What about FlashManager,DocumentManager,MediaManager?
Please tell me how to get file url?
result.movie or result.src or result.embed or another?
----
Thanks and Best regards.
I use "OnClientCommandExecuting" event to get file url when click Insert.
Imgscript +=
"<script type=\"text/javascript\">"
;
Imgscript +=
"function changeImageManager(editor, args) {"
;
Imgscript +=
"if (args.get_commandName() == \"ImageManager\" || args.get_commandName() == \"InsertImage\" ) {"
;
Imgscript +=
"var callbackFunction = function (sender, args) {"
;
Imgscript +=
"var result = args.get_value();"
;
Imgscript +=
"$('#"
+ owtxt.ClientID +
"').val(result.src);"
;
Imgscript +=
"result = Telerik.Web.UI.Editor.Utils.getOuterHtml(result);"
;
Imgscript +=
"editor.pasteHtml(result, \"ImageManager\");"
;
Imgscript +=
"};"
;
Imgscript +=
"args.set_callbackFunction(callbackFunction);"
;
Imgscript +=
"}"
;
use: "result.src
" to get Image Url. from imageManager/insertImageWhat about FlashManager,DocumentManager,MediaManager?
Please tell me how to get file url?
result.movie or result.src or result.embed or another?
----
Thanks and Best regards.