0
"삽입 이미지"에 이미 업로드 된 그림을 삽입 할 수있는 방법이 있습니까?Tinymce 및 사전 정의 된 그림
대체 텍스트가있는 미리 정의 된 URL을 배치하는 image-url 필드 옆에 버튼을 생성하는 방법이 있습니다. 이 방법을
<script type="text/javascript">
tinymce.init({
selector: 'textarea',
height: 350,
browser_spellcheck: true,
plugins: [
"advlist autolink lists link image charmap print preview anchor",
"searchreplace visualblocks code fullscreen",
"media table contextmenu paste imagetools"
],
toolbar: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image",
image_caption: true,
file_picker_callback: function(callback, value, meta) {
// Provide file and text for the link dialog
if (meta.filetype == 'file') {
callback('mypage.html', {text: 'My text'});
}
// Provide image and alt text for the image dialog
if (meta.filetype == 'image') {
callback('myimage.jpg', {alt: 'My alt text'});
}
// Provide alternative source and posted for the media dialog
if (meta.filetype == 'media') {
callback('movie.mp4', {source2: 'alt.ogg', poster: 'image.jpg'});
}
}
});
</script>
을 하나의 그림이 가능하지만 한 무리를 추가 할이에 대한 나의 전체 자바 스크립트는 같을 것이다. 어떤 아이디어?