LoginSignup
0
0

More than 5 years have passed since last update.

CKEditor上でブラウザのコンテキストメニューを使う

Posted at

覚書です。

やりたいこと

CKeditor上で右クリックしたときにCKeditorのコンテキストメニューではなく、
ブラウザのコンテキストメニューを開くようにしたい。

方法

設定ファイルに追記(デフォルトの設定ファイルならconfig.js)。

NG
config.removePlugins = 'contextmenu';

contextmenuだけremovePluginsしようとしたら下記のエラーが出た。

Plugin "contextmenu" cannot be removed from the plugins list, because it's required by "tabletools" plugin.

tabletoolsプラグインにもcontextmenuプラグインが含まれてるようなので、まとめてremovePluginsします。

OK
config.removePlugins = 'contextmenu,tabletools';

これでブラウザのコンテキストメニューが出るようになりました。

参考

http://ckeditor.com/addon/contextmenu
http://stackoverflow.com/questions/25023478/how-to-remove-contextmenu-in-ckeditor-4-3

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0