开发者

How do I change Concrete5's attitude toward my markup?

Concrete5.

I have a span. I want to 'name' it and 'class' it. I edit the code HTML and put

<span name='Nameo' class='Classo'>...</span>

I save it and re-edit it. I see

<span class='Classo'>...</span>

Where's my 'name' g开发者_Go百科one? Is there any way I can tell Concrete5 to leave my name alone?


I assume you're talking about the "Content" block here. The only altering of this content that C5 does is for url's to internal pages and files (so links in your content don't break when you change servers / domain names / subdirectories). I'm guessing this is actually something the TinyMCE editor is doing. I don't think "name" is a valid attribute on a span so TinyMCE is probably stripping it out.

See this TinyMCE FAQ for more details: http://tinymce.moxiecode.com/wiki.php/TinyMCE_FAQ#TinyMCE_strip_away_attributes_or_tags_from_my_source.3F

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