html-editor

Options for HTML editing in JavaFX

纵饮孤独 提交于 2019-12-10 14:19:34
问题 I'm looking to replace an HTML editor used within a Swing based application with one based on JavaFX. As far as I can see, there are two possible options: 1) Use the JavaFX HTML editor. While this is quite nice for the features it does have, it is still lacking several other features (e.g. insert an image, insert a table, manipulate the image or table, etc.). I am also looking to include other features such as spellcheck and the ability to support custom tags. 2) Use the JavaFX WebView

Catch change in content of HtmlEditor in ExtJS 4

吃可爱长大的小学妹 提交于 2019-12-10 10:16:57
问题 I want to capture whenever the user changes the content of an HtmlEditor in ExtJS 4. I have tried the sync, change, and push events all with no success. Sync seems to be fired whenever focus is gained, change isn't fired, and I can't tell what causes push to be fired. Can anyone tell which event is fired when the user changes the content of an HtmlEditor? Thanks Edit: I have tried the following code which does not work for me, any ideas? init: function() { this.control({ 'htmleditor[name=

How to access nsIHTMLEditor interface in GeckoFX?

耗尽温柔 提交于 2019-12-08 00:27:11
问题 I am trying to make a WYSIWYG HTML-editor by embedding GeckoFX in a Windows Forms application in VB.NET. The code goes like this: Dim Gbrowser As New GeckoWebBrowser Gbrowser.Navigate("about:blank") ... Gbrowser.Navigate("javascript:void(document.body.contentEditable='true')") How can I activate and access the nsIHTMLEditor interface from within my application? Thank you. UPDATE This code does not work: Dim hEditor As nsIHTMLEditor hEditor = Xpcom.GetService(Of nsIHTMLEditor)("@mozilla.org

Set a local image in JavaFX HTMLeditor

大城市里の小女人 提交于 2019-12-07 11:00:31
问题 I'm looking for a way to use JavaFX HTMLEditor's setHtmlText to add a local image. I can add a remote image no problem: HTMLEditor editor = new HTMLEditor(); editor.setHtmlText("<img src=\"http://someaddress.com\" width=\"32\" height=\"32\" >"); but can't do this for a local image HTMLEditor editor = new HTMLEditor(); editor.setHtmlText("<img src=\"categoryButton.fw.png\" width=\"32\" height=\"32\" >"); This button is on the same level as the java source. So why won't this work? 回答1: Use

RichTextBox (.NET Winforms) problem (or alternative)

做~自己de王妃 提交于 2019-12-07 04:46:41
问题 I have a problem with .Net's RichTextBox control. It seems that it doesn't support table cell formatting, which is funny because most of the time I create tables I want the cell contents to be right-aligned (numbers, currency). If I try to open a WordPad document in RichTextBox, it ignores (and actually removes ) the commands for cell alignment. I tried several workarounds but didn't succeed. Can anyone think of an idea to fix this? (without using fixed-width fonts and spaces) This would be

How to access nsIHTMLEditor interface in GeckoFX?

孤街醉人 提交于 2019-12-06 04:37:53
I am trying to make a WYSIWYG HTML-editor by embedding GeckoFX in a Windows Forms application in VB.NET. The code goes like this: Dim Gbrowser As New GeckoWebBrowser Gbrowser.Navigate("about:blank") ... Gbrowser.Navigate("javascript:void(document.body.contentEditable='true')") How can I activate and access the nsIHTMLEditor interface from within my application? Thank you. UPDATE This code does not work: Dim hEditor As nsIHTMLEditor hEditor = Xpcom.GetService(Of nsIHTMLEditor)("@mozilla.org/editor/htmleditor;1") hEditor = Xpcom.QueryInterface(Of nsIHTMLEditor)(hEditor) hEditor.DecreaseFontSize(

Catch change in content of HtmlEditor in ExtJS 4

你说的曾经没有我的故事 提交于 2019-12-06 00:33:58
I want to capture whenever the user changes the content of an HtmlEditor in ExtJS 4. I have tried the sync, change, and push events all with no success. Sync seems to be fired whenever focus is gained, change isn't fired, and I can't tell what causes push to be fired. Can anyone tell which event is fired when the user changes the content of an HtmlEditor? Thanks Edit: I have tried the following code which does not work for me, any ideas? init: function() { this.control({ 'htmleditor[name="reportHtmlEditor"]': { render: this.addKeyHandler } }); }, addKeyHandler: function(field) { // This gets

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

不羁的心 提交于 2019-12-05 22:13:42
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 ! The Html Editor is one of the unique Ajax Control Toolkit controls, becuase it does not inherit AjaxControlToolkit.ExtenderControlBase (server side) nor inherit AjaxControlToolkit.BehaviorBase (client side). So you can't use $find javascript method to get access to the behavior instance on

RichTextBox (.NET Winforms) problem (or alternative)

孤人 提交于 2019-12-05 11:04:41
I have a problem with .Net's RichTextBox control. It seems that it doesn't support table cell formatting, which is funny because most of the time I create tables I want the cell contents to be right-aligned (numbers, currency). If I try to open a WordPad document in RichTextBox, it ignores (and actually removes ) the commands for cell alignment. I tried several workarounds but didn't succeed. Can anyone think of an idea to fix this? (without using fixed-width fonts and spaces) This would be the best solution since other code is working fine already, so if only thing needed is a dirty hack, it

How to create a new project in adobe-brackets?

大兔子大兔子 提交于 2019-12-04 16:55:43
问题 I've started using adobe-brackets for editing JavaScript, HTML and CSS. Currently I have the "Getting Started" project open in my side bar. I would like to create a new project , but there is no such "New Project" item in the File menu. I tried clicking on "Project settings", but that just gives me this: How do you get rid of the default "Getting Started" project, and start a fresh new one? 回答1: Let's suppose you want your project to be in this location: /Users/myName/Sites/mySite To create a