This is a migrated thread and some comments may be shown as answers.

Tables: Can I have something other than non-blank white space ( ) character as default content of table cells?

1 Answer 200 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Emanuele
Top achievements
Rank 1
Emanuele asked on 30 Jun 2020, 04:45 PM
     As per subject. When a new table is created, all cells contain a non-blank white space HTML character ( ). Is there any way to initialize the control so that it contains nothing, zip, nada?

1 Answer, 1 is accepted

Sort by
0
Ivan Danchev
Telerik team
answered on 02 Jul 2020, 02:21 PM

Hello Emanuele,

The spaces are needed for the row to maintain its height in specific browser versions. Currently, we don't have an API method that allows turning this behavior on/off.

There is a way to clean the value of the Editor from   characters through the serialization option, for example:

serialization: {
   custom: function(html) {
     	var newValue = html.replace(/ /g, '');
       return newValue;
   }
}

Could you share more details on your scenario and why the presence of this character is a problem?

Regards,
Ivan Danchev
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
Editor
Asked by
Emanuele
Top achievements
Rank 1
Answers by
Ivan Danchev
Telerik team
Share this question
or