Skip to content

Commit eb02134

Browse files
committed
Merge branch 'develop'
2 parents 3eb8e22 + 9577f72 commit eb02134

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"base_template": "lib/website/templates/base.html",
3-
"framework_version": "3.13.6",
3+
"framework_version": "3.13.7",
44
"modules": {
55
"Calendar": {
66
"color": "#2980b9",

public/js/wn/ui/editor.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
bsEditor = Class.extend({
1010
init: function(options) {
11-
this.options = $.extend(options || {}, this.default_options);
11+
this.options = $.extend({}, this.default_options, options || {});
1212
this.edit_mode = true;
1313
if(this.options.editor) {
1414
this.setup_editor(this.options.editor);
@@ -100,7 +100,7 @@ bsEditor = Class.extend({
100100
active_toolbar_class: 'btn-info',
101101
selection_marker: 'edit-focus-marker',
102102
selection_color: 'darkgrey',
103-
remove_typography: true,
103+
remove_typography: false,
104104
max_file_size: 1,
105105
},
106106

@@ -130,8 +130,10 @@ bsEditor = Class.extend({
130130
// remove custom typography (use CSS!)
131131
if(this.options.remove_typography) {
132132
var tmp = $("<div></div>").html(html);
133-
// remove style attributes
134-
tmp.find("*").removeAttr("style");
133+
// remove style and font attribute
134+
tmp.find("*")
135+
.removeAttr("style")
136+
.removeAttr("font");
135137
html = tmp.html();
136138
}
137139

0 commit comments

Comments
 (0)