idocsidocs
چهارشنبه 07 تیر 1391, 20:56 عصر
طبق توضیحات KCFinder که توی این لینک (http://kcfinder.sunhater.com/demos/multiple)ارائه داده، وقتی این کد رو به سایت اضافه کردم، بعد از کلیک باید بتونه فایل منیجر رو باز کنه در صرتیکه این ارور نمایش داده می شه:
tinyMCE.activeEditor is null
tinyMCE.activeEditor.windowManager.open({
<script type="text/javascript">
function openKCFinder(field) {
window.KCFinder = {
callBack: function(url) {
field.value = url;
window.KCFinder = null; } };
window.open('/demo/kcfinder/browse.php?type=files&dir=files/public', 'kcfinder_textbox',
'status=0, toolbar=0, location=0, menubar=0, directories=0, ' + 'resizable=1, scrollbars=0, width=800, height=600' ); }</script>
Selected file: <input type="text" readonly="readonly"
onclick="openKCFinder(this)"
value="Click here and select a file double clicking on it" style="width:600px;cursor:pointer" />
tinyMCE.activeEditor is null
tinyMCE.activeEditor.windowManager.open({
<script type="text/javascript">
function openKCFinder(field) {
window.KCFinder = {
callBack: function(url) {
field.value = url;
window.KCFinder = null; } };
window.open('/demo/kcfinder/browse.php?type=files&dir=files/public', 'kcfinder_textbox',
'status=0, toolbar=0, location=0, menubar=0, directories=0, ' + 'resizable=1, scrollbars=0, width=800, height=600' ); }</script>
Selected file: <input type="text" readonly="readonly"
onclick="openKCFinder(this)"
value="Click here and select a file double clicking on it" style="width:600px;cursor:pointer" />