Obtaining the "default" mockup TinyMCE configuration on Plone 5 -


i'm trying configure tinymce inside plone 5 template (so: not z3c.form widget type).

using tinymce mockup patter learn how display rudimentary tinymce configuration (without i18n support). how can "default" configuration applied tinymce when it's loaded default content types plone page?

what i'm looking way right value data-pat-tinymce html attribute.

i think you're asking this...

first, default tinymce pattern configuration:

from zope.component import getmultiadapter import json pattern_options = getmultiadapter(   (context, request, none),   name="plone_settings").tinymce()['data-pat-tinymce'] tiny_options = json.loads(pattern_options) 

then, manipulate tiny_options dictionary , customize needs , provide data-pat-tinymce attribute json.dumps.


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -