Page 1 of 1

Schriften hinzufügen im tinymce

Posted: Thu 12. Nov 2015, 21:36
by lugau45
Hallo, ist es irgendwie möglich statt der Standartschriften noch weitere wie Stencil einzufügen?

Re: Schriften hinzufügen im tinymce

Posted: Thu 12. Nov 2015, 22:23
by Gert
Hallo,

man kann (ohne in den Core zu gehen) nichts hinzufügen, aber seine Schriftarten komplett definieren, also die default Werte komplett überschreiben.

TinyMCE 3: http://www.tinymce.com/wiki.php/Configu ... nced_fonts

TinyMCE 4: http://www.tinymce.com/wiki.php/Configu ... nt_formats

Das ganze ist eine Zeile in der entsprechenden init Datei, die Du in der CMS Konfiguration aktiviert hast, z. B.:

./plugins/tinymce/inits/init_narrow.js

Am Ende muss ein Komma sein, wenn es nicht die letzte Zeile ist, Beispielzeile:

Code: Select all

font_formats: "Arial=arial,helvetica,sans-serif;Georgia=georgia,serif;Times New Roman=times new roman,serif;Courier New=courier new,courier,monospace;Stencil=stencil,arial,sans-serif",
Es werden ganze font-families definiert, durch Semikolon getrennt. Das ist wichtig, denn Du kannst hier jede Schriftart der Welt definieren, nur ob der Besucher die zu sehen bekommt, ist ungewiss. Deshalb sind Fallbacks zu "websicheren" Schriften wie Arial oder Times New Roman wichtig, der letzte Fallback ist dann immer serif, sans serif oder monospace.

Bei der Gelegenheit solltest Du gleich auf den TinyMCE 4 updaten:

http://www.cmsimple.org/?Downloads___Up ... en_TinyMCE

Gert

Re: Schriften hinzufügen im tinymce

Posted: Thu 23. Mar 2017, 14:23
by zeman
Hello,
on CMSimple 4.7 Released: 2017-03-16 version, when i set on normal text (paragraph) bigger text size or something else
after SAVE all disappear and font size is as normal text.

This is normal behavior ?

Re: Schriften hinzufügen im tinymce

Posted: Thu 23. Mar 2017, 14:54
by zeman
I found the problem is not in font size etc. but in brackets.
all attempt to enter additional code will result in this

Code: Select all

<h1>Contact</h1>
<div>For more details <span style=\"font-size: 36px;\">Click here</span> </div>

Re: Schriften hinzufügen im tinymce

Posted: Thu 23. Mar 2017, 15:16
by Gert
zeman wrote:This is normal behavior ?
No, and I can not reproduce that, look here (leftside of the image):

https://ge-webdesign.de/demosplit/?Welcome_to_CMSimple
zeman wrote:I found the problem is not in font size etc. but in brackets.
You mean slashes?

Which php version is running on your server? What is the "magic_quotes_gpc" setting? This feature has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 5.4.0:

http://php.net/manual/en/security.magicquotes.php

If it is a magic_quotes_gpc problem, please contact your provider. If you are allowed, upgrade your php version to 5.6 or higher (best is php 7++), and the problem should be gone,

Gert

Re: Schriften hinzufügen im tinymce

Posted: Thu 23. Mar 2017, 16:48
by zeman
Yes you are right, sir.

I meant slashes and PHP is 5.3.something so I will fix that.

I will try continue in investrigation as another instance of cmsimple is working well.

Thank you.

Re: Schriften hinzufügen im tinymce

Posted: Thu 23. Mar 2017, 16:57
by Gert
zeman wrote:I will try continue in investrigation as another instance of cmsimple is working well.
Is this an older CMSimple, with an older Editor? Maybe TinyMCE 3.x.y ?

Re: Schriften hinzufügen im tinymce

Posted: Tue 5. Dec 2017, 16:41
by zeman
Update to the latest branch solved the issue.