I have a problem in TinyMce Editor wherever I am using double Quotes it breaks my text is showing outside the HTML tinymce. The double Quotes should show the "e in the source.
In this article I will show you how to convert like double Quotes (“) to "e, & (abrasion) to & etc. The following way is best to convert.
HTML markup:
<script type="text/javascript">
$(function () {
tinyMCE.init({
selector: '#Name,
height: 400
]
});
});
</script>
@Html.EditorFor(model=> model.Name, new { @class = "input-xlarge" }).ToHtmlString()
ToHtmlString() will took care of it.
Post your comments / questions
Recent Article
- ModuleNotFounEerror:No module named celery in Django Project
- How to get domain name information from a Domain using Python
- ModulenotFoundError: no module named 'debug_toolbar' -SOLUTION
- How to create superuser in django project hosted in cPanel without terminal
- CSS & images not loading in django admin | cpanel without terminal
- Could not build wheels for mysqlclient, which is required to install pyproject.toml-based projects
- How to sell domain name on Godaddy (2023)
- TemplateSyntaxError at / Could not parse the remainder: ' + 1' from 'forloop.counter0 + 1'
Related Article