Extension talk:TinyMCE

Jump to navigation Jump to search

About this board

If you have a bug report please post it On the phabricator site for this extension

Special:Version doesn't show TinyMCE 1.34

1
Deadly Artist (talkcontribs)

First, as in title, the version page shows all extensions except for TinyMCE.

Second, I use Minerva skin and unlike vector, it shows no "Edit source" button and the "Edit" button instead works like "Edit source" button in vector.

Reply to "Special:Version doesn't show TinyMCE 1.34"

Error download version 1.31

1
80.31.196.82 (talkcontribs)

The folder downloaded in version 1.31 is empty, it only contains the git files

Reply to "Error download version 1.31"

TinyMCE very slow to load

14
Leaderboard (talkcontribs)

It takes up to 45 seconds to load when editing larger pages, which is way too long. Is there a way to make it faster? WinCache is installed and MediaWiki's file cache is enabled.

DuncanCrane (talkcontribs)

Hi

I'm sorry I haven't passed this way for a while and hadn't spotted you question earlier. There are two likely reasons for the slow loading. The first is the initial load of the javascript and css files, The second is that your page is causing many calls to the mediawiki api parser to interpret parser functions, template calls etc. In either case 45 seconds does seem pretty extreme.

If it is just the initial load of the editor that is taking the time (ie doesn't vary on page size) then would you check your browser's debugger to identify which modules are causing the delay?

If it is on large pages only (or pages with many parser functions etc) then you may want to try the current beta development version (see posts below for where to get the current development version). This newer version will be released in the next month or two, if you'd prefer to wait for an 'official' release?

The newer version batches up nearly all calls to the mediawiki api parser into a single call executed when loading a page into the editor which removes delays introduced by executing many separate calls to the api. This greatly speeds up loading of such pages. Because of the volume of changes needed to introduce this capability, unfortunately, I'm not able to retrofit it to the older version.

Thank you for trying this extension and for your comments and suggestions.

Leaderboard (talkcontribs)

Hi Duncan,

Yes, it mainly happens on long pages, and occasionally fails to load (returns a blank page) in extreme cases. I'll consider trying your beta and will let you know if I run into further issues.

EDIT: I'm getting an internal error on MW 1.34.2 -

MediaWiki internal error.

Original exception: [ce6f52f30991a13c81416fb0] /wiki/index.php?title=Main_Page MWException from line 164 of D:\public_html\betaarchive\wiki\includes\Hooks.php: Invalid callback TinyMCEHooks::addToViewPage in hooks for OutputPageBeforeHTML

Backtrace:

  1. 0 D:\public_html\betaarchive\wiki\includes\Hooks.php(234): Hooks::callHook(string, array, array, NULL, string)
  2. 1 D:\public_html\betaarchive\wiki\includes\OutputPage.php(1948): Hooks::runWithoutAbort(string, array)
  3. 2 D:\public_html\betaarchive\wiki\includes\OutputPage.php(1960): OutputPage->addParserOutputText(ParserOutput, array)
  4. 3 D:\public_html\betaarchive\wiki\includes\page\Article.php(715): OutputPage->addParserOutput(ParserOutput, array)
  5. 4 D:\public_html\betaarchive\wiki\includes\actions\ViewAction.php(63): Article->view()
  6. 5 D:\public_html\betaarchive\wiki\includes\MediaWiki.php(511): ViewAction->show()
  7. 6 D:\public_html\betaarchive\wiki\includes\MediaWiki.php(302): MediaWiki->performAction(Article, Title)
  8. 7 D:\public_html\betaarchive\wiki\includes\MediaWiki.php(900): MediaWiki->performRequest()
  9. 8 D:\public_html\betaarchive\wiki\includes\MediaWiki.php(527): MediaWiki->main()
  10. 9 D:\public_html\betaarchive\wiki\index.php(44): MediaWiki->run()
  11. 10 {main}

Exception caught inside exception handler: [ce6f52f30991a13c81416fb0] /wiki/index.php?title=Main_Page MWException from line 164 of D:\public_html\betaarchive\wiki\includes\Hooks.php: Invalid callback TinyMCEHooks::modifyTalkPageLink in hooks for SkinTemplateTabAction

Backtrace:

  1. 0 D:\public_html\betaarchive\wiki\includes\Hooks.php(202): Hooks::callHook(string, array, array, NULL)
  2. 1 D:\public_html\betaarchive\wiki\includes\skins\SkinTemplate.php(798): Hooks::run(string, array)
  3. 2 D:\public_html\betaarchive\wiki\includes\skins\SkinTemplate.php(933): SkinTemplate->tabAction(Title, string, boolean, string, boolean)
  4. 3 D:\public_html\betaarchive\wiki\includes\skins\SkinTemplate.php(447): SkinTemplate->buildContentNavigationUrls()
  5. 4 D:\public_html\betaarchive\wiki\skins\chameleon\src\Chameleon.php(165): SkinTemplate->prepareQuickTemplate()
  6. 5 D:\public_html\betaarchive\wiki\includes\skins\SkinTemplate.php(215): Skins\Chameleon\Chameleon->prepareQuickTemplate()
  7. 6 D:\public_html\betaarchive\wiki\includes\OutputPage.php(2574): SkinTemplate->outputPage()
  8. 7 D:\public_html\betaarchive\wiki\includes\exception\MWException.php(180): OutputPage->output()
  9. 8 D:\public_html\betaarchive\wiki\includes\exception\MWException.php(216): MWException->reportHTML()
  10. 9 D:\public_html\betaarchive\wiki\includes\exception\MWExceptionHandler.php(119): MWException->report()
  11. 10 D:\public_html\betaarchive\wiki\includes\exception\MWExceptionHandler.php(195): MWExceptionHandler::report(MWException)
  12. 11 D:\public_html\betaarchive\wiki\includes\MediaWiki.php(558): MWExceptionHandler::handleException(MWException)
  13. 12 D:\public_html\betaarchive\wiki\index.php(44): MediaWiki->run()
  14. 13 {main}

DuncanCrane (talkcontribs)

Hi again and thank you for the quick reply. These two callback functions should be defined in the TinyMCE.hooks.php file in the extension root. Would you check this is the case on your system? If they are, it does look for some reason that your system is not picking these up given the error message.

B.T.W. I should have mentioned, there is a sample of the config for LocalSetting.php in the README file on github and I have just added some notes on how this works.

Please do let me know if you are still getting problems

Many thanks, Duncan

Leaderboard (talkcontribs)

Hi Duncan,

No dice. I couldn't find anything called "TinyMCEHooks::addToViewPage" in the hooks.php file, but can see "addToViewPage", not sure if that's what you are looking for (and also checked on the GitHub copy). I tried both configs, the "barebones" one (with only the extension loaded), and the one with all changes, but both return the same error. Not sure how to go from here.

I also tried to switch to Vector, but that also did not help.

DuncanCrane (talkcontribs)

Hi, yes that's right. The call back functions in 'TinyMCE.hooks.php' are called 'addToViewPage' and 'modifyTalkPageLink'. The 'TinyMCEHooks:', I believe, is to tell mediawiki where to find the call back functions. What is strange is that there are several other hooks defined in 'TinyMCE.hooks.php' which aren't causing errors, so mediawiki is finding and processing the hooks ok, apart from these two.

I tried downloading and testing from Github but all works ok for me (I am using 1.31, but I have colleagues who are currently using on 1.34 successfully).

There are a couple of things you could try. First, it may be a conflict with another extension, so it might be worth disabling other extensions and see if that makes a difference. The second thing I noticed is that the 'addToViewPage' call back doesn't end with 'return true' where all the other call backs do. You might try putting 'return true' at the end of the 'addToViewPage' callback in 'TinyMCE.hooks.php'

Thanks for persevering, Duncan

Leaderboard (talkcontribs)

I tried adding "return true;", but got the same error.

DuncanCrane (talkcontribs)

Hi

Would you mind commenting out the 'disableWikiEditor' function in 'TinyMCE.hooks.php' as follows and let me know what you get?

/*	public static function disableWikiEditor( $editPage ) {
		global $wgTinyMCEEnabled;

		if ( $wgTinyMCEEnabled ) {
			return false;
		}
		return true;
	}*/

Many thanks

Leaderboard (talkcontribs)

Hi Duncan,

Unfortunately, I am getting much the same error:

MediaWiki internal error.

Original exception: [b083c004a5d99b107f880a21] /wiki/index.php?title=Main_Page MWException from line 164 of D:\public_html\betaarchive\wiki\includes\Hooks.php: Invalid callback TinyMCEHooks::addToViewPage in hooks for OutputPageBeforeHTML

Backtrace:

  1. 0 D:\public_html\betaarchive\wiki\includes\Hooks.php(234): Hooks::callHook(string, array, array, NULL, string)
  2. 1 D:\public_html\betaarchive\wiki\includes\OutputPage.php(1948): Hooks::runWithoutAbort(string, array)
  3. 2 D:\public_html\betaarchive\wiki\includes\OutputPage.php(1960): OutputPage->addParserOutputText(ParserOutput, array)
  4. 3 D:\public_html\betaarchive\wiki\includes\page\Article.php(715): OutputPage->addParserOutput(ParserOutput, array)
  5. 4 D:\public_html\betaarchive\wiki\includes\actions\ViewAction.php(63): Article->view()
  6. 5 D:\public_html\betaarchive\wiki\includes\MediaWiki.php(511): ViewAction->show()
  7. 6 D:\public_html\betaarchive\wiki\includes\MediaWiki.php(302): MediaWiki->performAction(Article, Title)
  8. 7 D:\public_html\betaarchive\wiki\includes\MediaWiki.php(900): MediaWiki->performRequest()
  9. 8 D:\public_html\betaarchive\wiki\includes\MediaWiki.php(527): MediaWiki->main()
  10. 9 D:\public_html\betaarchive\wiki\index.php(44): MediaWiki->run()
  11. 10 {main}

Exception caught inside exception handler: [b083c004a5d99b107f880a21] /wiki/index.php?title=Main_Page MWException from line 164 of D:\public_html\betaarchive\wiki\includes\Hooks.php: Invalid callback TinyMCEHooks::modifyTalkPageLink in hooks for SkinTemplateTabAction

Backtrace:

  1. 0 D:\public_html\betaarchive\wiki\includes\Hooks.php(202): Hooks::callHook(string, array, array, NULL)
  2. 1 D:\public_html\betaarchive\wiki\includes\skins\SkinTemplate.php(798): Hooks::run(string, array)
  3. 2 D:\public_html\betaarchive\wiki\includes\skins\SkinTemplate.php(933): SkinTemplate->tabAction(Title, string, boolean, string, boolean)
  4. 3 D:\public_html\betaarchive\wiki\includes\skins\SkinTemplate.php(447): SkinTemplate->buildContentNavigationUrls()
  5. 4 D:\public_html\betaarchive\wiki\skins\chameleon\src\Chameleon.php(165): SkinTemplate->prepareQuickTemplate()
  6. 5 D:\public_html\betaarchive\wiki\includes\skins\SkinTemplate.php(215): Skins\Chameleon\Chameleon->prepareQuickTemplate()
  7. 6 D:\public_html\betaarchive\wiki\includes\OutputPage.php(2574): SkinTemplate->outputPage()
  8. 7 D:\public_html\betaarchive\wiki\includes\exception\MWException.php(180): OutputPage->output()
  9. 8 D:\public_html\betaarchive\wiki\includes\exception\MWException.php(216): MWException->reportHTML()
  10. 9 D:\public_html\betaarchive\wiki\includes\exception\MWExceptionHandler.php(119): MWException->report()
  11. 10 D:\public_html\betaarchive\wiki\includes\exception\MWExceptionHandler.php(195): MWExceptionHandler::report(MWException)
  12. 11 D:\public_html\betaarchive\wiki\includes\MediaWiki.php(558): MWExceptionHandler::handleException(MWException)
  13. 12 D:\public_html\betaarchive\wiki\index.php(44): MediaWiki->run()
  14. 13 {main}

.

DuncanCrane (talkcontribs)

Thanks, that is helpful. With the change suggested, you should have also got a backtrace for Invalid callback TinyMCEHooks::disableWikiEditor.

Is it possible that your wiki is picking up some files from the old version of the TinyMCE extension?

Leaderboard (talkcontribs)

Unlikely, because I first renamed the folder to something like TinyMCE_old before copying.

Edit: I decided to try it on a localhost installation. While that one no longer complains, ... nothing happens when I click Edit (or Edit Source). Only the WikiEditor one appears. And I did set TinyMCE to be enabled in LocalSettings.php.

DuncanCrane (talkcontribs)

Thanks again. It is strange that the edit I suggested didn't result in an additional error message as indicated. This would suggest that mediawiki isn't looking at the file you edited.

With the installation on localhost, if error messaging in the wiki is enabled, you should have the same messages as on you remote site. Would you use the browser debugger to see if there are any javascript errors being reported?

Many thanks

Leaderboard (talkcontribs)

Hi Duncan,

I'm not getting any specific errors (in fact, it's the same as if the old version was being used instead)

