Sceditor error

LiteCart Fan
Tól től Sweden
Tagság márc. 2015 óta

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
Tól től Sweden
Tagság febr. 2013 óta

What does your line 288 look like?

LiteCart Fan
Tól től Sweden
Tagság márc. 2015 óta

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

Main Crew
Tól től Sweden
Tagság febr. 2013 óta

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
Tól től Sweden
Tagság márc. 2015 óta

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.

Te
Ez a weboldal nem használ cookie-kat és nem használ harmadik féltől származó nyomkövetési technológiát. Úgy gondoljuk, hogy jobban tudjuk csinálni, mint mások, és tényleg gondolunk az Ön magánéletére.