TinyMCE config

Please post bugs you have found in tuffclassified theme. If you have fix for that post it too.
Do not post anything else, issue related to third party plugins should not be posted here.
Locked
User avatar
gnoe
Senior
Posts: 110
Joined: Sun Dec 08, 2013 8:15 pm

TinyMCE config

Post by gnoe »

Is there any way to change TinyMCE config settings?

e.g
theme : "modern",
to
theme : "simple",

I tried on core-functions.php but nothing changed.
User avatar
gnoe
Senior
Posts: 110
Joined: Sun Dec 08, 2013 8:15 pm

Re: TinyMCE config

Post by gnoe »

...anything... :(
User avatar
tuffadmin
Site Admin
Posts: 1236
Joined: Tue Jan 29, 2013 7:31 pm

Re: TinyMCE config

Post by tuffadmin »

Where are you making these changes?
No support for unnecessary PM, use forum for support queries.
Please give us good review if you bought our theme from Osclass Market
User avatar
gnoe
Senior
Posts: 110
Joined: Sun Dec 08, 2013 8:15 pm

Re: TinyMCE config

Post by gnoe »

On file core-functions.php

Code: Select all

            <script src="//tinymce.cachefly.net/4.0/tinymce.min.js"></script>
            <script type="text/javascript"> 
                tinyMCE.init({
				        //document_base_url: "http://www.mysite.com/tinymce/"
                    mode : "none",
                    theme : "modern",			
                    height: "400px",
                    toolbar1: "fullscreen undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist | preview | forecolor backcolor",
                    plugins: [
                       "code fullscreen",
                       
                       "paste textcolor"
                      ],
                    selector: "textarea[id^=description]"
 					//language_url : "http://www.mysite.com/el.js" 
                });
                
              
            </script>
As I see you're are using the remote TinyMCE and I have a hard time to do any modifications on config settings to load another language file,theme or skin.
TinyMCE lang file is the most important for me now.

I've downloaded it but can't make it load.
Any help would be great. :)
User avatar
tuffadmin
Site Admin
Posts: 1236
Joined: Tue Jan 29, 2013 7:31 pm

Re: TinyMCE config

Post by tuffadmin »

It is not working because we are using tinymce 4 and you need to use skins for this version.
No support for unnecessary PM, use forum for support queries.
Please give us good review if you bought our theme from Osclass Market
User avatar
gnoe
Senior
Posts: 110
Joined: Sun Dec 08, 2013 8:15 pm

Re: TinyMCE config

Post by gnoe »

There're a lot of languages for tinymce 4.
http://www.tinymce.com/i18n/

Any idea on how to change at least the lang in config.
Have you ever tried this?
Thanks.
User avatar
gnoe
Senior
Posts: 110
Joined: Sun Dec 08, 2013 8:15 pm

Re: TinyMCE config

Post by gnoe »

Forum communication always helps. :D :D
Just found how to change language for remote TinyMCE 4.

This 2 links have useful info.
http://www.tinymce.com/wiki.php/Tutorial:Using_CDN
http://www.tinymce.com/wiki.php/Configu ... nguage_url

Just add absolute URL for your lang file on your server path and don't forget the comma if you have other config settings below.
The file is core-functions.php

e.g
language_url : '/lang.js',

Regards. :)


p.s
I changed tinymce js declaration for the latest update and works fine.

From
<script src="//tinymce.cachefly.net/4.o/tinymce.min.js"></script>
to
<script src="//tinymce.cachefly.net/4.1/tinymce.min.js"></script>
User avatar
gnoe
Senior
Posts: 110
Joined: Sun Dec 08, 2013 8:15 pm

Re: TinyMCE config

Post by gnoe »

Another note for people using non-english with TinyMCE editor.

TinyMCE will save ad description in MySQL as html-escaped.
Not readable and not good for SEO and other reasons.

Include in your TinyMCE config init the following statement to solve this issue.

Code: Select all

tinyMCE.init({
     entity_encoding : "raw",
...
});
more info here.
http://stackoverflow.com/questions/2081 ... l-database
http://www.tinymce.com/forum/viewtopic.php?id=26573
Locked