* finish task #1607.

This commit is contained in:
wyd621
2013-07-25 17:05:46 +08:00
parent 24723cf1f0
commit fa39edb4bc
3 changed files with 58 additions and 2 deletions
+15
View File
@@ -291,4 +291,19 @@ class file extends control
$this->view->file = $this->file->getById($fileID);
$this->display();
}
/**
* Ajax replace editor image
*
* @access public
* @return void
*/
public function ajaxEditorImage()
{
if($_POST)
{
$data = $this->file->replaceEditorImage($this->post->editor);
echo str_replace('\"', '"', $data);
}
}
}