Closed Nimo-19 closed 3 years ago
The same still happens with Plone 6 coredev
The problem is that both None
and 'None'
result in plaintexteditor being used while the value of the option "Use site default" ends up as None
The fix is to set it as ''
instead in plone.app.users.browser.account.AccountPanelSchemaAdapter
.
@property
def wysiwyg_editor(self):
return self._getProperty('wysiwyg_editor')
@wysiwyg_editor.setter
def wysiwyg_editor(self, value):
if value is None:
# set property that the site-default from the registry is used
# since both 'None' and None result in plaintexteditor
value = ''
return self._setProperty('wysiwyg_editor', value)
A pull-request is coming.
BUG/PROBLEM REPORT
Not shure if this is the right place to put this issue (but I seems this is the right place for not being sure). Please direct me to the correct repo if I am wrong.
What I did:
On a fresh vanilla plone-5.2.2 installation I changed my personal Wysiwyg editor under @@personal-preferences to something other than Use site default saved and changed it back to Use site default. I never changed the sites Default editor.
After that I created a page document.
What I expect to happen:
I expected the Wysiwyg editor in the edit view to be tinyMCE
What actually happened:
No Wysiwyg editor was presented. Only plain HTML code. No Error logged server side as far as I can see. Only a js error in the browsers console:
What version of Plone/ Addons I am using:
plain Plone 5.2.2
Buildout