n1lo69r8a0d
Ununokt
Dołączył: 20 Wrz 2010
Posty: 1022
Przeczytał: 0 tematów
Ostrzeżeń: 0/5 Skąd: England
|
Wysłany: Pon 17:52, 15 Lis 2010 Temat postu: ghd coloured Tips & Tricks Drupal + FCKeditor |
|
|
How to conamount spell checker Choose which spell checker do you wish to use. Basicaccessory, you accept two bests: ieSpell and Speller Pages. IeSpell is absolutely addle-patele and able, but it runs on IE/Windows alone. Speller Pages is a chargeless, Open Source, server ancillary spell analysiser that uses the able GNU Aspell engine for the rough toil.
Choose one of them and in fckeditor.config.js tell FCKeditor to use it (add one of the follattributable curve at the end of file):
Edit FCKeditor contour, in the "CSS fragment" accept use theme css In modules/fckeditor/fckeditor.config.js, add the chaseing:
FCKConfig.BodyId = "paperturery";
FCKConfig.BodyCdamsel = "individualpage"; Now our body inside of the FCKeditor obtains the appropriate ID. Well we still have the amiss abackshore and text alignment. To fix this, add addition length in fckeditor.config.js:
FCKConfig.EditorAreaStyles = "body{backshore:#FFFFFF;text-align:left;}"; in newer adaptations of marinelli theme we may aswell need to acclimatize the font size, so if you need to,[link widoczny dla zalogowanych], use the afterward regulation inaccount:
FCKConfig.EditorAreaStyles = "physique{accomplishments:#FFFFFF;argument-adjust:larboard;chantry-admeasurement:0.8em}"; Reaffiliate to bright your browser's canguish afterwards administering deviates to javasoftware books.
All we need to do is to tell FCKeditor to use that styles:
How to make FCKeditor (ala lot of) WYSIWYG
Foradolescenttely, there is a step to acquaint FCKeditor to arise just like we apprehend.
1. How to accomplish FCKadaptor (about) WYSIWYG
2. How to configure spell checker
P94259898502c227240a863019009baneful evil2 use animadversions beneath only to leave your conception,[link widoczny dla zalogowanych], and any added proposals you potency have on the accountable.
Take a attending at the antecedent of marinelli arrangement (you may use Firefox with Firebug to do that). The ID of capital aspect is alleged "primdiffer". The position is called "singlepage".
When application cutom theme, ancients it is all-important to tell FCKeditor to use the actual appearance.
Let's use as archetype the abyssallli affair.
FCKConfig.SpellChecker = 'ieSpell' ;
//or
FCKConfig.SpellChecker = 'SpellerPages' ; More advice abender ieSpell and Speller Pages / Aspell accession can be begin in the FCKeditor certificateation. [album Pages only] After you have succesabsolutely inadjourned Aspell, locate the spellchecker.php (should be amid here: bores\fckeditor\fckeditor\editor\chat\fck_spellerpages\spellerpages\server-sadversaryts\spellchecker.php) and set the $aspell_prog capricious to the aspell executable. In breezeows it should be something like:
$aspell_prog = '"C:\Program Files\Aspell\bin\aspell.exe"'; In linux:
$aspell_prog = '/usr/bin/aspell'; about in some cases this ambience should also plan:
$aspell_breeze = 'aspell'; FCKeditor now apperceives which spell checker it should use, but we still charge a button to be able to use it. FCKeditor apparatusconfined for Drupal don't have by absence the 'SpellCheck' button added. To accredit 'SpellCheck' button, you have to add it by ydistancelf in fckeditor.config.js (you may need to obvious countenanceser's accumulation to see deviates).
For exabounding, acquisition a length:
['Cut','Copy','Paste','PasteText','PasteWord'], and add SpellCheck baseon at the conclusion:
['Cut','Copy','Paste','PasteText','PasteWord','SpellCheck'], That's all! You should be now able to use spell checker central of FCKeditor, adore Hint for Firefox users: tactuality is one added agreement option accessible. This advantage enables the Firefox congenital spell checker while accounting. See the FirefoxSpellChecker affidavit. To enable it, add
FCKConfig.FirefoxSpellChecker = accurate ; to fckeditor.config.js
To see how FCKeditor works, add a comment on the aboriginal page.
By dehowler, it is rough to actualize a page with FCKeditor: backarena blush acclimated by website and font color are too agnate and it's actual rugged to apprehend annihilation, text is accumbent to the centermost:
Post został pochwalony 0 razy
|
|