Hi!
I have 3 questoins.
What i want to do is to use the ckeditor by class.
As i wrote, i have nothing to do, just add the ckeditro selector to class. It works.
Ok, but now, i want to change the config of this. For example, i want to use myConfig.js.php for all ckeditor instance. Not by name, not by ID attribute, but class name.
http://docs.ckeditor.com/#!/guide/dev_configuration
At the configuration page i found this:
CKEDITOR.replace( 'editor1', { toolbar: 'Basic', uiColor: '#9AB8F3' });
That's ok, but i do not know the name or ID attribute of my textarea, so, how can i change the counfiguration inline, not from an external file? In this case, the 'editor1' is unknown, i want to reach the config directly. For example (i know there are no code like this),
CKEDITOR.config({
language: hu,
//etc...
})So i want to do it for all ckedior but in the HTML code, without replace, and unknown name or ID attribute for elements.
My second qustion. Maybe later i'll need some custom js.php for configuration.
As in the first question, i would like to assign myConfig.js.php to all ckditor instance with ckedior class. How can i achive this?
My third question is:
Why is it not works? Not changing to hungarian.
<!DOCTYPE html>
<html>
<head>
<title>A Simple Page with CKEditor</title>
<!-- Make sure the path to CKEditor is correct. -->
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<script src="http://testhtml.localhost/editor/js/ckeditor/ckeditor.js"></script>
</head>
<body>
<form>
<textarea name="message" id="message" class="ckeditor" rows="10" cols="80">
This is my textarea to be replaced with CKEditor.
</textarea>
<script type="text/javascript">
CKEDITOR.replace('message', {
language: hu
});
</script>
</form>
</body>
</html>
