rhymix_content class 추가

This commit is contained in:
conory 2020-09-17 20:40:06 +09:00
parent ed7c0ab8bb
commit 8ccfd963b6
23 changed files with 35 additions and 35 deletions

View file

@ -24,7 +24,7 @@
var thisPlugin = this;
// extract target text nodes
this.extractTargets($('.xe_content'));
this.extractTargets($('.rhymix_content, .xe_content'));
$(this.targets).each(function(){
thisPlugin.cast('AUTOLINK', [this]);
@ -67,7 +67,7 @@
},
extractTargets : function(obj) {
var thisPlugin = this;
var wrap = $('.xe_content', obj);
var wrap = $('.rhymix_content, .xe_content', obj);
if(wrap.length) {
this.extractTargets(wrap);
return;
@ -97,7 +97,7 @@
xe.registerPlugin(new AutoLink());
$(document).on('click', '.xe_content a', function() {
$(document).on('click', '.rhymix_content a, .xe_content a', function() {
var $this = $(this);
var href = $this.attr('href');
if(!href || /^(?:javascript|mailto):|#/.test(href)) {