EasyUI Forum
May 03, 2024, 04:17:52 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: How can I have table in easyui texteditor?  (Read 5501 times)
Alfred
Full Member
***
Posts: 134


-Licensed User-


View Profile
« 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.
Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #1 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);
Logged
Alfred
Full Member
***
Posts: 134


-Licensed User-


View Profile
« Reply #2 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
« Last Edit: August 14, 2018, 10:19:51 PM by Alfred » Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!