Skip to content

Commit

Permalink
Merge pull request #52 from plone/navroot-fixes
Browse files Browse the repository at this point in the history
Fix tinymce options merging to be compatible with change in p.a.widgets and p.a.z3cform.
  • Loading branch information
jensens committed Feb 22, 2016
2 parents 0992e2c + 6ef4a03 commit 1d90faf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ New:

Fixes:

- *add item here*
- Fix tinymce pattern-options merging to be compatible with change in
p.a.widgets and p.a.z3cform.
[alecm]



1.10.12 (2016-02-15)
Expand Down
4 changes: 2 additions & 2 deletions Products/Archetypes/Widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -1396,10 +1396,10 @@ def _base_args(self, context, field, request):
).decode('utf-8')

args.setdefault('pattern_options', {})
merged = base_widgets.dict_merge(
options = base_widgets.dict_merge(
utils.get_tinymce_options(context, field, request),
args['pattern_options'])
args['pattern_options'] = merged['pattern_options']
args['pattern_options'] = options
return args

def edit(self, context, field, request):
Expand Down

0 comments on commit 1d90faf

Please sign in to comment.