Developer forum

Forum » Development » Custom table markup for responsive layout.

Custom table markup for responsive layout.

Yasharth Tahiliani
Reply

Hey guys,

Is there a way to modify the html generated for a table within a content page. 

These are the table that the user creates using the Rich Text editor.

Regards,

Yash.


Replies

 
Nicolai Høeg Pedersen
Reply

If you use a Razor template, you can manipulate anything. i.e. like this:

@{
    string textFromTextEditor = GetString("ParagraphText");
    textFromTextEditor = textFromTextEditor.Replace("<table", "<table class=\"responsive\"");
}

 
Yasharth Tahiliani
Reply

Thanks Nicolai! 

Much appreciated.

 

You must be logged in to post in the forum