VM185:33 This page is using the deprecated ResourceLoader module "jquery.tabIndex".
(anonymous) @ VM185:33
runScript @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:13
execute @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:15
doPropagation @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:7
requestIdleCallback (async)
requestPropagation @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:8
setAndPropagate @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:8
implement @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:20
(anonymous) @ load.php?lang=en-gb&modules=ext.bootstrap.scripts|ext.tinymce.core|jquery%2Coojs-ui-core%2Coojs-ui-widgets|jquery.ui|oojs-ui.styles.icons-editing-advanced&skin=chameleon&version=1c3uj:1
VM185:38 This page is using the deprecated ResourceLoader module "jquery.throttle-debounce".
Please use OO.ui.throttle/debounce instead. See https://phabricator.wikimedia.org/T213426
(anonymous) @ VM185:38
runScript @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:13
execute @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:15
doPropagation @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:7
requestIdleCallback (async)
requestPropagation @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:8
setAndPropagate @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:8
implement @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:20
(anonymous) @ load.php?lang=en-gb&modules=ext.bootstrap.scripts|ext.tinymce.core|jquery%2Coojs-ui-core%2Coojs-ui-widgets|jquery.ui|oojs-ui.styles.icons-editing-advanced&skin=chameleon&version=1c3uj:1
load.php?lang=en-gb&modules=ext.bootstrap.scripts|ext.tinymce.core|jquery%2Coojs-ui-core%2Coojs-ui-widgets|jquery.ui|oojs-ui.styles.icons-editing-advanced&skin=chameleon&version=1c3uj:1235 This page is using the deprecated ResourceLoader module "jquery.ui".
Please use OOUI instead.
mw.loader.implement.css @ load.php?lang=en-gb&modules=ext.bootstrap.scripts|ext.tinymce.core|jquery%2Coojs-ui-core%2Coojs-ui-widgets|jquery.ui|oojs-ui.styles.icons-editing-advanced&skin=chameleon&version=1c3uj:1235
runScript @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:13
(anonymous) @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:14
flushCssBuffer @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:6
requestAnimationFrame (async)
addEmbeddedCSS @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:6
execute @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:14
doPropagation @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:7
requestIdleCallback (async)
requestPropagation @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:8
setAndPropagate @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:8
implement @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:20
(anonymous) @ load.php?lang=en-gb&modules=ext.bootstrap.scripts|ext.tinymce.core|jquery%2Coojs-ui-core%2Coojs-ui-widgets|jquery.ui|oojs-ui.styles.icons-editing-advanced&skin=chameleon&version=1c3uj:1
load.php?lang=en-gb&modules=ext.bootstrap.scripts|ext.tinymce.core|jquery%2Coojs-ui-core%2Coojs-ui-widgets|jquery.ui|oojs-ui.styles.icons-editing-advanced&skin=chameleon&version=1c3uj:973 JQMIGRATE: jQuery.fn.delegate() is deprecated
migrateWarn @ load.php?lang=en-gb&modules=ext.bootstrap.scripts|ext.tinymce.core|jquery%2Coojs-ui-core%2Coojs-ui-widgets|jquery.ui|oojs-ui.styles.icons-editing-advanced&skin=chameleon&version=1c3uj:973
delegate @ load.php?lang=en-gb&modules=ext.bootstrap.scripts|ext.tinymce.core|jquery%2Coojs-ui-core%2Coojs-ui-widgets|jquery.ui|oojs-ui.styles.icons-editing-advanced&skin=chameleon&version=1c3uj:981
bindHover @ load.php?lang=en-gb&modules=ext.bootstrap.scripts|ext.tinymce.core|jquery%2Coojs-ui-core%2Coojs-ui-widgets|jquery.ui|oojs-ui.styles.icons-editing-advanced&skin=chameleon&version=1c3uj:1430
Datepicker @ load.php?lang=en-gb&modules=ext.bootstrap.scripts|ext.tinymce.core|jquery%2Coojs-ui-core%2Coojs-ui-widgets|jquery.ui|oojs-ui.styles.icons-editing-advanced&skin=chameleon&version=1c3uj:1385
(anonymous) @ load.php?lang=en-gb&modules=ext.bootstrap.scripts|ext.tinymce.core|jquery%2Coojs-ui-core%2Coojs-ui-widgets|jquery.ui|oojs-ui.styles.icons-editing-advanced&skin=chameleon&version=1c3uj:1432
mw.loader.implement.css @ load.php?lang=en-gb&modules=ext.bootstrap.scripts|ext.tinymce.core|jquery%2Coojs-ui-core%2Coojs-ui-widgets|jquery.ui|oojs-ui.styles.icons-editing-advanced&skin=chameleon&version=1c3uj:1432
runScript @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:13
(anonymous) @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:14
flushCssBuffer @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:6
requestAnimationFrame (async)
addEmbeddedCSS @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:6
execute @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:14
doPropagation @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:7
requestIdleCallback (async)
requestPropagation @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:8
setAndPropagate @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:8
implement @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:20
(anonymous) @ load.php?lang=en-gb&modules=ext.bootstrap.scripts|ext.tinymce.core|jquery%2Coojs-ui-core%2Coojs-ui-widgets|jquery.ui|oojs-ui.styles.icons-editing-advanced&skin=chameleon&version=1c3uj:1
VM185:39 This page is using the deprecated ResourceLoader module "jquery.ui.button".
Please use the main `jquery.ui` module, not this alias.
(anonymous) @ VM185:39
runScript @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:13
execute @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:15
doPropagation @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:7
requestIdleCallback (async)
requestPropagation @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:8
setAndPropagate @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:8
markModuleReady @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:13
runScript @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:13
(anonymous) @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:14
flushCssBuffer @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:6
requestAnimationFrame (async)
addEmbeddedCSS @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:6
execute @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:14
doPropagation @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:7
requestIdleCallback (async)
requestPropagation @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:8
setAndPropagate @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:8
implement @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:20
(anonymous) @ load.php?lang=en-gb&modules=ext.bootstrap.scripts|ext.tinymce.core|jquery%2Coojs-ui-core%2Coojs-ui-widgets|jquery.ui|oojs-ui.styles.icons-editing-advanced&skin=chameleon&version=1c3uj:1
VM185:39 This page is using the deprecated ResourceLoader module "jquery.ui.dialog".
Please use the main `jquery.ui` module, not this alias.
(anonymous) @ VM185:39
runScript @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:13
execute @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:15
doPropagation @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:7
requestIdleCallback (async)
requestPropagation @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:8
setAndPropagate @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:8
markModuleReady @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:13
runScript @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:13
(anonymous) @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:14
flushCssBuffer @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:6
requestAnimationFrame (async)
addEmbeddedCSS @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:6
execute @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:14
doPropagation @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:7
requestIdleCallback (async)
requestPropagation @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:8
setAndPropagate @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:8
implement @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:20
(anonymous) @ load.php?lang=en-gb&modules=ext.bootstrap.scripts|ext.tinymce.core|jquery%2Coojs-ui-core%2Coojs-ui-widgets|jquery.ui|oojs-ui.styles.icons-editing-advanced&skin=chameleon&version=1c3uj:1
VM185:39 This page is using the deprecated ResourceLoader module "jquery.ui.draggable".
Please use the main `jquery.ui` module, not this alias.
(anonymous) @ VM185:39
runScript @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:13
execute @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:15
doPropagation @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:7
requestIdleCallback (async)
requestPropagation @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:8
setAndPropagate @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:8
markModuleReady @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:13
runScript @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:13
(anonymous) @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:14
flushCssBuffer @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:6
requestAnimationFrame (async)
addEmbeddedCSS @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:6
execute @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:14
doPropagation @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:7
requestIdleCallback (async)
requestPropagation @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:8
setAndPropagate @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:8
implement @ load.php?lang=en-gb&modules=startup&only=scripts&raw=1&skin=chameleon:20
(anonymous) @ load.php?lang=en-gb&modules=ext.bootstrap.scripts|ext.tinymce.core|jquery%2Coojs-ui-core%2Coojs-ui-widgets|jquery.ui|oojs-ui.styles.icons-editing-advanced&skin=chameleon&version=1c3uj:1
VM185:39 This page is using the deprecated ResourceLoader module "jquery.ui.resizable".
Please use the main `jquery.ui` module, not this alias.
DuncanCrane (talkcontribs)

