jsharmony-cms 1.12.2 → 1.12.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -221,6 +221,11 @@ exports = module.exports = function(componentId, element, cms, jsh, componentCon
|
|
|
221
221
|
jsh.async.each(
|
|
222
222
|
$element.find('[data-component]'),
|
|
223
223
|
function(el, el_cb) {
|
|
224
|
+
var $el = jsh.$(el);
|
|
225
|
+
if(!$el.hasClass('initialized')){
|
|
226
|
+
$el.addClass('initialized');
|
|
227
|
+
$el.attr('data-component-id', cms.componentManager.getNextComponentId());
|
|
228
|
+
}
|
|
224
229
|
cms.componentManager.renderContentComponent(el, undefined, el_cb);
|
|
225
230
|
},
|
|
226
231
|
callback
|
|
@@ -898,6 +898,17 @@ exports = module.exports = function(jsh, cms, editor){
|
|
|
898
898
|
continue;
|
|
899
899
|
}
|
|
900
900
|
node.attr('data-component-id', null);
|
|
901
|
+
if(node.attr('class')){
|
|
902
|
+
var cls = node.attr('class').toString().trim().split(' ');
|
|
903
|
+
var newcls = '';
|
|
904
|
+
if(cls.indexOf('initialized')>=0){
|
|
905
|
+
for(var j=0;j<cls.length;j++){
|
|
906
|
+
if(!cls[j] || (cls[j]=='initialized')) continue;
|
|
907
|
+
newcls += cls[j] + ' ';
|
|
908
|
+
}
|
|
909
|
+
node.attr('class', newcls.trim() || null);
|
|
910
|
+
}
|
|
911
|
+
}
|
|
901
912
|
node.empty();
|
|
902
913
|
var newNode = tinymce.html.Node.create('#text');
|
|
903
914
|
newNode.value = String.fromCharCode(0x00A0);
|
package/package.json
CHANGED
|
@@ -4262,6 +4262,11 @@ exports = module.exports = function(componentId, element, cms, jsh, componentCon
|
|
|
4262
4262
|
jsh.async.each(
|
|
4263
4263
|
$element.find('[data-component]'),
|
|
4264
4264
|
function(el, el_cb) {
|
|
4265
|
+
var $el = jsh.$(el);
|
|
4266
|
+
if(!$el.hasClass('initialized')){
|
|
4267
|
+
$el.addClass('initialized');
|
|
4268
|
+
$el.attr('data-component-id', cms.componentManager.getNextComponentId());
|
|
4269
|
+
}
|
|
4265
4270
|
cms.componentManager.renderContentComponent(el, undefined, el_cb);
|
|
4266
4271
|
},
|
|
4267
4272
|
callback
|
|
@@ -6079,6 +6084,17 @@ exports = module.exports = function(jsh, cms, editor){
|
|
|
6079
6084
|
continue;
|
|
6080
6085
|
}
|
|
6081
6086
|
node.attr('data-component-id', null);
|
|
6087
|
+
if(node.attr('class')){
|
|
6088
|
+
var cls = node.attr('class').toString().trim().split(' ');
|
|
6089
|
+
var newcls = '';
|
|
6090
|
+
if(cls.indexOf('initialized')>=0){
|
|
6091
|
+
for(var j=0;j<cls.length;j++){
|
|
6092
|
+
if(!cls[j] || (cls[j]=='initialized')) continue;
|
|
6093
|
+
newcls += cls[j] + ' ';
|
|
6094
|
+
}
|
|
6095
|
+
node.attr('class', newcls.trim() || null);
|
|
6096
|
+
}
|
|
6097
|
+
}
|
|
6082
6098
|
node.empty();
|
|
6083
6099
|
var newNode = tinymce.html.Node.create('#text');
|
|
6084
6100
|
newNode.value = String.fromCharCode(0x00A0);
|