PDA

View Full Version : ایجاد یه تگ hr در htm.kendoeditor



RIG000
جمعه 16 آبان 1393, 12:22 عصر
@(Html.Kendo().Editor() .Name("EditorKendo")
.Tools(factory => factory
.Clear()
.FontName(builder => builder
.Add("Tahoma", "Tahoma")
.Add("Times New Roman (Headings CS)", "Times New Roman (Headings CS)"))
.CustomButton(builder => builder
.Name("Custom")
.ToolTip("Insert A horizontal Rule")
.Exec(@<text>
function(e) {
var editor=$(this).data("KendoEditor");
editor.exec("inserthtml",{value: "<hr />"});
}

</text>))


)
.Value(@<text>
<p>
با سلام
</p>
</text>))

الان قسمتی که قرمز کردم کار نمیکنه. میخام یه تگ hr ایجاد شه ... اما نمیشه. اگه ببینید من editor رو Custom کردم...