Tinymce Align Text Buttons Don't Work On Inline Editing
I have the following code : HTML:
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut
Solution 1:
I have not tried making a p element as an editor but here's my code with a textarea. The key is that you use the right selector and the correct mode.
HTML:
<div class="form-group">
<div class="col-sm-12">
@Html.TextAreaFor(m => m.MarketingInformation, new { @class = "form-control mceEditor" })
</div>
</div>
JS:
<scripttype="text/javascript">
tinymce.init({
mode: "specific_textareas",
editor_selector : "mceEditor",
height: 100,
plugins: [
"advlist autolink lists link charmap print preview anchor textcolor",
"searchreplace visualblocks code fullscreen",
"insertdatetime table contextmenu paste textcolor"
],
toolbar: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image | forecolor backcolor"
});
</script>
I think if you use the mode as 'exact' it should work but I have not tried that; http://www.tinymce.com/wiki.php/Configuration3x:mode
Post a Comment for "Tinymce Align Text Buttons Don't Work On Inline Editing"