Declined
Last Updated: 12 Oct 2020 15:52 by ADMIN
Tyler
Created on: 06 Oct 2020 13:27
Category: Editor
Type: Feature Request
0
allow for unaltered html elements.
When pulling html from a database into the editor it alters the html. 

For example: 
<table>
    <tr>
         <td style="width:100px;background-color:#FF0000;">Test</td> 
   </tr>
</table>
Is modified to..
<table class="k-table"><tbody><tr><td><p>Test</p></td></tr></tbody></table>

Losing the style attributes and adding classes and paragraph tags breaking our current formatting requirements.

Ideally we would just modify our html data to fit the new formatting but with years of data that's just not feasible.
1 comment
ADMIN
Svetoslav Dimitrov
Posted on: 12 Oct 2020 15:52

Hello Tyler,

Our Editor is reliant on the ProseMirror engine. The engine itself requires the addition of certain HTML elements so it can apply the formatting options (styles) from the toolbar of the Editor. Such formatting options would be making the text bold or italic, adding an underline, etc. 

That being said, for now, this Feature Request will not be implemented.

On the style attribute - this is logged as is own bug and you can Follow it here: https://feedback.telerik.com/blazor/1489476-the-style-attribute-is-removed-from-the-elements-in-the-initial-html-content

Regards,
Svetoslav Dimitrov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.