I am using ckeditor
(in a project in mvc c # visual studio 2013), to make a text editor, use jquery
to display the text saved in the database, the problem is that when I visualize the editor on a laptop it looks good, but on a large screen computer (an all in one for example) the text is not seen.
I have a site hosted on a server, so if I see the editor (the text I saved) from a laptop it looks good, but on a large screen computer you can not see the text that I saved in the database:
Images 1 and 2 are, is the way the same editor is viewed from different computers; in the first on a laptop and the other on a large screen.
The process is as follows: enter the module and put information in the editor, I click on guardar
and the text is saved in the database, then every time I enter the module I can visualize the saved text (which in this case is the policy of a company) and I can modify or delete it.
To show the text in the editor, I have this code in the controller, script and view:
public ActionResult CargarPolitica()
{
gs = new PoliticaServicios();
string politica =
gs.ObtenerPolitica(SessionDataSG_SST.EmpresaSession.Pk_Id_Empresa);
if (politica != "")
{
return Json(new { success = true, Politica = politica }
, JsonRequestBehavior.AllowGet);
}
else
{
ViewBag.Messages = "Ingrese Una Política";
return Json(false, JsonRequestBehavior.AllowGet);
}
}
function ObtenerPolitica() {
$.ajax({
url: urlBase + '/Politica/Politicasst/CargarPolitica',
data: {},
type: 'POST',
success: function(result) {
if (result) {
//console.log(result.Politica);
$idtextareaPolitica.text(result.Politica);
}
}
});
}
<textarea name="strDescripcion_Politica" placeholder="Ingrese por favor la Política de Seguridad y Salud en el Trabajo." cols="7" id="editor1" required></textarea>
<script>
CKEDITOR.replace('editor1');
</script>