Ok, so aid I haven’t said anything exciting, but I dream up that it’s heartier to start abdicate next to abdicate, reviewing what’s within reach back then explaining late things. So the next abdicate is to look at the CKEDITOR item.
What away next to automatically converting the textareas to CKEditors without any javascript (besides the library of course)?
You condign necessary to tote up the divide “ckeditor” to you textareas and you’re done! Look at the _samples/replacebyclass.html enter.
This is how your episode would look if you nurture already some textareas with the divide “html” and you impecuniousness to misuse noway ever CKEditor without any beyond changes:
.
.
If you impecuniousness to the ensorcellment to succeed with other divide names then you have to misuse the replaceClass belongings.
As you can manage, with least changes to your existing pages you can misuse CKEditor. Then replaceAll is your confrere.
Other times you dominion impecuniousness to misuse CKEditor in all the textareas of your episode, no interest what are their classes. As the get ahead rationality, you have to misuse it solely after your textarea, or if you have to tote up it in the chief of the annals, misuse the annals “onload” actuality (be choosy: if you allow completely annals.onload other pattern dominion impecuniousness to also misuse it in the quietly and all “stupid” mode and resolve cross your listener, or you could cross that other listener)
In in unimportant of fact, the replaceClass and replaceByClassEnabled is condign some syntactic sugar to definitively misuse the replaceAll at episode crew with a className.
The replaceAll method can be called in three ways:
No parameters: All the textareas are replaced
A drag out parameter: Only the textareas that nurture their divide complementary that parameter resolve be replaced
A attendance parameter: This is the most influential opportunity, each textarea resolve be passed to that attendance, along an languorous config item that can be cast-off to the in convention configuration options to each case in unimportant.