The Joomla! Forum ™



Forum rules


Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Mon Apr 30, 2012 3:33 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Apr 25, 2012 6:21 pm
Posts: 7
So I wanted to add buttons that on click change the format of the selected text to a predetermined one. I know it is possible to do with the TinyMCE editor as you can see here http://fiddle.tinymce.com/naaaab
I want to put them in my TinyMCE editor in joomla either in the simple, advanced or extended template. I managed to insert the buttons on the edit.php files under /form/ folder of the template. And added the
Code:
formats : {
                customformat : {inline : 'span', styles : {color : '#00ff00', fontSize : '20px'}, attributes : {title : 'My custom format'}}
        }

line to the tinymce.php file of the plugin. (I was telling to my self 'I have no idea what I'm doing just playing with my intuition to make things work. I don't uderstand how the Editor is displayed or called therefore I don't know where to paste those codes. Any help would be much appreciated. If I manage to do it I will try to post it.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 



Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group