PDA

View Full Version : اضافه کردن یک CSS، به قسمت Style ادیتور FCKeditor



Helen_Farhani
جمعه 22 تیر 1386, 22:48 عصر
میخواستم منو در رابطه با اضافه کردن یک CSS، به قسمت Style ادیتور FCKeditor راهنمایی کنید.


http://img.majidonline.com/pic/100970/editor.gif


ممنون

delphi77
دوشنبه 24 دی 1386, 09:17 صبح
در فایل \editor\css\fck_editorarea.css
نوشته:

* This is the default CSS file used by the editor area. It defines the
* initial font of the editor and background color.
*
* A user can configure the editor to use another CSS file. Just change
* the value of the FCKConfig.EditorAreaCSS key in the configuration
* file.

که در fckconfig.js

FCKConfig.EditorAreaCSS = FCKConfig.BasePath + 'css/fck_editorarea.css' ;
به آن اشاره شده ولی من تست کردم با تغییر fck_editorarea.css اتفاقی نیافتاد!
کمک کنید!

bigcowboy
دوشنبه 24 دی 1386, 10:38 صبح
داخل fckconfig گفته :

FCKConfig.StylesXmlPath = FCKConfig.EditorPath + 'fckstyles.xml' ;

fckstyles یه فایل xml هست که میتونی اونجا اضافه کنی
مثال:

<Style name="myStyle" element="span">
<Attribute name="color" value="#CC0000 " />
</Style>

delphi77
دوشنبه 24 دی 1386, 11:17 صبح
با تشکر از bigcowboy
توضیحات بیشتر در http://wiki.fckeditor.net/Developer's_Guide/Configuration/Styles