Forum www.public4you.fora.pl Strona Główna

www.public4you.fora.pl
Forum gazetki blogowej The Public.
 

ghd straighteners australia Configuring filters fo

 
Napisz nowy temat   Odpowiedz do tematu    Forum www.public4you.fora.pl Strona Główna -> Graphic
Zobacz poprzedni temat :: Zobacz następny temat  
Autor Wiadomość
westdf5s620
Rozgadany ;)
Rozgadany ;)



Dołączył: 20 Wrz 2010
Posty: 493
Przeczytał: 0 tematów

Ostrzeżeń: 0/5
Skąd: England

PostWysłany: Wto 4:32, 05 Paź 2010    Temat postu: ghd straighteners australia Configuring filters fo

In "Administer -> Input formats", Filtered HTML is the default filter. Due to security factors, enabling Full HTML is only an option for trusted users.
Allow trusted users to use Full HTML and accept that other users will have limited functionality, e.g. assign to their profile a different, simpler toolbarModify fckeditor.config.js so that FCKeditor used the old-fashion way of applying styles - using <font> tag... remember it's your choice ;)
so if you really want to do this, add these lines at the end of fckeditor.config.js:
<a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area>
<hr> <br> <br> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em>
<b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote>
<pre> <adwear> <code> <cite> <embed> <object> <strike> <caption>
But there is still one trouble: Filtered HTML not only strips disallowed tags, but also strips inlength style definitions. Basically, it manner that you are unable to apply deviateent font color, size, family etc. using FCKeditor 2.5 out of the box.
The first thing to do is to extend the list of allowed tags to:
Filtered HTML vs Full HTML
What can you do to take the full advantage of using FCKeditor?
Don't worry, you still have at least three steps of dealing with it:
FCKConfig.CoreStyles['FontFace'] = { Element : 'font', Attributes : { 'face' : '#("Font")' }
};
FCKConfig.CoreStyles['Size'] = { Element : 'font', Attributes : { 'size' : '#("Size","fontSize")' }
};
FCKConfig.CoreStyles['Color'] = { Element : 'font', Attributes : { 'color' : '#("Color","color")' }
};
FCKConfig.FontSizes = '1/xx-small;2/x-small;3/small;4/medium;5/large;6/x-large;7/xx-large' ;
with this code, you are able to use 'FontFormat',[link widoczny dla zalogowanych],'FontName','FontSize','TextColor' buttons/combo boxes even with Filtered HTML.
Instead of using 4 buttons for formatting text: 'FontFormat','FontName','FontSize','TextColor' use only one 'Style' button with predefined styles in fckstyles.xml. Line interval converter
The other thing that may be irritating when using rich text editor is Line break converter. Since you are using "WYSIWYG" editor,[link widoczny dla zalogowanych], you don't want to have your source code parsed again by Drupal,[link widoczny dla zalogowanych], befactor you have already placed page breaks where you had to do it. In other words, you potency probably want to disable that feature.


Post został pochwalony 0 razy
Powrót do góry
Zobacz profil autora
Wyświetl posty z ostatnich:   
Napisz nowy temat   Odpowiedz do tematu    Forum www.public4you.fora.pl Strona Główna -> Graphic Wszystkie czasy w strefie EET (Europa)
Strona 1 z 1

 
Skocz do:  
Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach


fora.pl - załóż własne forum dyskusyjne za darmo
Powered by phpBB © 2001, 2005 phpBB Group
deoxGreen v1.2 // Theme created by Sopel stylerbb.net & programosy.pl

Regulamin