Topic on Extension talk:TinyMCE

"|" is not allowed, except within {{...}} or ...

9
Summary by DuncanCrane

Fix added to master

Squeak24 (talkcontribs)

Hi, I am writing some help pages for a number of Wikis. I am using Page Forms and TinyMCE. When I try and show how a table works, when I click on save, I get the following error?

"|" is not allowed, except within {{...}} or [[...]]

Is there a way to overcome this, or is there a way where I can toggle between TinyMCE and WikiEditor when using Page Forms?

Any help is appreciated. Squeak24 (talk) 10:52, 30 May 2019 (UTC)

Squeak24 (talkcontribs)
Squeak24 (talkcontribs)

Sorry, I tried it, and it still comes up with the same error.

Squeak24 (talkcontribs)

Apologies, me again. it seems to be an issue when using the pipe symbol. Is there any way of using this without brackets in TinyMCE.

Yaron Koren (talkcontribs)

Is this in a regular form field, or the "free text"?

Squeak24 (talkcontribs)

Apologies for the delay. It's in a regular form field.

Having had a play this morning, when I insert imagemaps as well I get the same error.

DuncanCrane (talkcontribs)

Hi Squeak24. Sorry for the delay getting back to you. This error message seems to be generated from within PageForms. I wonder if you could try inserting the "|" into the field when the TinyMCE editor is not enabled and see if the same thing happens? You can use the standard template {{!}} of course, as you would when using templates in tables, but this no longer is strictly WYSIWYG. Also I just noticed that when you try and edit the page again after saving then the same problem happens. I'll investigate a bit more and let you know. DuncanCrane (talk) 15:45, 12 June 2019 (UTC)

DuncanCrane (talkcontribs)

Hi again. I've added a patch that hopefully will identify any '|' characters that would cause this error message and convert them to {{!}} before saving. They will still display as a '|' on your wiki page but will be {{!}} in the wiki code. The patch is awaiting review before it is updated to the master branch, but you can see what has changed by looking at the diff on this page. Hopefully that will meet your needs? Thanks also for using this extension and please do let me know if you get any further problems or have any suggestions for improvements. DuncanCrane (talk) 13:06, 13 June 2019 (UTC)

DuncanCrane (talkcontribs)

Patch now merged with master branch DuncanCrane (talk) 10:21, 16 June 2019 (UTC)