FORUM IS CLOSED. PLEASE USE QUESTIONS / ANSWERS PAGE INSTEAD
Login  |  Forum  |  Search   

Board index » Development » Help requests




Post new topic Reply to topic  [ 4 posts ] 
 
Author Message
 Post subject: tinymce
 Post Posted: Fri Jun 22, 2012 7:32 am 
Offline

Joined: Fri Nov 11, 2011 11:22 am
Posts: 51
Hi

How can I define my own style?

I've changed the following in (max.js/med.js/min.js/table.js):

Code:
    //theme_advanced_styles : "Text=;Caption=caption;Signature=signature;Note=note", 
    theme_advanced_styles : "Text=;Mystyle=mystyle", 


But it is not accepted


Top 
 Profile  
 
 Post subject: Re: tinymce
 Post Posted: Fri Jun 22, 2012 6:32 pm 
Offline
Project Manager

Joined: Wed Nov 25, 2009 9:40 am
Posts: 421
This article should help you out - http://www.impresspages.org/docs2/confi ... 2/tinymce/

What do you mean by "not accepted"? Keep in mind that Javascript files and heavily cached by the browsers. Clear cache and click "CTRL+F5" to refresh website.


Top 
 Profile  
 
 Post subject: Re: tinymce
 Post Posted: Mon Jun 25, 2012 7:32 am 
Offline

Joined: Fri Nov 11, 2011 11:22 am
Posts: 51
i need a style like this:
Code:
<p class="mystyle"></p>


when i select mystyle he does't appear in source code it look's like:

Code:
<p></p>


the cache is clear ;)


Top 
 Profile  
 
 Post subject: Re: tinymce
 Post Posted: Mon Jun 25, 2012 7:26 pm 
Offline
Project Developer

Joined: Tue Apr 28, 2009 9:43 am
Posts: 1720
As I understand, you did get your new style in TinyMCE select box. But when you select it and confirm widget, it disappears right?

Theoretically if you managed to get that option in TinyMCE, there is nothing ImpressPages specific what could remove that class. When you select that style, do you see your style to be applied? Or might be your style has inappropriate symbols which are removed by TinyMCE cleanup engine? You need to look for solutions like that.

At the end of TinyMCE configuration file is following option:

Code:
    paste_preprocess : function(pl, o) {
        ipTinyMceConfigPastePreprocess(pl, o, new Array('caption', 'signature', 'note'));
    }


It has affect only on paste. So you probably want to add your new style here or it will be removed on copy / paste text within widgets.


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

Board index » Development » Help requests


 
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

Search for:
Jump to: