ccc

CKEditor: Añadir un CKEditor inline

<!doctype html>
<html lang="es">
<head>
  <meta charset="utf-8">
  <script type="text/javascript" src="ckeditor/ckeditor.js"></script>
</head>
<body>

<div id="editable" contenteditable="true">
  <textarea class="ckeditor" name="editor1">Aquí el texto a modificar</textarea>
</div>

  <script>
CKEDITOR.disableAutoInline = true;
var editor = CKEDITOR.inline(document.getElementById('editable'));
  </script>
</body>
</html>

No hay comentarios:

Publicar un comentario