Closed (fixed)
Project:
BUEditor
Version:
6.x-2.2
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
20 Jan 2011 at 21:40 UTC
Updated:
21 Jan 2011 at 22:17 UTC
I am using the following code for a columns filter chooser: http://drupal.org/project/columns_filter.
After applying the patch: http://drupal.org/node/564720 , the column filter has two sets of code to insert <!--section> and <!--column> . I using the following chooser.
However, the chooser shows <>section> and <>column>. I strongly believe there would be better way to do this. Please help!
js:
var tags = [['<!--section-->', 'section'], ['<!--column-->', 'column']];
E.tagChooser(tags);
$('a.choice-link', E.quickPop).unbind('click').each(function(i, a) {
$(a).click(function() {
E.replaceSelection(tags[i][0]).focus();
return false;
});
});
Comments
Comment #1
ufku commentedSince those are not regular tags you should set the option "applyTag" to "false".
Replace
E.tagChooser(tags);withE.tagChooser(tags, {applyTag: false});Comment #2
udvranto commentedThat solved the problem! Thanks!