html-editor

Ajax Control Toolkit Editor Control - avoiding XSS attacks

你。 提交于 2020-01-14 03:01:06
问题 I noticed in this article that Microsoft does not recommend using the Editor control from the Ajax Control Toolkit in public sites because of the danger of cross-site scripting attacks. I tried it out, and even if you specifically set NoScript="true" it's possible to add script, and therefore, introduce XSS attack vulnerabilities. In my situation, we are working on a scholarship application process, and we had hoped to use this to all nominees to type up an Essay on-line. We wanted to take

ExtJS: add button to htmleditor

匆匆过客 提交于 2019-12-31 22:27:20
问题 I am using ExtJS and I have a htmleditor in my form. I would like to add a custom button to that element (for example after all other buttons like alignments, font weights, ...). This button should basically insert a standard template in the htmlfield. Being this template html, the behaviour of the button should be like this Switch to HTML mode (like when pressing Source button) Insert something Switch back to WYSIWYG mode (like when pressing the Source button again) Thanks for your attention

Html.EditorFor retrieve null in decimals ASP.NET MVC

半世苍凉 提交于 2019-12-25 08:30:59
问题 I have a problem when retrieving a decimal data in my view. It occurs using Google Chrome and M.Edge, but with I.Explorer and Firefox is not happening. This is my model: public Nullable<decimal> TA_RATE_CARD_COST { get; set; } This is the view: @Html.EditorFor(m => m.TA_RATE_CARD_COST, "DecimalNullable") When the value stored in the database is for example 500,54 the view does not retrieve the value, the EditorFor is empty. If the value stored is 500 the data is retrieved correctly, like I

Catch Ctrl+Enter when user typing text in Ext.form.field.HtmlEditor

僤鯓⒐⒋嵵緔 提交于 2019-12-25 03:49:15
问题 I'm trying to make ajax request when user press ctrl+enter while is entering text in Ext.form.field.HtmlEditor (xtype:'htmleditor'), but I don't know how to do it. I'got button next to the 'htmleditor' which can send the value of the 'htmleditor' but I'd like to add keyboard shortcut for that operation with ctrl+enter. Will appreciate some help. EDIT: It need to be made with ExtJS4 - somehow I must add something like 'keypress' listener to my htmleditor object... Here is the code.. this

Custom button in HtmlEditorExtender control?

﹥>﹥吖頭↗ 提交于 2019-12-24 08:19:43
问题 I'm in dire need of assistance. I need to add a custom button to an HtmlEditorExtender control, but I'm lacking the know-how to actually do that. I've searched throughout this forum but no information was relevant or whatsoever. Should someone be so kind to help, I need an example to help me sort this issue out. Thanks in advance. 回答1: One possibility is to add it to the DIV containing the buttons using javascript. I do it using jQuery. If you inspect the DIV in Firefox, you'll notice that it

HTML editor for iOS [closed]

风格不统一 提交于 2019-12-23 23:18:07
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . Can someone suggest any native iOS component for editing HTML? I couldn't find any googling. 回答1: Textastic maybe? You'd better search iTunes for related applications and choose yourself. 回答2: You might look at TinyMCE or CKEditor. Both are Javascript editors for creating HTML. 回答3: Solution here is to create

How do you get/set content via javascript with the AJAX Control Toolkit HTML Editor?

徘徊边缘 提交于 2019-12-22 09:49:45
问题 I'm using the AJAX Control toolkit HTML editor and have what I hope is a simple question. As the question title says - how do you get/set the content of the HTML editor via javascript? I have no problems accessing the server side content property - but how to do it client side? Any help gratefully received ! 回答1: The Html Editor is one of the unique Ajax Control Toolkit controls, becuase it does not inherit AjaxControlToolkit.ExtenderControlBase (server side) nor inherit AjaxControlToolkit

JavaFX 2 BorderPane Use Full Space

时间秒杀一切 提交于 2019-12-21 12:16:06
问题 I´m just facing a little issue that I can´t solve by myself. I try to place a vBox including a TextField and a HTML-Editor in my BorderPane, but the full space is not used. Another problem is that if I shrink the window, the html-editor overlaps with my left option window. private void initEditor() { editor = new HTMLEditor(); editor.setId("editor"); editor.lookup(".top-toolbar").setDisable(true); editor.lookup(".top-toolbar").setManaged(false); ((ToolBar) editor.lookup(".bottom-toolbar"))

Line spacing HTMLEditor JavaFx

。_饼干妹妹 提交于 2019-12-13 07:00:29
问题 I would like to adjust the line height of an HTMLEditor in JavaFx with css rules but can't find the name of the rule. I tried -fx-line-height and a few other but none of them worked. Is it even possible, or is the HTMLEditor too restricted? 回答1: The HTML editor edits HTML, you need to specify the line-height in HTML based CSS (not JavaFX CSS). import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.layout.Pane; import javafx.scene.web.HTMLEditor; import javafx

Dreamweaver alternative

那年仲夏 提交于 2019-12-12 03:45:40
问题 I'm aware there are plenty of questions like this but I'm looking to move to another development environment but not lose some of the better Dreamweaver features / behaviors. I have Dreamweaver CS6 and it just gets worse every release. The simple act of opening a file causes it to freeze these days. Here are the features I'd like in the alternative. I code in "code view" but design view is very useful to paste and format body copy. Tag auto close. But only when I type "</" Related files (file