Ok, as far as I can see, on your remote site your wiki appears to be using the wrong version of TinyMCE.hooks.php. I believe this because you didn't get a message 'Invalid callback TinyMCEHooks::disableWikiEditor' when you made the change I suggested.

What I suggest you do now is:

1. delete all versions of the TinyMCE editor form your system,

2. disable other extensions you have installed

3. re download and install the TinyMCE 5 branch using link https://github.com/duncan-crane/TinyMCE/archive/Upgrade-to-TinyMCE-5.zip

4. flush all caches using whatever mechanism applies to your browser

5. put the browser into it's debug mode

6. load up your wiki

If you still get the error, then would you let me have the details of all the versions of what is loaded in your wiki (using the special:version page)?Thanks

Reply to "TinyMCE very slow to load"
2600:2B00:7208:5500:C82A:E64A:7981:A87A (talkcontribs)

Hello -- New user to MediaWiki so I'm sure this is related to my own errors, yet I could use some help.


After installing the TinyMCE extension, I received this error:

Original exception: [Xi8Zvty3mPSGkoC@gJrWrQAAAAs] 2020-01-27 17:11:26: Fatal exception of type "UnexpectedValueException"

Exception caught inside exception handler.

Set $wgShowExceptionDetails = true; at the bottom of LocalSettings.php to show detailed debugging information.


