tinymce

Connection.Start().Done() SignalR Issue

独自空忆成欢 提交于 2021-02-19 05:07:31
问题 I am designing a real-time document editor web application similar to google docs using SignalR connections. It is working ok i.e. when I am writing in one editor in a browser, text is being displayed on the other open browsers I have. The only problem I have is that when at first I write some text it is not being displayed, then I delete and write again and everything is ok. When I debug using F12 in Chrome I am getting this error: Uncaught Error: SignalR: Connection has not been fully

Connection.Start().Done() SignalR Issue

£可爱£侵袭症+ 提交于 2021-02-19 05:06:23
问题 I am designing a real-time document editor web application similar to google docs using SignalR connections. It is working ok i.e. when I am writing in one editor in a browser, text is being displayed on the other open browsers I have. The only problem I have is that when at first I write some text it is not being displayed, then I delete and write again and everything is ok. When I debug using F12 in Chrome I am getting this error: Uncaught Error: SignalR: Connection has not been fully

PHP: Unicode accentuated char and diacritics

扶醉桌前 提交于 2021-02-15 11:44:15
问题 In our website, some Mac users have troubles when they copy-paste text from PDF files into a TextArea (handled by TinyMCE). All accentuated char are corrupted, and became for example e? for a é , i? for a î , etc. I cannot reproduce this problem with a Windows computer. When I wrote the content of the TextArea on a file (before inserting it in the database), I just discovered that the initial é is visually different that a traditionnal é (on Vim, see below). Indeed : // the corrupted é -

PHP: Unicode accentuated char and diacritics

左心房为你撑大大i 提交于 2021-02-15 11:44:15
问题 In our website, some Mac users have troubles when they copy-paste text from PDF files into a TextArea (handled by TinyMCE). All accentuated char are corrupted, and became for example e? for a é , i? for a î , etc. I cannot reproduce this problem with a Windows computer. When I wrote the content of the TextArea on a file (before inserting it in the database), I just discovered that the initial é is visually different that a traditionnal é (on Vim, see below). Indeed : // the corrupted é -

How to make textarea filed mandatory when I've applied TinyMCE

試著忘記壹切 提交于 2021-02-15 05:35:40
问题 I want to make textarea filed mandatory when I've applied TinyMCE. If I add required attribute to <textarea> , it causes that I cannot submit the form even if I fill in the form! How can I solve this problem? tinymce.init({ selector: '#summaryId', max_chars: 255, // max. allowed chars plugins: "paste", setup: function (ed) { var allowedKeys = [8, 37, 38, 39, 40, 46]; // backspace, delete and cursor keys ed.on('keydown', function (e) { if (allowedKeys.indexOf(e.keyCode) != -1) return true; if

Wagtail Tinymce - ModuleNotFoundError: No module named 'wagtail.wagtailadmin'

折月煮酒 提交于 2021-02-11 13:50:56
问题 I'm trying to install the package "wagtailtinymce" already downloaded it, however, the repository tutorial is completely bad. I do not know if it's because of some update or something. I'm using the latest version of wagtail and I already have a project created (obvious). The error is in every import the package tries to make, and since I'm starting in Django and Wagtail, I do not know what to do. I have not been able to migrate the application yet because of this error. File "/mnt/sda3

How to toggle browser_spellcheck dynamically in tinymce

我怕爱的太早我们不能终老 提交于 2021-02-11 13:38:21
问题 I've a custom toolbar button, which is used to toggle the browser's spell check. I've used browser_spellcheck : true in the initialization. Now if we press button, then i need to 'off' the spell check. So, how can we set browser_spellcheck to false dynamically? 回答1: You cannot change the init settings of TinyMCE dynamically - it simply does not allow that to happen. If you need to change a setting like this you would need to use the remove() and init() APIs to reload the editor with new

responsivefilemanager9 internal server error

心不动则不痛 提交于 2021-02-10 18:44:29
问题 I installed responsive filemanager 9 from here into my local tinymce 4. My tinymce config looks like this: <script> tinymce.init({ selector: 'textarea', height: 500, theme: 'modern', plugins: 'print preview fullpage searchreplace autolink directionality visualblocks visualchars fullscreen image link media template codesample table charmap hr pagebreak nonbreaking anchor toc insertdatetime advlist lists textcolor wordcount imagetools contextmenu colorpicker textpattern help', toolbar1:

Validating TinyMCE using Parsley

纵然是瞬间 提交于 2021-02-09 07:30:16
问题 I have a form which is part of a multi-step wizard. At one step, the form has one input and one TinyMCE editor. I'm using ParsleyJS for validating the content of each step before going to the next step. I have my wizard step and validation code defined as below: <form class="form-horizontal" id="step1Form"> <div class="form-group"> <label for="name" class="col-sm-3 control-label">Name:</label> <div id="nameDiv" class="col-sm-9"> <input type="text" maxlength="50" class="form-control" id="name"

TinyMCE can't align header tags

狂风中的少年 提交于 2021-02-07 08:19:13
问题 Does anyone know how I can enable text alignment of header tags through the TinyMCE interface? If I select the text (of any header tag) and select an aligment option it appears to have lined up correctly in the editor. However, when I save the page it gets shifted back to the default alignment (in my case left). I have also tried editing the HTML directly but when I close the dialog the HTML doesn't seem to update. I found some documentation on the wiki about the extended_valid_elements which