Contentedable on IOS:控制/阻止选择工具栏? [英] Contenteditable on IOS: control/prevent selection toolbar?

查看:95
本文介绍了Contentedable on IOS:控制/阻止选择工具栏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有自己的contenteditable工具栏。在ipad上,当选择文本时,系统会生成自己的弹出式工具栏。这可以防止使用我的工具栏,其中包含的内容不包含在内置的工具栏中。



有没有办法禁用/隐藏/编辑此工具栏的行为?



解决方案

我在 WebKit问题跟踪器,错误147406 ,因为它似乎没有办法控制这一点。

无法完全隐藏工具栏是一个问题,另一个问题是BIU(粗体/斜体/下划线)不应始终启用,因为并非始终启用此格式在wysiwyg编辑器中。例如,在CKEditor中,已接受标签的列表可以通过高级内容过滤器进行配置,因此,如果您禁用< b> /< strong> ,则 B 也不应出现在上下文工具栏中。


I've got my own toolbar for contenteditable. On ipad the system generates its own pop-up toolbar when text is selected. This prevents the use of my toolbar, which has options not included in the built-in one.

Is there a way to disable/hide/edit the behaviour of this toolbar?

解决方案

I reported this issue in the WebKit issue tracker, bug 147406 as it seems there is no way to control this.

The impossibility to hide the toolbar completely is one problem, another one is that BIU (Bold/Italic/Underline) should not be always enabled as not always such formatting is enabled in a wysiwyg editor. For example in CKEditor the list of accepted tags can be configured via Advanced Content Filter), so if one disables <b>/<strong>, B should not appear in the contextual toolbar as well.

这篇关于Contentedable on IOS:控制/阻止选择工具栏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