2
A
回答
3
我得到了解決,請使用形式的本
CKEDITOR.plugins.registered['save'] = {
init: function (editor) {
var command = editor.addCommand('save',
{
modes: { wysiwyg: 1, source: 1 },
exec: function (editor) { // Add here custom function for the save button
alert('You clicked the save button in CKEditor toolbar!');
}
});
editor.ui.addButton('Save', { label: 'Save', command: 'save' });
}
}
1
.formSubmit是類名,
VAR數據= CKEDITOR。 instances.editor1.getData();這是文本區域的數據
$('.formSubmit').submit(function(){
var data = CKEDITOR.instances.editor1.getData();
$.ajax({
type: 'POST',
url: 'ck_bienban_1_luu.php',// url of phpcode save
data: {
data: data,
},
success: function() {
},
});
return(false);
}
);
相關問題
- 1. CKEditor iOS獲取按鈕事件中的HTML編輯器內容
- 2. 如何在ckeditor中保存/編輯?
- 3. CKeditor保存事件
- 4. 如何掛鉤Sitecore頁面編輯器中的保存事件?
- 5. ckeditor不自動保存,如果編輯器所做的更改
- 6. WIRIS編輯器保存爲img src而不是ckeditor中的mathml
- 7. Ckeditor - 我如何「保存」到我正在編輯的網頁?
- 8. 如何從可編輯ComboBox上的文本中獲取事件?
- 9. Dropzone.js無法從HTML編輯器中獲取值CKEDITOR
- 10. bootstrap表單編輯器,如何編輯保存的表單?
- 11. 如何編輯使用編輯器保存的圖像
- 12. 如何在Sitecore自定義項目編輯器中使用保存事件?
- 13. CKEditor:獲取編輯器的源DOM元素?
- 14. CKEditor 4內聯編輯保存按鈕插件
- 15. 如何在圖表編輯器中編輯後獲取圖表?
- 16. Rails如何在瀏覽器中編輯和保存文件?
- 17. 如何在CellChange事件上獲取UltraWinGrid的嵌入式編輯器控件
- 18. 插件編輯器HTML TinyMCE vs CKEditor
- 19. 如何獲得文件保存事件
- 20. 保存來自多個CKEditor內嵌編輯器字段的數據(如模板)
- 21. 在保存在CKEditor插件之前立即更新編輯器內容
- 22. 如何在ace在線代碼編輯器中獲取線路書籤事件?
- 23. WFFM保存動作從編輯器獲取字段映射
- 24. 在ckeditor上編輯文件
- 25. 如何從保存的文件中獲取保存的文本
- 26. 如何從編輯器外部獲取編輯器中的選定文本?
- 27. 如何獲得由nano編輯器保存後的文件路徑?
- 28. 如何在MVC3中保存編輯?
- 29. 獲取RepositoryItem的編輯器
- 30. 如何從內聯編輯捕獲取消事件
檢查[獲取和保存數據(http://docs.ckeditor.com/#!/guide/dev_savedata)文檔和SDK樣品:[數據保存CKEditor的更換Textarea](http://sdk.ckeditor.com/samples/savetextarea.html)和[Ajax應用程序中的CKEditor](http://sdk.ckeditor.com/samples/saveajax.html)。 –