推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
python30
V2EX  ›  Python

kindeditor 编辑器获得焦点的时候 不自动滚动到编辑器那里。还需要手动拖动滚动条下拉到编辑器??

  •  
  •   python30 · Jan 7, 2020 · 2098 views
    This topic created in 2317 days ago, the information mentioned may be changed or developed.
     var editor;
            KindEditor.ready(function(K) {
                editor = K.create('textarea\[name="content"\]', {
                    resizeType : 1,
                    allowPreviewEmoticons : false,
                    allowImageUpload : false,
                    items : \[
                        'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
                        'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
                        'insertunorderedlist', '|', 'emoticons', 'image', 'link'\]
                });
            });
        </script>
        
                K('.rep').click(function(e) {
                    var content = '@' + $(this).attr('ckname') + '     ' + '♯';
                    editor.focus();
                       editor.appendHtml(content)
                });
    

    kindeditor 编辑器获得焦点的时候 不自动滚动到编辑器那里。 还需要手动拖动滚动条下拉到编辑器!

    http://kindeditor.net/ke4/examples/simple.html

    这个是哪里设置不对吗?

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1069 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 22:50 · PVG 06:50 · LAX 15:50 · JFK 18:50
    ♥ Do have faith in what you're doing.