Skip to content

Commit d2e6afc

Browse files
committed
Merge pull request #11 from Weebly/1.3.2
1.3.2 Updates
2 parents 1115f41 + d3b4dac commit d2e6afc

File tree

3 files changed

+4
-54
lines changed

3 files changed

+4
-54
lines changed

files/js/editor_element.js

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -7,37 +7,12 @@
77
initialize: function() {
88
this.activeIndex = this.settings.get('active_index');
99

10-
this.fixStyles();
10+
this.fixBoxStyleBorders();
1111
this.setupAccordion();
1212
this.setOpen();
1313
this.listenToContentChanges();
1414
},
1515

16-
/**
17-
* Styles are applied by default to editable areas of
18-
* the editor. To make the element looks how you want, some styles
19-
* need to be overwritten.
20-
*
21-
* Classes that are used are:
22-
* - .editable-text
23-
* - .paragraph
24-
* - .ui-wrapper
25-
* - .wsite-image
26-
* - .wsite-*
27-
* - (etc...)
28-
*/
29-
fixStyles: function() {
30-
this.$el.find('.editable-text').each(function(index) {
31-
$(this).attr('style', '');
32-
});
33-
34-
this.$el.find('.element').each(function(index) {
35-
$(this).attr('style', '');
36-
});
37-
38-
this.fixBoxStyleBorders();
39-
},
40-
4116
/**
4217
* Listens to subtree modifications in the content areas
4318
* and resizes them as needed

files/js/element.js

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -7,33 +7,8 @@
77
initialize: function() {
88
this.activeIndex = this.settings.get('active_index');
99

10-
this.fixStyles();
11-
this.setupAccordion();
12-
},
13-
14-
/**
15-
* Styles are applied by default to editable areas of
16-
* the editor. To make the element looks how you want, some styles
17-
* need to be overwritten.
18-
*
19-
* Classes that are used are:
20-
* - .editable-text
21-
* - .paragraph
22-
* - .ui-wrapper
23-
* - .wsite-image
24-
* - .wsite-*
25-
* - (etc...)
26-
*/
27-
fixStyles: function() {
28-
this.$el.find('.editable-text').each(function(index) {
29-
$(this).attr('style', '');
30-
});
31-
32-
this.$el.find('.element').each(function(index) {
33-
$(this).attr('style', '');
34-
});
35-
3610
this.fixBoxStyleBorders();
11+
this.setupAccordion();
3712
},
3813

3914
/**

manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"manifest": "1",
3-
"version": "1.3.1",
3+
"version": "1.3.2",
44
"locale": {
55
"default": "en-us",
66
"supported": [
@@ -11,7 +11,7 @@
1111
{
1212
"path": "files",
1313
"name": "FAQ",
14-
"version": "1.3.0",
14+
"version": "1.3.2",
1515
"settings": {
1616
"config": {},
1717
"properties": [

0 commit comments

Comments
 (0)