Sceditor error

LiteCart Fan
Nuo Sweden
Narys nuo kov. 2015

I have tried to install sceditor but it does not work, I get this message: Parse error: syntax error, unexpected ',' in /var/www/html/dev/includes/functions/func_form.inc.php on line 288.

Main Crew
Nuo Sweden
Narys nuo vas. 2013

What does your line 288 look like?

LiteCart Fan
Nuo Sweden
Narys nuo kov. 2015

Like this:
return ' '. lue, eters, )

Main Crew
Nuo Sweden
Narys nuo vas. 2013

This code does not come from the SCEditor add-on which states the following:

Go to includes/functions/func_form.inc.php and substitute the function form_draw_wysiwyg_field() with the following code instead:

function form_draw_wysiwyg_field($name, $value=true, $parameters='', $hint='') {

        if ($value === true) $value = form_reinsert_value($name);

        document::$snippets['head_tags']['sceditor'] = '' . PHP_EOL
                                                     . '' . PHP_EOL
                                                     . '' . PHP_EOL
                                                     . '' . PHP_EOL;

        return ''. htmlspecialchars($value) .''
             . '' . PHP_EOL
             . '  $(""textarea[name=\''. $name .'\']"").sceditor({' . PHP_EOL
             . '    ""plugins"": ""xhtml,format"",' . PHP_EOL
             . '    ""width"": ""100%"",' . PHP_EOL
             . '    ""resizeEnabled"": true,' . PHP_EOL
             . '    ""style"": ""{snippet:template_path}styles/loader.css"",' . PHP_EOL
             . '    ""locale"": ""'. htmlspecialchars(language::$selected['code']) .'"",' . PHP_EOL
             . '    ""emoticons"": false,' . PHP_EOL
             . '    ""toolbar"": ""format|font,size,bold,italic,underline,strike,subscript,superscript|left,center,right,justify|color,removeformat|bulletlist,orderedlist,table|code,quote|horizontalrule,image,email,link,unlink|youtube,date,time|ltr,rtl|print,maximize,source""' . PHP_EOL
             . '  });' . PHP_EOL
             . '' . PHP_EOL;
      }

SCEditor was removed due to bugs and the development seemed to have stalled. May I ask why you choose SCEditor over Trumbowyg?

LiteCart Fan
Nuo Sweden
Narys nuo kov. 2015

Thanks. For no particular reason. I can live with Trumbowyg, so it's not a big deal for me ;), and if the development has stalled it's a reason to skip Sceditor.

Jūs
This website uses no cookies and no third party tracking technology. We think we can do better than others and really think about your privacy.