2012-04-26 137 views
0

:)將html類添加到tinymce td元素

這是我在stackoverflow中的第二篇文章,並對第一個問題的結果感到滿意。無論如何,我已經有了一個重新設計的外觀工作tinymce工具欄。爲了實現這一點,我使用jQuery向工具欄元素添加類。

但在某些方面是不是如果在初始化工具欄的類也加入破越好..

讓我們說: theme_advanced_buttons1:「保存,新建文檔,|,粗體,斜體,下劃線,刪除線, 「

目前:(一個,我現在有)

  • 發起TinyMCE的
  • 找到的元素添加類,同時還有元素

結果:

<td class="first"> (*save elements here) </td> 
    <td class="last"> (*newdocument elements here) </td> 
    <td class="separator"> (*separator element here) </td> 
    <td class="first"> (*bold elements here) </td> 
    <td class="center"> (*italic elements here) </td> 
    <td class="center"> (*underline elements here) </td> 
    <td class="last"> (*strikethrough elements here) </td> 

我想達到的目標: - 啓動TinyMCE的,並添加類(*結果會是一樣的)

不會是這樣快? 我一直在追蹤tinymce的代碼,但由於我在編碼方面的經驗不足使得它對我更加困難......任何人都知道我的問題的答案..請幫助我..謝謝你,更多的權力......: )

+0

我很抱歉,但我不明白你在這裏想要什麼 – Thariama 2012-04-27 07:13:21

+0

結果是tinymce工具欄按鈕 – chungwufei 2012-05-25 05:39:26

回答