EasyUI Forum

General Category => General Discussion => Topic started by: Alfred on August 14, 2018, 04:49:43 AM



Title: How can I have table in easyui texteditor?
Post by: Alfred on August 14, 2018, 04:49:43 AM
I want to insert table inside easyui texteditor. Please help. The extension documentation does not provide ways to add table in the editor.
Please help.


Title: Re: How can I have table in easyui texteditor?
Post by: jarry on August 14, 2018, 05:43:02 PM
You can call 'insertContent' method to insert any html to the editor. Please refer to the code below:
Code:
var table = '<table><tr><td>cell</td></tr></table>';
$('#te').texteditor('insertContent', table);


Title: Re: How can I have table in easyui texteditor?
Post by: Alfred on August 14, 2018, 10:02:52 PM
Thanks for the reply.
In fact, I want to have buttons for adding table, rows and columns. If we paste table created in MS-WORD it works, however, there is no way we can remove and add columns and rows. I want a table insert functionality like the one used by https://summernote.org/. I think this functionality and smiley button are important for a text-editor. I hope you can modify the text editor core or extend the editor to support these functionalities.

I am anxiously waiting for it.

Thanks.
Alfred