Решение:
смотрим проект Промо, компонент Templates
используем надстройку плагина
1 2 3 4 5 | <script src="/scripts/cleditor/jquery.cleditor.min.js" type="text/javascript"></script> <script src="/scripts/cleditor/jquery.cleditor.extimage.js" type="text/javascript"></script> <script type="text/javascript"> $.cleditor.buttons.image.uploadUrl = '/your/custom/upload/path'; </script> |
и делаем хэндлер, который принимает HttpPostedFile file = context.Request.Files[0];
и должен выдать путь
1 2 3 | var path = "your/path/s11.png" var output = String.Format("<div id=\"image\">{0}</div>", path); context.Response.Write(output); |