tinymce

Validation detected dangerous client input - post from TinyMCE in ASP.NET

五迷三道 提交于 2019-12-19 18:53:26
问题 I get this error when I post from TinyMCE in an ASP.NET MVC view. Error: Request Validation has detected a potentially dangerous client input value, and processing of the request has been aborted From googling, it says to just add a validateRequest in the Page directive at the top which I did, but I STILL get this error. As you can see, below is my code in the view: <%@ Page validateRequest="false" Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc

Validation detected dangerous client input - post from TinyMCE in ASP.NET

我们两清 提交于 2019-12-19 18:53:05
问题 I get this error when I post from TinyMCE in an ASP.NET MVC view. Error: Request Validation has detected a potentially dangerous client input value, and processing of the request has been aborted From googling, it says to just add a validateRequest in the Page directive at the top which I did, but I STILL get this error. As you can see, below is my code in the view: <%@ Page validateRequest="false" Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc

TinyMCE with ajax tabs

落爺英雄遲暮 提交于 2019-12-19 11:15:34
问题 I'm using tabs component of JQuery UI 1.8, and I'm loading content of tabs via ajax (html content). In one of this tabs I'm using tinyMCE component, and when I load this tab the first time, the tiny initializates correctly but if I navegate to other tab and I recall the tab again the tiny breaks down. This occurs when the import of tiny_mce.js is outside the contents of tabs. When I move the import into tab call, the tiny didn't load because it seems to be not initialized. The question is:

Layui弹框中引用TinyMCE编辑器的值如何获取的问题

笑着哭i 提交于 2019-12-19 10:58:30
1.页面效果 父页面获取到弹框中TInyMCE编辑器的值并显示在父页面中,实现思想: 在弹框中定义一个隐藏的文本框,从弹框中获取到编辑器的值赋值给文本框,父页面获取文本框的值。 2.代码如下: 弹框页面:children . html < div class = "layui-input-block" > < textarea name = "supplyservice" id = "supplyservice" > < / textarea > < / div > < textarea name = "" id = "hiddensupplyservice" style = "display: none" > < / textarea > < / div > //弹框的js中初始化TInyMCE ,通过离焦事件获取到TinyMCE中的内容 tinymce . init ( { selector : "#supplyservice" , language : "zh_CN" , min_height : 300 , plugins : [ "advlist autolink lists link image charmap preview" , "searchreplace visualblocks fullscreen" , "insertdatetime table

Is it possible to disable the mobile UI features in tinyMCE 5

一曲冷凌霜 提交于 2019-12-19 09:16:21
问题 Is it possible to disable the mobile UI feature in tinyMCE, and just show the regular editor? I'm asking because it only shows a blank screen for me, in mobile (when I click on the "book" icon in the editor box. I've searched for solutions to the blank page and I only found vague references to "a parent element having overflow set to anything but visible" which didn't help me much. 回答1: EDIT November 2019: TinyMCE 5.1 switches to the Silver theme by default on mobile devices. This workaround

How to get tinyMCE content from more than one text area

丶灬走出姿态 提交于 2019-12-19 06:57:36
问题 Hi I have problem when I need to get the content from multiple text areas. So i saw that tinyMCE has methods to take content from specific text area or from active one, but how to do it will all text areas that i have ( note : Text areas count is not static ). I was thinking for variant to create dynamic ID of each text area and when i need to submit the content to iterate thru all of them. Something like that: for 0 to my textareas length var all content = tinyMCE.get('area1').getContent();

Why is my TinyMCE hidden textarea acting up?

拜拜、爱过 提交于 2019-12-19 05:44:30
问题 I have about 7 textarea s on a web page, all of them are rich text editors using TinyMCE. However at page load only 1 of them is visible and the rest of them hidden. The user can click a 'show' link which would display the remaining textareas one by one. However, I have a weird problem. All the textarea s are setup like this: <textarea cols="40" rows="20"></textarea> However, only the textarea displayed on page load is the full size I want it to be. The remaining textarea s are really small

TinyMCE with AJAX (Update Panel) never has a value

岁酱吖の 提交于 2019-12-19 05:34:32
问题 I wanted to use a Rich Text Editor for a text area inside an update panel. I found this post: http://www.queness.com/post/212/10-jquery-and-non-jquery-javascript-rich-text-editors via this question: Need ASP.Net/MVC Rich Text Editor Decided to go with TinyMCE as I used it before in non AJAX situations, and it says in that list it is AJAX compatible. Alright I do the good ol' tinyMCE.init({ //settings here }); Test it out and it disappears after doing a update panel update. I figure out from a

TinyMCE with AJAX (Update Panel) never has a value

不问归期 提交于 2019-12-19 05:34:07
问题 I wanted to use a Rich Text Editor for a text area inside an update panel. I found this post: http://www.queness.com/post/212/10-jquery-and-non-jquery-javascript-rich-text-editors via this question: Need ASP.Net/MVC Rich Text Editor Decided to go with TinyMCE as I used it before in non AJAX situations, and it says in that list it is AJAX compatible. Alright I do the good ol' tinyMCE.init({ //settings here }); Test it out and it disappears after doing a update panel update. I figure out from a

What HTML attributes are allowed on a Tumblr post? (tinymce)

浪尽此生 提交于 2019-12-19 03:43:10
问题 When creating a Tumblr post, and using the HTML editor option, when I add specific HTML attributes to elements, the TinyMCE rich text editor strips nearly everything off. i.e. this: <span class="something" data-random="foobar"> becomes this: <span class="something"> and this is unaffected: <span class="something" title="foobar"> So can I either 1) disable this scrubbing (which is ridiculous, at least how it's currently implemented) or 2) get a list of all valid attributes so I can choose the