Thanks for any help!

Nicholas

DuncanCrane (talkcontribs)

Hi Nicholas

Welcome to mediawiki and thank you for (trying to) use this extension. Also apologies for the delay, for some reason I wasn't notified :-(

I wonder if you tried adding the following line to the LocalSettings.php file, which is located in the root directory of your mediawiki installation?

$wgShowExceptionDetails = true; 

This will cause extra debugging information when errors are encountered.

You can also add the following lines to get more error information. These lines can be removed again once everything is working properly.

error_reporting( -1 );
ini_set( 'display_errors', 1 );

From what you have told me so far, the problem may relate to a mismatch of software versions. If you navigate to the special pages page (a link can be found on the menu panel to the left) and locate the versions link on that page, you will be given a lsit of all the various modules loaded including their versions. If you can let me have that information, it will help with identifying the problem.

Many thanks

Duncan

TinyMCE doesn't show any of the underlying text on some pages

3
86.135.35.77 (talkcontribs)

I’ve installed tinyMCE on my installation but for several pages it just doesn’t work.  I get a delay, then the tinyMCE menu, but then no text shows up below it for editing (even though there is text, and I can see it by selecting “Edit source” instead of “Edit” (which invokes tinyMCE).  I’m running mediawiki 1.31.0, and my server is running 7.3.13 (which I can’t change).  Any ideas?

FYI I installed tinyMCE by going to my extensions folder and doing:

git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/TinyMCE.git

It completes with no errors.

I then put:

wfLoadExtension( 'TinyMCE' );

in my LocalSettings.php

Suggestions?  A bug?

-Tom


DuncanCrane (talkcontribs)
DuncanCrane (talkcontribs)

Hi Tom

Thank you for trying this extension.  Andre's advice is good, however, I recreated your environment (except I'm using PHP 7.1.33) and found that it should work.  Unfortunately I was unable to reproduce your problem although I tried a number of complex pages that I use as test cases.

Problems similar to this haver occurred in the past.  Usually it is some combination of wiki-markup that breaks the code which parses it into html (eg. a bug as you say).  If you go into your browser's 'debug' mode, usually by right clicking and selecting 'inspect', it should display if an error has occurred and in which bit of the code.

If you let me know if there is an error and where in the code it is happening that will help me to find a solution.  Even better, if you can isolate the wiki-markup that gives rise to the problem that will be even more helpful.

Kind regards

Duncan

Bug(s) with image uploads through TinyMCE?

14
WhitWye (talkcontribs)

The page mentions setting perms for this, but not which perms, where. On a wiki where MediaWiki's "Upload File" works fine for a png, TinyMCE's "Upload/edit file" button, after selecting a file from the local workstation, complains "I'm sorry, you have encountered an unknown error trying to upload this file. If this error persists please cntact your systems administrator". There's nothing in the Apache log -- no error at all. And of course I'm the administrator.


What does happen, instead of the image being uploaded, is this appearing on the page where it was to go, in double square brackets "undefined|right|middle|thumb". I haven't found a way yet to get more useful debugging data out of it.

DuncanCrane (talkcontribs)

Hi

Thank you for using this extension and also reporting this problem. There are in fact two problems, the second of which (the wiki code for a 'file' link being inserted into the editor rather than the image displaying) is a coding error and I will upload a fix for this the the master branch on gerrit over the next day or so. To solve the first problem with the upload, however, I will need some more information.

If the error was to do with permissions, files sizes, valid file types, duplicates etc, then the extension would report these explicitly. This error message is caused by the mediawiki API reporting a 'success' code for the file upload but returning an undefined result without either an error or warning response. The result should be an external URL to where your wiki has stored the file and also the link to the uploaded file to use from within a wiki page . As a result of the lack of information from the mediawiki API, the extension is unable to report further details of the error - which is frustrating I know!

However, perhaps with a bit more information, we should be able fix this. The following would help me to try and isolate the problem, which I haven't be able to reproduce, sorry.

  • the name of the file you were trying to upload (occasionally if there are non latin characters this can cause problems)
  • would you check the 'files' special page to see if the file was uploaded successfully (sometimes the upload happens anyway)
  • would you let me know the versions of software and extensions you are using from the 'versions' special page
  • would you let me know if there were any warnings and errors when you were using the upload dialog before you got the error message
  • if you are able, can you add the following to your 'localSetting.php' file after the '<php' tag as it will get mediawiki to report any errors it encounters during an upload to the web browser.
error_reporting( -1 );
ini_set( 'display_errors', 1 );

Many thanks, Duncan

WhitWye (talkcontribs)

Hi Duncan,


Appreciate the help. I tried with a number of .png and .jpg files, all with only Latin characters. Most were quite small. The files did not show up on the "Files" special page. There were no warnings or errors using the upload dialog before the message. I already tried those error reporting settings, and nothing more showed from that.

The Version page shows as installed software:

MediaWiki 1.35.0-alpha

PHP 7.2.24-0ubuntu0.18.04.2 (apache2handler)

MariaDB 10.1.43-MariaDB-0ubuntu0.18.04.1

ICU 60.2

Installed Extensions shows nothing, which is obviously wrong, since TinyMCE is running (via "wfLoadExtension( 'TinyMCE' );"). Should I back off from 1.35.0-alpha? I was starting with that to try to get Visual Editor running to test it, but that project is just a mess at present. TInyMCE has the great advantage of not requiring such a bloated stack.

A separate question: Can the vertical space taken by the TinyMCE window be set larger? With image uploading fixed, and that expanded, our users here (internal company wiki) should be happy with the upgrade from a much older MediaWiki with CKEditor -- which allows dragging the editing windows to arbitrary vertical sizes, but otherwise is not as polished.

DuncanCrane (talkcontribs)

Hi

I think the problem may be with the 1.35 alpha as that is a pre-production, pre-release version as I understand it (see Version lifecycle#Extension lifecycle management). I suspect it is not stable enough yet for anything like production work and it is quite likely there are changes to the API and underlying software versions of tools like PHP. I believe there are users of TinyMCE on versions of mediawiki up to 1.34, but personally I do most of my development and testing on 1.31 which is the current Long Term Stable (LTS) version, which should be supported until June 2021.

To change the displayed height of the editor window there is a setting in the MW_tinymce.js file in the extension root directory which can be used to reset the height:

autoresize_max_height: 400,

I'm currently working on a new version which I hope will replace the current beta version and I will consider if I can make the editor window user re-sizeable in that. As you'll appreciate, I want to focus new feature development on that version rather than the current version :-)

