Permalink
Browse files

accommodating both part-* and page_* now in the regex

  • Loading branch information...
1 parent 9458783 commit 9480287c464985db750f067d11e35c05f0556aef @jayroh committed Nov 18, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 public/javascripts/extensions/wym_editor_filter/radiant.wymeditor.js
@@ -450,7 +450,7 @@ function bind_droppability(box) {
var asset_id = element.id.split('_').last();
var tag = '<a href="'+ link.href +'">'+ link.title +'</a>'
}
- if (/page\_([\w\d-]+)/i.test(box.ancestors()[2].ancestors()[1].id))
+ if (/part-|page\_([\w\d-]+)/i.test(box.ancestors()[2].ancestors()[1].id))
var wym_index = editors["part_" + RegExp.$1 + "_content"];
var wymm = WYMeditor.INSTANCES[wym_index];
wymm.insert(tag);

0 comments on commit 9480287

Please sign in to comment.