Answer the question
In order to leave comments, you need to log in
How to clear textarea from heml tags?
Hello!
Can you please tell me how to clear textarea from heml tags in CKeditor 4?
<div id="content-11">
<div class="texttransl">
<div class="row">
<div class="input-field col s12">
<textarea name="news_heading_ru" id="news_heading_ru" class="materialize-textarea" rows="16"><?php echo $data['news_heading_ru']; ?></textarea>
<script type="text/javascript" src="assets/js/ckeditor/ckeditor.js"></script>
<script>CKEDITOR.replace( 'news_heading_ru', { enterMode: Number(2),} );</script>
</div>
</div>
</div>
</div>
Answer the question
In order to leave comments, you need to log in
The first thing that comes to mind:
- Keep 2 copies of ckeditor in the project with different configs and, depending on the url, connect the right
one - Check the url in the body of the config (it's like js, if my memory serves me right) and push different settings
Maybe there are more a competent option, this is so, the most obvious
UPDATE:
Google, it seems like the path to the config can be written there during initialization
https://ckeditor.com/docs/ckeditor4/latest/guide/d...
Then it's even easier, check the url and substitute the path to the desired configuration
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question