Rich Text Editor in Rails Application
Many times you need normal CMS for your application. You want to need some pages…
Lets say I kept div height auto and width as 200px fix and data is dynamic for eash user. So how we can get the div height.
1. offsetHeight – this will return the value which are specified in your CSS
2. clientHeight – this function will return real inner height of element that does not matter about CSS.
I recomend to use this function.
Exmaple code as follows: