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:
parent
0535e659ff
commit
ac9d4f9584
@ -9,6 +9,11 @@ Changelog
|
|||||||
fullname.
|
fullname.
|
||||||
[timo]
|
[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)
|
2.1.8 (unreleased)
|
||||||
------------------
|
------------------
|
||||||
|
@ -94,6 +94,11 @@ class CommentForm(extensible.ExtensibleForm, form.Form):
|
|||||||
self.widgets['text'].addClass("autoresize")
|
self.widgets['text'].addClass("autoresize")
|
||||||
self.widgets['user_notification'].label = _(u"")
|
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
|
# Anonymous / Logged-in
|
||||||
mtool = getToolByName(self.context, 'portal_membership')
|
mtool = getToolByName(self.context, 'portal_membership')
|
||||||
if not mtool.isAnonymousUser():
|
if not mtool.isAnonymousUser():
|
||||||
|
Loading…
Reference in New Issue
Block a user