tinymce 편집기에 justboil.com이라는 이미지 업 로더 플러그인을 사용하고 있습니다.
그것은 훌륭하고 이미지를 업로드하여 표시하지만 이미지 경로에 전체 웹 URL을 다음과 같이 추가 할 수 있기를 바랍니다.
* http://www.domain.com/upload_img/img1.jpg *
보다는
* / upload_img / img1.jpg *
다음은 플러그인의 구성 코드입니다.
| -------------------------------------------------------------------
|
| Path to upload target folder, relative to domain name. NO TRAILING SLASH!
| Example: if an image is acessed via http://www.example.com/images/somefolder/image.jpg, you should specify here:
|
| $config['img_path'] = '/images/somefolder';
|
| -------------------------------------------------------------------*/
$config['img_path'] = '/upload_img'; // Relative to domain name
$config['upload_path'] = $_SERVER['DOCUMENT_ROOT'] . $config['img_path']; // Physical path. [Usually works fine like this]
$_SERVER['DOCUMENT_ROOT']
전체 도메인 이름으로 변경하려고 했지만 그렇게하면 이미지가 업로드되지 않습니다.
어떤 아이디어?
tinymce init에서 다음 태그를 설정할 수 있습니다.
relative_urls: false,
remove_script_host: false
그러면 TinyMCE 편집기에 추가 된 모든 항목에 대한 전체 주소가 포함 된 절대 URL이 활성화됩니다.
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다