Skip to content

Multiple richtext sections in front end not working #79

@BobRay

Description

@BobRay

A number of users reported this and I can now confirm it.

In NewsPublisher, with multiple richtext textareas (all with class="modx-richtext"), only the first one gets the editor.

I did not see this until the 2.2-compatible version, but other users reported it with earlier versions.

The easiest way to reproduce it is with this NewsPublisher tag:

[[!NewsPublisher?
&initrte=1
&rtcontent=1
&rtsummary=1
&show=pagetitle,introtext,content
]]

Only the introtext field will get the editor.
If you reverse 'introtext' and 'content' in the &show property, the content field will get the editor.

It works fine for me with TinyMCE 4.3.0 in MODX 2.1.5.
Fails with TinyMCE 4.3.1 in MODX 2.2.0.

It may be related to this change (or not) in September (sorry, I don't know the which commit):

if not 'mode' in mce_config:
mce_config['mode'] = 'exact'
if mce_config['mode'] == 'exact':
mce_config['elements'] = final_attrs['id']

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions