Esitor TinyMCE plugin

Hi to all.

I have some problem in upgrading the editor tinyMCE plugin.

I have pushed the upgrade button and then i upload file tar.gz that i downloaded from the officina web site.

Infortunately when i uploaded file, the system said that The command tar is not available and that i should configure

Someone can help me???
I have the last stable version of ojs.

1 Like

Are you using a Linux based server?
Make sure you have the Tar binary file and correct its path in your file (/bin/tar) if needed.
Also, I think you have to set the Write permission for the target folder.
Check this link too

1 Like

Hi there thanks for answering.
I use Windows 8.1 64 bit.
I cant upgrade The plugin.

I can day that because my editor has just basic option.
Can you help in that?

1 Like

There is no need to update the plugin.
make a copy of plugins/generic/tinymce/ and then replace the callback function with this. it gives you some more editing options!

function callback($hookName, $args) {
        // Only pages requests interest us here
        $request =& Registry::get('request');
        if (!is_a($request->getRouter(), 'PKPPageRouter')) return null;

        $templateManager =& $args[0];

        $page = Request::getRequestedPage();
        $op = Request::getRequestedOp();
        $enableFields = $this->getEnableFields($templateManager, $page, $op);

        if (!empty($enableFields)) {
            $baseUrl = $templateManager->get_template_vars('baseUrl');
            $additionalHeadData = $templateManager->get_template_vars('additionalHeadData');
            $enableFields = join(',', $enableFields);
            $allLocales = AppLocale::getAllLocales();
            $localeList = array();
            foreach ($allLocales as $key => $locale) {
                $localeList[] = String::substr($key, 0, 2);

            $tinymceScript = '
            <script language="javascript" type="text/javascript" src="'.$baseUrl.'/'.TINYMCE_JS_PATH.'/tiny_mce_gzip.js"></script>
            <script language="javascript" type="text/javascript">
                    relative_urls : "false",
                    plugins : "paste,jbimages,fullscreen",
                    themes : "advanced",
                    languages : "' . join(',', $localeList) . '",
                    disk_cache : true
            <script language="javascript" type="text/javascript">
                    theme : "advanced",
            mode : "textareas",
            plugins : "directionality,safari,spellchecker,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,searchreplace,print,contextmenu,paste,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,pagebreak",
            theme_advanced_buttons1_add : "fontsizeselect",
            theme_advanced_buttons2_add : "separator,preview,separator,forecolor,backcolor",
            theme_advanced_buttons2_add_before: "search,replace,separator",
            theme_advanced_buttons3_add_before : "tablecontrols,separator",
            theme_advanced_buttons3_add : "ltr,rtl,separator",
            theme_advanced_toolbar_location : "top",
            theme_advanced_toolbar_align : "left",
            theme_advanced_statusbar_location : "bottom",
            relative_urls : false,
            theme_advanced_layout_manager : "SimpleLayout",
            extended_valid_elements : "span[*], div[*]",
                    entity_encoding : "raw",
                    elements : "' . $enableFields . '",
                    relative_urls : false,
                    forced_root_block : false,
                    paste_auto_cleanup_on_paste : true,
                    apply_source_formatting : false                

            $templateManager->assign('additionalHeadData', $additionalHeadData."\n".$tinymceScript);
        return false;
1 Like

Thanks…it works!!!now i have some more options.
I see that with tinyeditor you have The option to upload in the site directly a word page already prebuilt.
Does it correct?
Can you help me in make all options of tinyeditor?

In any case,thanks a lot for helping me so far.

1 Like

You can copy/paste from Word and it works.
I am a little outdated on new TinyEditor plugins. search for tinyMCE.init options and there are some tutorials on the developer’s page and other forums.
If you found any interesting new items or options please share it here.


Hey there too complicated tutorials you suggested me.

I have a problem. I used your setting but they have a problem with The uploader image. Thus i replaced the previuos setting. Now i can upload image bit i cant move The image and text how i like.

Comunque you suggest me new setting with The opportunity to upload image and move them with text.

I’m woking i setup page. I want ti customize image of The additional content of The homepage.

Thanks you

1 Like

You shouldn’t rely on tinymce for complex html pages with figures,…
Use a html editor to create your page and then transfer the codes to tinymce.
This, of course, needs html programming skills.

I found solution.
Salve image directly in The “public” directory and then copy The url.