0
剣道エディタにカスタムツールを追加したい。 jQueryメソッドのディレクティブではかなり良いですが、モデルバインディングに問題があります。剣道エディタの角度モード用カスタムツールを作成
<textarea naccordion id="htmleditor" ng-model="Model._Active.Paragraph" class="editor" k-options="accordion" k-encoded="false" kendo-editor k-tools="['fontName','bold','italic','underline','strikethrough','fontSize','justifyLeft','justifyCenter','justifyRight','justifyFull','foreColor','insertUnorderedList','insertOrderedList','indent','outdent','createLink','unlink','insertImage','cleanFormatting','backColor','viewHtml','formatting']"></textarea>
だから、私はコントローラに私のK-オプションのコードを配置:それは動作していない
$scope.accordion = {
tools:
{
name: "accordion",
tooltip: "Accordion items",
exec: function (e) {
var editor = $(this).data("kendoEditor");
editor.exec("inserthtml", {
value: "<accordion close-others='true'><accordion-group is-open='Model._openSettings'><accordion-heading>[Title]</accordion-heading><br>[Text]</accordion-group></accordion>"
});
}
}
};
は、私がこのような角度のメソッドを使用する必要がありそうです。 アコーディオンの有効範囲が正しいかどうかわかりません。