Schriften hinzufügen im tinymce

CMSimple 4.0 und höher
lugau45
Posts: 7
Joined: Wed 18. Jun 2014, 11:04

Schriften hinzufügen im tinymce

Postby lugau45 » Thu 12. Nov 2015, 21:36

Hallo, ist es irgendwie möglich statt der Standartschriften noch weitere wie Stencil einzufügen?

Gert
Posts: 1039
Joined: Sun 18. Nov 2012, 14:18

Re: Schriften hinzufügen im tinymce

Postby Gert » Thu 12. Nov 2015, 22:23

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/Configuration3x:theme_advanced_fonts

TinyMCE 4: http://www.tinymce.com/wiki.php/Configuration:font_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___Updates___Editoren_TinyMCE

Gert
Gert Ebersbach | CMSimple | Templates - Plugins - Services

zeman
Posts: 11
Joined: Sun 15. Mar 2015, 10:33

Re: Schriften hinzufügen im tinymce

Postby zeman » Thu 23. Mar 2017, 14:23

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 ?
---------------------------------------------------------------
Life is Cimple

zeman
Posts: 11
Joined: Sun 15. Mar 2015, 10:33

Re: Schriften hinzufügen im tinymce

Postby zeman » Thu 23. Mar 2017, 14:54

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>
---------------------------------------------------------------
Life is Cimple

Gert
Posts: 1039
Joined: Sun 18. Nov 2012, 14:18

Re: Schriften hinzufügen im tinymce

Postby Gert » Thu 23. Mar 2017, 15:16

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
Gert Ebersbach | CMSimple | Templates - Plugins - Services

zeman
Posts: 11
Joined: Sun 15. Mar 2015, 10:33

Re: Schriften hinzufügen im tinymce

Postby zeman » Thu 23. Mar 2017, 16:48

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.
---------------------------------------------------------------
Life is Cimple

Gert
Posts: 1039
Joined: Sun 18. Nov 2012, 14:18

Re: Schriften hinzufügen im tinymce

Postby Gert » Thu 23. Mar 2017, 16:57

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 ?
Gert Ebersbach | CMSimple | Templates - Plugins - Services

zeman
Posts: 11
Joined: Sun 15. Mar 2015, 10:33

Re: Schriften hinzufügen im tinymce

Postby zeman » Tue 5. Dec 2017, 16:41

Update to the latest branch solved the issue.
---------------------------------------------------------------
Life is Cimple


Return to “CMSimple 4.0 and higher”

Who is online

Users browsing this forum: No registered users and 1 guest