简体   繁体   English

CKEditor奇怪的样式更改行为

[英]CKEditor strange style change behavior

If you are going to make a piece of text bold/italic or want to change its font size in CKEditor, you have to select it, but other editors (such as TinyMCE) or even MS Word allow user to apply styles without a need to select the text, ie if no text is selected, current word style (cursor position) is changed. 如果要在CKEditor中将文本变成粗体/斜体,或者想要更改其字体大小,则必须选择它,但是其他编辑器(例如TinyMCE)甚至MS Word允许用户应用样式而无需选择文本,即,如果未选择任何文本,则更改当前单词样式(光标位置)。 Is there any way to perform such an action in CKEditor? 有什么方法可以在CKEditor中执行这样的操作吗? Any option or parameter? 任何选项或参数?

A couple of workaround: 解决方法:

  • If you're using your mouse, just double click the word 如果您使用鼠标,只需双击单词
  • If you want to do it while typing (OSX) Option + Shift + Right arrow (Win) Ctrl + Shift + Right arrow will select the next word. 如果要在键入(OSX)时执行此操作,请按Option + Shift +向右箭头(Win)Ctrl + Shift +向右箭头将选择下一个单词。

Hope this helps, cheers! 希望这会有所帮助,加油!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM