return FALSE; $r = well_tag_thread__update(array('id' => $id), $update); return $r; } function well_tag_thread_find($tagid, $page, $pagesize) { $arr = well_tag_thread__find(array('tagid' => $tagid), array('id' => -1), $page, $pagesize); return $arr; } function well_tag_thread_find_by_tid($tid, $page, $pagesize) { $arr = well_tag_thread__find(array('tid' => $tid), array(), $page, $pagesize); return $arr; } ?>Calling another JS library from TINYMCE iframe (tinyMCE.activeEditor.windowManager.openUrl) - Stack Overflow
最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Calling another JS library from TINYMCE iframe (tinyMCE.activeEditor.windowManager.openUrl) - Stack Overflow

programmeradmin2浏览0评论

I've built a File Picker that pops-open via the TINYMCE iframe (using the tinyMCE.activeEditor.windowManager.openUrl call) and this works fine. I've then built a file uploader within this File Picker and I'm using "kartik-v/bootstrap-fileinput" to validate selected files. This works fine when I open my File Picker directly in a browser window but not via the TINYMCE iframe pop-up.

Not sure if this is a TINYMCE issue or a "kartik-v/bootstrap-fileinput" issue but the problem I face is that the validation process never initialises when loaded inside the TINYMCE iframe. I assume I need to make some type of callback to initialise "kartik-v/bootstrap-fileinput"? What's the best way to do this?

As a side note, "kartik-v/bootstrap-fileinput" can be initialised in two ways: directly as a jQuery reference to the file input or by adding class="file" to the input. I'm doing the former, but when I add the class it does seem to load... but my settings and styles are ignored (with a variety of buttons displaying).

I also checked that it's not a Content Security Policy issue by adding the required external "kartik-v/bootstrap-fileinput" files to the appropriate CSP declarations.

Any help much appreciated.

发布评论

评论列表(0)

  1. 暂无评论