javascript - how to integrate TinyMCE 4 with File responsive manager -
i try integrate file responsive manager tinymce 4,after read , follow documentation http://www.responsivefilemanager.com how install , integrate file responsive manager tinymce 4. folder structure become image .
i have copy tinymce/plugins/responsivefilemanager folder tinymce/plugins/. tinymce/plugins/ folder image
i dont configure filemanager/config/config.php, add uploads folder can see in first image above, folder config in filemanager/config/config.php this
'base_url' => ((isset($_server['https']) && $_server['https'] && ! in_array(strtolower($_server['https']), array( 'off', 'no' ))) ? 'https' : 'http') . '://' . $_server['http_host'], 'upload_dir' => '/uploads/', 'current_path' => '../uploads/', 'thumbs_base_path' => '../thumbs/',
in informasi_input.php set tinymce.init
documentation
<script type="text/javascript" src="tinymce/tinymce.min.js"></script> <script type="text/javascript"> tinymce.init({ selector: "#isi",theme: "modern",width: 680,height: 300, plugins: [ "advlist autolink link image lists charmap print preview hr anchor pagebreak", "searchreplace wordcount visualblocks visualchars insertdatetime media nonbreaking", "table contextmenu directionality emoticons paste textcolor responsivefilemanager" ], toolbar1: "undo redo | bold italic underline | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | styleselect", toolbar2: "| responsivefilemanager | link unlink anchor | image media | forecolor backcolor | print preview code ", image_advtab: true , external_filemanager_path:"/filemanager/", filemanager_title:"responsive filemanager" , external_plugins: { "filemanager" : "/filemanager/plugin.min.js"} }); </script>
my html code form
<p> judul <br /><textarea name="judul" id="judul" cols="55" rows="2" required="required"></textarea> </p> <p> pengantar <br /> <textarea name="pengantar" id="pengantar" cols="55" rows="3" required="required"></textarea> </p> <p> isi <br /> <textarea name="isi" id="isi" cols="55" rows="9" required="required"></textarea>
when call php file localhost, text area wihout editor text, image
i try remove code
external_filemanager_path:"/filemanager/", filemanager_title:"responsive filemanager" , external_plugins: { "filemanager" : "/filemanager/plugin.min.js"}
from tinymce.init
function in php file (informasi_input.php) tinymce image without file responsive manager
so whats wrong, there wrong tinymce.init
function code?
with many trial have solve problem, edit 2 line code tinymce.init
function
before:
external_filemanager_path:"/filemanager/", ... , external_plugins: { "filemanager" : "/filemanager/plugin.min.js"
after:
external_filemanager_path:"/cpanel/filemanager/", ... , external_plugins: { "filemanager" : "/cpanel/filemanager/plugin.min.js"
Comments
Post a Comment