ckeditorで、SimplyCastのimagemapが動くまでのメモ

Post date: 2013/08/25 14:53:03

1. 基本的に SimplyCastの ImageMap for CKEditor に従ってインストールした

  • jQuery(jquery.min.js)とSimpleModal pluginであるjquery.simplemodal.1.4.4.min.jsをインストールする必要がある

  • ckeditor/config.jsに、config.extraPlugins = 'imagemap'; を入れた

2. prototype.js と jQueryがぶつかるため、$の処理が必要であった。

prototype.jsと同時に使うには が理解の範囲を越えていたので、imagemapで使われている$をjQueryに変えた。

(ただし単純にすべての$を変えてはならない)。

3. どうしてもHTMLの書き出しで、<map>とcooridate等が出力されない。

参照:Issue #8 Doesnt save map coordinates? に書かれている症状

target.append(map); を$(target.$).after(map.$); に変えればよいということだったが、前述のように$をすべてjQueryにかえてはダメ。

jQuery(target.$).after(map.$); が正解だった。