ckeditor - 浏览 CKEditor 5 中的不同部分
问题描述
我想在单击时将光标移动到特定的段落/部分particular key
。
如何在 CKEditor 5 中实现这一点
editor.editing.view.document.on( 'keydown', ( evt, data ) => {
if ( data.keyCode == 39 ) {
//move cursor to next paragraph or element with some specific id
}
} );
解决方案
推荐阅读
- python - (Py)OpenCL 同时修改所有线程的值
- c# - XamDataGrid 中的 XamComboBoxField 为空
- jquery - 内联的宏伟弹出窗口!使用 animate.css
- java - 如何构建仅使用 for 循环列出一串阶乘的代码?
- jenkins - 获取上次成功定时器链接的链接
- php - 不确定“'PDOStatement' 的序列化”在哪里发生?
- deno - Deno 的表现
- html - 当不同的窗口大小时,img 标签似乎给出了空白
- teamcity - Teamcity.pullRequest.number 在 Teamcity 中未识别
- javascript - Jest Typescript 类实现 - “...不是函数”