RTE 的默认设置只允许某些类型的 HTML 元素。我也想允许
form
button
input
我怎样才能做到这一点?我搜索了一下,发现了这个:
## RTE configuration
RTE.default {
proc {
# tags allowed
allowTags = table, tbody, tr, th, td, h1, h2, h3, h4, h5, h6, div, p, br, span, ul, ol, li, re, blockquote, strong, em, b, i, u, sub, sup, strike, a, img, nobr, hr, tt, q, cite, abbr, acronym, center
# html parser configuration
HTMLparser_rte {
# tags allowed
allowTags < RTE.default.proc.allowTags
}
}
}
但我不确定这是否是正确的解决方案......