Ticket #11973 (confirmed Bug)

Opened 5 years ago

Last modified 4 years ago

only one tinymce field can be suppressed

Reported by: huub_bouma Owned by: robgietema
Priority: trivial Milestone: 4.x
Component: Visual Editor Version: 4.3
Keywords: Cc: domen@…

Description

A tinymce wysiwyg field can be suppressed by clicking on the link at the bottom of the widget. This generated a link with a tinymce.suppress variable and the field name. This works fine for one field. However, if you have a page with two or more wysiwyg fields, and you want to suppress more than one, it doesn't work.

I think the cause is in the tinymce_wysiwyg_support.pt file. In there is a condition:

    suppressed python:request.form.get('tinymce.suppress') == fname;

This could be changed into something like this: In there is a condition:

    suppressed python:fname in request.form.get('tinymce.suppress', []);

Cheers, Huub

Change History

comment:1 Changed 4 years ago by eleddy

  • Cc domen@… added
  • Status changed from new to confirmed
  • Version set to 4.3

confirmed in tinymce 1.3 and dexterity 2 dev. No fields are suppressed this way. I think a quick fix would be to suppress all if supressing just 1 will be a pita.

comment:2 Changed 4 years ago by kleist

  • Milestone set to 4.x

comment:3 Changed 4 years ago by dkozar

This could be done to use selectors specific to one field and put that in url query string.

Note: See TracTickets for help on using tickets.