Jump to content

Recommended Posts

Posted

I'm using TinyMCE and have configured it to only allow a very limited set of features:

UxkQ834.png

At least I thought so. Until a client copied content from the old website and I was surprised to see images in these TEXT-fields...

Turns out that TinyMCE seems to allow basically any HTML in it even if the toolbar is configured differently.

Does anybody know who I would - for example - set up a TinyMCE field that only allows regular text and <strong>bold</strong> text?

Posted

Haven't used it yet but I think this is something you can control in the module’s (or even in the field’s?) settings with the pastefilter whitelist:

214348354_Screenshot2023-05-11at15_12_57.thumb.png.a267943d02e38a6ea1e637ad3f62b9fd.png

  • Like 3
  • Thanks 1
Posted

IS THIS A BUG IN PROCESSWIRE?

Right above the custom json field in tinymce settings there is an area called "markup toggles"  containing a checkbox with 3 options to click.

=> It is not possible for me to uncheck one or all options because every time after saving and reloading the page again the before unchecked boxes are all checked again automatically. Even when I have no strict other filters activated at all.

Posted

Open /wire/modules/Inputfield/InputfieldTinyMCE/InputfieldTinyMCE.module.php and comment lines 289-291 and see if this helps.

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...