The TinyMCE extension is very much intended as a simple to implement and familiar to use WYSIWYG editor interface, yet with a rich feature set, which will I hope will be even more evident in the next version so I'm glad you are trying it out. Do let me know if you need any further help. I will try to get a patch for the other problem you had uploaded to the Git master over the weekend.

Many thanks

Duncan

WhitWye (talkcontribs)

Hi Duncan,

Same behavior on 1.34. I'll fall back to 1.31.6 now -- was hoping for 1.34 since 1.31.6 will require bringing in the old DB again.

Whit

WhitWye (talkcontribs)

Hi again,

Exactly the same behavior from 1.31.6. It did, on one file, give proper notice that it already existed. But for a new upload, it just goes right to the generic error message. Nothing logged anywhere.

Whit


WhitWye (talkcontribs)

Ah, learned something: It's not enough to change the version, but for some reason Apache must be restarted to avoid partial inheritance -- or is it the browser caching script, or session management on the server? So now with 1.31.6 I get to a new error:

I'm sorry, you have encountered the following warnings trying to upload this file:

You have received the warning thumb

Please correct the errors and try again

At least it's the thumb and not the finger. But what can that mean?

Best,

Whit

WhitWye (talkcontribs)

On another try I get to the point where, within double square brackets, is the code that should be there if this were the wiki code version of the page:

File:Bluesteal.png|right|middle|thumb -- which then does pull the file in once saved, and displays the image during a subsequent edit, which it did not do on first insertion. Definitely progress. Is this overall the expected behavior?

Thanks again,

Whit

WhitWye (talkcontribs)

Once a file is on the page, going in again to edit its properties by double clicking on it results in adding a duplicate of the file to the page. Is this to be expected?

Whit

WhitWye (talkcontribs)

Firefox duplicated the image when trying to move/resize it on the page. Chrome leaves it single, but it picks up extra code when saved, which is also a problem in Firefox (both Linux here). First there's a font spec in angle brackets, then also in angle brackets:

img src="" srcset="/wiki/images/5/56/Bluesteal.png 1.5x" alt="Bluesteal.png" width="697" height="653" data-mce-src="images/thumb/5/56/Bluesteal.png/300px-Bluesteal.png"

The "src =" part actually has the image displayed between the quotes. The angle brackets are actually the HTML codes to display those, rather than really being angle brackets at the code level.

Should I take it that TinyMCE 4 just isn't good with images? Is 5 improved in this?

Whit

DuncanCrane (talkcontribs)

Hi Whit

Sorry for delay - for some reason I wasn't getting notified of your further questions :-{.

As for inserting the wiki code when first uploading - did you manage to download the patch that I mentioned earlier? You can find it here.

It's been a while since I used the image upload extensively so some other changes may have upset it but it should work better than you are experiencing. It can be a little convoluted, in part because of the checks and warning mediawiki makes, but it shouldn't be crashing or dumping html code into the page. Your additional information ios very helpful so I'll investigate a little more.

B.T.W. did you retry mediawiki 1.34 after you resolved the caching problem? I know there are other users using 1.34 on a regular basis so you should be able to use it O.K. Caching can cause issues when the code changes, as you found, both at the client and server end so if you change any code (js or css) it's often advisable to purge the caches. To do this at the client end I often find it best to go into the browser's 'inspect/debug' mode and then follow the recommended procedure to purge the cache and reload the page.

Many thanks

Duncan


WhitWye (talkcontribs)

Duncan,


Much appreciate your help and efforts here. Meanwhile I've finally got Visual Editor working, so I'm on to trying to work out why CirrusSearch and friends fail to work by date order in 1.34. Hope to see your work with TinyMCE keep it in contention, as Visual Editor is overly much in many contexts, and underdocumented.


Whit

DuncanCrane (talkcontribs)

Thanks Whit, I should be able to get this working as it was before. If you check back I will post my progress here.

DuncanCrane (talkcontribs)

