e107-eFiction / FanficTalk-Archive

https://www.fanfictalk.com/archive
0 stars 0 forks source link

tinymce editor #12

Open Jimmi08 opened 1 month ago

Jimmi08 commented 1 month ago

There is a special solution for new lines (soft enter is replaced hard enter in word terminology)

// This function replaces escaped newlines with html <br /> tags
function fixup_newlines($string)
{
    $string = str_replace(array("\\r\\n", "\\n\\r", "\\r", "\\n"), "<br />", $string);
    return $string;
}

The reason can be wrong tinymce configuration.

3.5.8 allows tinymce 3 or tinymce 4. So only testing with its settings is needed if this is still needed.

Jimmi08 commented 1 month ago

3.5.8 version (full)

image

different result on test site (some changes is missing) - header.php is the same, tick box is working the opposite way...

image