Topic on Project:Support desk

How can correctly configure TinyMCE extension?

16
Monocero (talkcontribs)

Hi,

I want to use the TinyMCE editor, I unpacked the directory called mediawiki-extensions-TinyMCE-0.3 and changed the name to TinyMCE-0.3. I uploaded this directory to extensions and added this line to LocalSettings.php: wfLoadExtension( 'TinyMCE' ); Extension:TinyMCE and when I want to create a new page, a blank white page is displayed. I have no idea what to do with it:

"To get TinyMCE working within textarea inputs in forms defined by Page Forms, you must use Page Forms version 4.3 or higher. Then, add "|editor=tinymce" to the field tag for any textarea input that you want to have editable with TinyMCE".

Please help me.

AhmadF.Cheema (talkcontribs)

Rename TinyMCE-0.3 to TinyMCE.

Also, the blank page probably appears everywhere now, and not just on creating a new page.

If this doesn't work, try re-downloading the extension from the more commonly used link: Special:ExtensionDistributor/TinyMCE.

Monocero (talkcontribs)

After renaming the directory, the white page is no longer displayed, but I don't see the new editor, I still see the WikiEditor.

AhmadF.Cheema (talkcontribs)

That's strange.๐Ÿค”

First, can you confirm that TinyMCE is being displayed in Special:Version. Second, open the edit page of any Main namespace article. In the URL, replace edit at the end with tinymceedit.

Does TinyMCE show up here?

If not, try re-downloading the extension from the more commonly used link for your particular MediaWiki core version: Special:ExtensionDistributor/TinyMCE.

Monocero (talkcontribs)

TinyMCE is displayed in the Other section, it is not displayed in the Editors section. CodeEditor and WikiEditor are displayed in the editors section in Special:Version. And in page editing this editor displays correctly, but when I want to create a new page, this editor does not display in the CreatePageUw extension.

AhmadF.Cheema (talkcontribs)
Monocero (talkcontribs)
Monocero (talkcontribs)
Monocero (talkcontribs)

@AhmadF.Cheema

I reported this to the author of the TinyMCE extension, but he is not active.

Topic:V7xlcf4lkim196en

Do you know if there are other interesting creation editors?

AhmadF.Cheema (talkcontribs)

In case you're using the REL1_31 branch for Extension:CreatePageUw, you can try the slightly modified version of the file SpecialCreatePage.php which I created to allow Extension:TinyMCE's integration along the same lines as Extension:VisualEditor.

Using the modified version, you'll need the following in your LocalSettings.php:

$wgCreatePageUwUseTMCE = true;

Note that although I'm pretty sure that there shouldn't be any problems, I have very little knowledge of PHP, therefore, it is possible I could've missed something somewhere.

Monocero (talkcontribs)

I am using the latest version of CreatePageUw 0.0.2. However, I copied all this code from your github and pasted this code into the SpecialCreatePage.php file and pasted this code into the LocalSettings.php file:

$wgCreatePageUwUseTMCE = true;

And now the TinyMCE editor displays correctly when creating a new page in CreatePageUw. Thank you so much for all your help.

Send on this code to @Edward Chernenko promised to implement the patch for his extension if someone created the patch.

Monocero (talkcontribs)

I have one more question, do you know why this editor does not display in "Edit source"?

AhmadF.Cheema (talkcontribs)

This is just how Extension:TinyMCE has been set-up. Extension:VisualEditor does the same - Edit opens up the Visual Editor and Edit source opens up the Wiki Editor.

Also, you don't need to @mention a user who has already replied in the topic.๐Ÿ™„๐Ÿ˜€ If they have replied once, they are likely to already receive automatic notifications for any new replies.

Monocero (talkcontribs)

I understand. Thanks for the clarification.


Forgive me for mentions.ย :)


Can you explain it to me? What exactly should I do? I have no idea.


"You need to make this a Gerrit change, manually test it in MediaWiki 1.27 (old LTS), 1.31 (LTS), 1.33 (since it should be backported), and please don't forget to write an automated test in SpecialCreatePageTest.php so that this is automatically tested, and I'll press the "Merge" button in Gerrit".


LINK

AhmadF.Cheema (talkcontribs)

You'll need to have understanding of PHP to do the above, particularly the tests part. You'll be better off to just use the hack linked above for your local MediaWiki installation.

If you really want this, you'll probably need to have it as paid work. See, Professional development and consulting. This work shouldn't be too complicated for an actual developer.

Monocero (talkcontribs)

This patch works fine so I don't need to check anything more. I don't know PHP, so I don't understand why the author of the CreatePageUw extension states that I should check something and do a test. I understand that he is very busy because he has other projects to implement, but unfortunately I cannot confirm the correctness of this patch by this test because it's complicated for me. Maybe someone else will do this test and confirm that that this patch works correctly and send the changes to Gerrit.