开发者

CKEditor: Iconify code without using divs

Hi all I've implemented a plugin (mentioned elsewhere in this site, BTW) that shows an icon rather than parts of edited document in WYSIWYG mode. You can see it in action here

http://www.youtube.com/watch开发者_运维知识库?v=OhKIofzLAp0

In order to do that I wrap the aforementioned snippets using div tags and use CSS to achieve desired behavior. Nonetheless , under certain circumstances divs are not suitable because they are used to layout elements in a page as well.

So my question is, how could I achieve the same results without using div tags nor any other trick that might have some impact on the output (i.e. something like fake elements or dummy containers, ...)?

Thnx in advance !


I don't understand how it is affecting the layout? Can I see an example? If your div has a unique class you should be able to control how it will display on the page, including not displaying at all.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