some YUI RTE note..

November 24, 2008

在<body> 這個tag 似乎一定要設
class=’yui-skin-sam’
不然會有一些小問題
我之前是設在<div class=’yui-skin-sam’><textarea></textarea></div>
這樣來解 ..不過…
用了一陣子才發現….class=’yui-skin-sam’不是設在body 的話….
add link 的這個func 會破版…………..css 會整個走掉….

本來是沒有很想加 class 在body 的..
不過突然想到….drupal 的 plugin 中也有yui rte
我就去看了一下他是怎麼解的..
[sourcecode language='js']

[/sourcecode]

然後看了一下skin裡面的css 應該是不至於加了這個class 造成新版的走位,所以就照著幹了…

tags:
posted in program by johnpupu

Follow comments via the RSS Feed | Leave a comment | Trackback URL

Leave Your Comment

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

 
Powered by Wordpress and MySQL. Theme by Shlomi Noach, openark.org