Rename the id of the text widgets because there can be css-id clashes with

the text field of documents when using TinyMCE in overlays or multiple
instances of TinyMCE on a single page.
This commit is contained in:
Timo Stollenwerk 2012-02-15 17:04:29 +01:00
parent 0535e659ff
commit ac9d4f9584
2 changed files with 10 additions and 0 deletions

View File

@ -9,6 +9,11 @@ Changelog
fullname.
[timo]
- Rename the id of the text widgets because there can be css-id clashes with
the text field of documents when using TinyMCE in overlays or multiple
instances of TinyMCE on a single page.
[timo]
2.1.8 (unreleased)
------------------

View File

@ -94,6 +94,11 @@ class CommentForm(extensible.ExtensibleForm, form.Form):
self.widgets['text'].addClass("autoresize")
self.widgets['user_notification'].label = _(u"")
# Rename the id of the text widgets because there can be css-id
# clashes with the text field of documents when using and overlay
# with TinyMCE.
self.widgets['text'].id = "form-widgets-comment-text"
# Anonymous / Logged-in
mtool = getToolByName(self.context, 'portal_membership')
if not mtool.isAnonymousUser():