![](/img/trans.png)
[英]how to increment a number using jQuery for a footnote plugin in redactor.js
[英]Redactor.js jQuery UI dialog focus issue
在還包含輸入元素的jQueryUI對話框中使用Redactor時,它表現出一些奇怪的行為。
選擇文本並首次單擊“粗體”,“斜體”或“刪除線”按鈕將不會執行預期的操作,而是會將焦點轉移到輸入元素。 再次單擊同一按鈕(再次選擇文本后)將按預期工作。
刪除輸入似乎也可以。
小提琴: http : //jsfiddle.net/Shikiju/sgvdvoL2/1/
使用的瀏覽器:Chrome版本40.0.2214.115 m
<div id="dialog">
<textarea id="editor" value=""></textarea>
<input type="text" value="" onfocus="console.log('Focus on this input')" />
</div>
$(function(){
$('#dialog').dialog({
open: function(){
$('#editor').redactor();
}
});
});
顯然是導致該問題的Jquery UI中的問題。 解決者
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.