3

プロジェクトの 1 つでEpicEditorを使用しています。そのため、 docに従って、 textarea id にプロパティを追加textareaしたので、ページが最初に読み込まれたときに textarea のすべてのコンテンツが EpicEditor に表示されます。よく働く!!!

問題:


その特定のレコードについてサーバーからリアルタイムの更新を取得しており、それに応じてフォーム フィールドの値を更新しています。そのため、EpicEditor で新しい値を設定できません。参照テキストエリアの値を更新しましたが、EpicEditor と同期しません。

解決


参照テキストエリアで更新が発生するたびに、EpicEditor で新しい値を設定したいと考えています。

4

2 に答える 2

4
var self = this;
var opts = {
    container: 'epiceditor',
    textarea: 'myTextArea',
    basePath: 'epiceditor',
...
}
var editor = new EpicEditor(opts);
self.editor.load();
// Now, import some content into the editor
// Since I don't know the filename I'm using `null` which will default to the current filename 
editor.importFile(null, 'This is to be displayed in the epic editor');

これにより、テキストエリア自動的に更新されます。バグであるテキストエリアが更新されない場合は、コードと再現可能なケースを含むチケットを送信してください: https://github.com/OscarGodson/EpicEditor/issues/new

于 2013-08-14T20:57:04.137 に答える