Hi Whit As I suspected an earlier edit I had made had caused this problem :-( I've submitted some changes that should fix the problem so, should you wish to try TinyMCE at some time again, it should now work as you might expect. The changes are waiting review before they are merged to the master branch but if you (or anyone else for that matter) need to see what the changes are you can get a patch at https://gerrit.wikimedia.org/r/#/c/mediawiki/extensions/TinyMCE/+/569318/ Many thanks Duncan

12.51.231.210 (talkcontribs)

I was able to add the image to the page, but I cannot move it. It always display on the right side of the screen. Please assist.

Wiki Media: 1.34

Tiny MCE: 1.34

DuncanCrane (talkcontribs)

Hi

Thank you for trying out this extension.

You can either change the layout when you load the picture (if you use the dialog rather than drag/drop) or after it has been loaded.

When initially loading, the layout options are on the second tab of the dialog which is labelled 'image' and there you can set the horizontal alignment. If you want to change the layout later, you can do this by double clicking on the image, which should bring up the dialog again. In this case the layout options are on the front of the dialog.

The default behaviour in mediawiki is to display an image on the right, which is why the extension uses this default too. Hopefully the instructions above will resolve your issue but do let me know if you need more help?

Many thanks

Duncan

12.51.231.210 (talkcontribs)

Thanks, Ducan! It will be great if we can drag the image around like Visual Editor. This tool works great so far, easy to install, thank you!


12.51.231.210 (talkcontribs)

I can copy and paste text with hyperlink, the edit mode look great, but after saving, the hyperlink has <a href" added and it's no longer the hyperlink. For example, if I search ABC from google then copy the link, from edit I will see ABC Home Page - ABC.com and it's clickable, after saving, it shows <a href="and the website" ping="/url?sa=t&source=web&rct=j&url= and the link to the page here, MediaWiki consider this as spam so I have to type this line">ABC Home Page - ABC.com</a>

Is it possible to make copy and paste work? insert one by one will take a long time for multiple links. Thank you!

12.51.231.210 (talkcontribs)

Same issue with email. It adding </ and follow by the email>

12.51.231.210 (talkcontribs)

When I use the hyperlink option, it adds %EF%BB%BF to the end of the link after clicking on the link, that makes the website inaccessible.

12.51.231.210 (talkcontribs)

Also using the hyperlink option for link has underscore, it adding the text after underscore to the link title

DuncanCrane (talkcontribs)

Hi, I think this may be related to the other paste problem you noted below. I've been working on this and think I have it working now, both for the original problem and the one you note above. Rather than just patch things up, I've tried to make things a bit more robust. which is why it's taken a few days. Now all I have to do is remember how to upload this to mediawiki :-(

It always seem to take me a day to get the process in Gerrit working!

Many thanks, Duncan

DuncanCrane (talkcontribs)

I've just done a bit more testing and came across a couple of other strange things with paste/drop so it will be another day or so to get this done, sorry.

DuncanCrane (talkcontribs)

Hi there again.

I've now added a patch to Gerrit that I hope addresses the link problem above and also bugs with the drag/drop cut/paste auto upload of images.

This will need to be reviewed and accepted before it is applied to the 'master' branch but if you need/want it quicker you can download the patch here

https://gerrit.wikimedia.org/r/#/c/mediawiki/extensions/TinyMCE/+/579865/

Do let me know if you've any other comments or suggestions

Kind regards

Duncan

DuncanCrane (talkcontribs)

Hi

This patch has now been merged into the master branch if you'd like to try downloading again.

Kind regards

Duncan

TinyMCE not used when creating new discussion page or adding new topic

5
Summary by DuncanCrane

Problem resolved

X-Savitar (talkcontribs)

When TinyMCE is installed, upon trying to create a new discussion page for any page or creating new discussion topics, TinyMCE editor is not used. Is there something I'm missing or is this somehow configurable?

Is it possible to make all edit actions default to `tinymceedit`?

NOTE: When creating a new discussion page, the action is `edit` and when creating a new topic, the action is also `edit` and not `tinymceedit`. Thanks!

DuncanCrane (talkcontribs)

Hi

I'm really pleased you are giving this extension a try. I can certainly do some investigation, and consult with those who know more than I, to see how this might be done.

You may also be interested that I'm very close to releasing a major upgrade to the extension which makes use of the latest versions of TinyMCE and also provides improved coverage of wiki text markup. If you are interested in using the extension long term it might be worth you using this new version, which can be found here https://github.com/duncan-crane/TinyMCE/tree/Upgrade-to-TinyMCE-5.

If you do try this, be sure to download the 'Upgrade to TinyMCE 5' branch and not the 'master' branch.

I'll post something here on your question about Talk pages when I have some more information

Kind regards

Duncan

DuncanCrane (talkcontribs)

Hi Again

My friend Yaron has created a patch so that the TinyMCE editor will load when creating new Talk pages and adding New Topics. It should be in the latest master copy in Gerrit if you'd like to try again?

Please do let me know if you've any other questions.

Many thanks.

Duncan

X-Savitar (talkcontribs)

Hi @DuncanCrane, thank you for the update and thanking Yaron for the fix.

I've tried it out and it works as expected. Thank you and Yaron for working on this :). Hence, this can be marked as resolved.

A quick question, when will this be released for consumption by other users? Any plans?

DuncanCrane (talkcontribs)

Hi @X-Savitar

I am currently working with some others on an extensive programme of testing. Provided the testing doesn't throw up anything that requires a major development effort, I hope to release the next version by the end of July.

TinyMCE not showing/loading Page for editing

12
Xaase (talkcontribs)

I got TinyMCE installed and its pretty amazing and fairly easy to use, BUT somehow some pages are not loading into the editor or not showing.

Is there a limit on how big a page should be in order to get loaded?

I also have a cache set up,, could that maybe a problem?


DuncanCrane (talkcontribs)

Hi

It's great you are giving the extension a try and thank you for raising this question.

This occasionally happens when the editor encounters a '|' characters in the text. Normally this is when people are using it in forms, but I have known it to happen elsewhere. Would you check the text and see if there are any '|'s and try 'escaping' them by using the {{!}} template instead?

If this doesn't work, the if you can let me have the wiki text content of the page, I can try and reproduce the problem.

You may also be interested that I'm very close to releasing a major upgrade to the extension which makes use of the latest versions of TinyMCE and also provides improved coverage of wiki text markup. If you are interested in using the extension long term it might be worth you using this new version, which can be found here https://github.com/duncan-crane/TinyMCE/tree/Upgrade-to-TinyMCE-5.

If you do try this, be sure to download the 'Upgrade to TinyMCE 5' branch and not the 'master' branch.

The new version is also fixes the '|' issue mentioned earlier so it may be a solution to your problem too.

Please do let me know how you get on

Kind regards

Duncan

Srikanth 4455 (talkcontribs)

Hi Duncan,

I have installed the TinyMCE from Upgrade-to-TinyMCE-5 branch but is gives error on SpecialPages and also no tool bar in TinyMCE edit option on pages.

SpecialPages Error:

[e943dd9c63c146a8353747db] /index.php/Special:SpecialPages Error from line 382 of /var/www/devwiki/includes/specialpage/SpecialPageFactory.php: Class 'TinyMCEUploadWindow' not found

Backtrace:

#0 /var/www/devwiki/includes/specialpage/SpecialPageFactory.php(428): SpecialPageFactory::getPage(string)

#1 /var/www/devwiki/includes/specials/SpecialSpecialpages.php(53): SpecialPageFactory::getUsablePages(User)

#2 /var/www/devwiki/includes/specials/SpecialSpecialpages.php(42): SpecialSpecialpages->getPageGroups()

#3 /var/www/devwiki/includes/specialpage/SpecialPage.php(565): SpecialSpecialpages->execute(NULL)

#4 /var/www/devwiki/includes/specialpage/SpecialPageFactory.php(568): SpecialPage->run(NULL)

#5 /var/www/devwiki/includes/MediaWiki.php(288): SpecialPageFactory::executePath(Title, RequestContext)

#6 /var/www/devwiki/includes/MediaWiki.php(861): MediaWiki->performRequest()

#7 /var/www/devwiki/includes/MediaWiki.php(524): MediaWiki->main()

#8 /var/www/devwiki/index.php(42): MediaWiki->run()

#9 {main}


Regards,

Sri

DuncanCrane (talkcontribs)

Hi Sri

I'm sorry that didn't work and thank you for trying. The Special pages issue was pointed out to me earlier in the week and a new release will be posted later today or tomorrow. I will also add some notes on configuration to the GitHub summary page as I think those on the mediawiki extension page may not apply to the new version. Sorry for any inconvenience.

Kind regards, Duncan

Srikanth 4455 (talkcontribs)

Hi Duncan,

I have downloaded latest files from Upgrade-to-TinyMCE-5 but still the issue with Special:Pages and TinyMCE Tool bar didn't resolve.

I have placed the TinyMCE folder under extension folder and made entry in LocalSettings.php as per README File. Can you let me know if there is anything I have missed.

DuncanCrane (talkcontribs)

Hi Sri

Thank you for persevering and I'm sorry that didn't work. I checked my latest release to that branch and somehow I didn't include the fix for the special pages, so I really am sorry.

I will submit another release over the next day or so, but you could try removing the following line from the extension.json file in the root directory of the TinyMCE extension. You'll find it on or around line 175.

"SpecialPages": {

"TinyMCEUploadWindow": "TinyMCEUploadWindow"

},

I suspect this bug would also stop the toolbar loading but would you let me know if it does not.

Srikanth 4455 (talkcontribs)

Hi Duncan,

Thanks for the fix.

Both Special Pages and Tool bar issue resolved by updating file from the Upgrade-to-TinyMCE-5.

But in TinyMCE edit there is no underlying text coming.

Can you check please if this case is happening at your end also.

DuncanCrane (talkcontribs)

Hi Sri

Sorry for the delay getting back to you. Would you check using your browser debug feature to see if there are any Javascript errors being reported?

Kind regards

Duncan

Xaase (talkcontribs)

thanks for your reply.

I looked into some of the cases were the editor did not load the texts. There is no "loose" "|".

It seems the "|" to construct a table is ok ?! When I write the contents of a tablerow next to each other, like this: "| cell 1 || cell 2 || cell 3", is that different for the editor to load, than writing the tablerows underneath each other?

Besides that I actually found which elements causes the editor not to load:

1. I use the extension Extension:Tabber and if I put all my contents directly inside the tabs, the editor will not load, it doesn't matter how much self written text is in the tab. But if I put another page (as an include) in the tabber, the editor will load.

What the editor does when its actually loading the tabbers, it puts everything inside the "<tabber>" tags in the "wikimagic" function

2. when I divide a page in columns via wiki markup and I than try to edit just a section of the page containing a part of that markup the editor will also not load. when I load the entiere Page its fine. I guess this is due to what you assumed with the "|" character and the editor doesn't recognise this as a part of the page deviding.


Another wierd thing happens by using the wiki markup "<nowiki>" and "#" inside it. That creats very interesting result in the editor. I solved that by using "<source>" instead. I guess that will be solved with your upcoming update?

I tried to install the current development of the update 5, but somehow its not working at all. I will wait till its fully released.

DuncanCrane (talkcontribs)

Thanks, that's very helpful. I'm not familiar with extension tabber so I will have to look into that. I suspect you may be right about the '|' treatment. I have to admit the 'old' version was mainly good for simple to medium complexity wiki markup. The new version has been tested against a much fuller set of markup (based on mediawiki 'help' pages and seems to handle things better.

I realised now that I should provide some details about configuring the extension on the GitHub pages as it has changed in some respects. I think the new version will be released before the end of July, but I will put some notes in GitHub in case you wish top try again.

Xaase (talkcontribs)

I tested a bit more with that issue and came to the following observation:

the "wikimagic" seems to have a maximum of characters (?) but I couldn't pin point exactly where the limit is ...


DuncanCrane (talkcontribs)

Hi and thank you for trying again.

I'm sorry this isn't proving straightforward to find a solution. Would it be possible for you to use the debugger or inspect function on your browser to see if any errors are being reported? This might help identify the problem.

I looked at the Tabber extension. The way that the TinyMCE extension works is that anything between the <tabber> tags, or {{ }}, is sent to the mediawiki api for processing and the equivalent html returned to the editor in a protected block that can only then be edited using the source editor menu options.

This is a general feature for all mediawiki templates, tags, parser functions etc. because they are instructions to mediawiki that aren't understood by a standard html interpreter. I should say the newer version is more flexible as it will allow editing of html embedded in the wiki code, whereas the old version treated it in the same way as other mediawiki tags.

If you need the TinyMCE extension to interpret the code within the <Tabber> tags to create html that TinyMCE itself can edit, currently that would probably require a plugin to be created (even in the latest version). Even then it may be difficult to recreate the tabbed structure within the editor window.

There may be some other possibilities which would need testing, including:

  • swapping to using the Headertabs extension, although in the TinyMCE editor the page is displayed as a page with a number of headings rather than tabbed. When saved mediawiki will display the page with tabs.
  • the new version will have a capability to edit areas of the page in situ without selecting the edit tab, which may let you edit the text between the tabs directly.
  • I'm also working on a plugin for the TinyMCE editor which will interpret templates, tags and parser functions creating forms that allow the user to edit parameters that are passed to these structures.

Many thanks

Duncan

Reply to "TinyMCE not showing/loading Page for editing"