Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
545 views
in Technique[技术] by (71.8m points)

python - 如何在手机屏幕上为“ tinymce”设置小图标尺寸?(How to set small icon size for`tinymce` in mobile screens?)

I added tinymce4-lite in my Django application.

(我在Django应用程序中添加了tinymce4-lite 。)

The size of icons looks the same in bigger screens and small screens.

(在大屏幕和小屏幕上,图标的大小看起来相同。)

Big Screens:

(大屏幕:)

在此处输入图片说明

Small Screens:

(小屏幕:)

在此处输入图片说明

the size of icons are similar in either big and small screens.

(无论大屏幕还是小屏幕,图标的大小都是相似的。)

I want it to be smaller and more elegant in mobile size screens.

(我希望它在移动尺寸屏幕上更小,更优雅。)

This is the configuration in settings.py :

(这是settings.py的配置:)

TINYMCE_DEFAULT_CONFIG = {
    'height': 360,
    'menubar': False,
    'statusbar': False,
    'width': '100%',
    'cleanup_on_startup': True,
    'custom_undo_redo_levels': 20,
    'selector': 'textarea',
    'theme': 'modern',
    'plugins': '''
            textcolor save link image media preview codesample contextmenu
            table code lists fullscreen  insertdatetime  nonbreaking
            contextmenu directionality searchreplace wordcount visualblocks
            visualchars code fullscreen autolink lists  charmap print  hr
            anchor pagebreak
            ''',
    'toolbar1': '''
            fullscreen preview bold italic underline | fontselect,
            fontsizeselect  | forecolor backcolor | alignleft alignright |
            aligncenter alignjustify | bullist numlist table |
            | link image media | codesample | hr visualchars |  
            ''',
    'contextmenu': 'formats | link image',
    'remove_linebreaks': False
}

Please help me with this.

(请帮我解决一下这个。)

Thank you

(谢谢)

  ask by Basir Payenda translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...