w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
eclipse example template with an editor or multi-page editor not running due to following errors
Those are NOT ERRORS. Do not overreact. As it said, it's looking for the environmental variable HOME to have been set, but you can just go fill in information that it would guess from that in the Git preferences. These messages do not appear in newer versions of eGit. And just because you opened a Runtime Workbench does not mean your editor will be automatically opened. If it's not opening when you try to open one of its supported fie types, open a question with the stack traces of its failures.

Categories : Java

Load Rich Word document into RichText Editor of telerik editor
You can see this live demo: http://demos.telerik.com/aspnet-ajax/editor/examples/rtfexport/defaultcs.aspx and this blog post: http://blogs.telerik.com/aspnet-ajax/posts/13-07-19/how-to-enhance-the-rtf-export-of-radeditor-for-asp.net-ajax

Categories : C#

Kendo UI Editor - Remove a specific tool from editor-menu
Got it. Need to remove all the tools first of all, and then add each tool one by one. There is a method Clear() for it. Here is the code. @(Html.Kendo().Editor() .Name(name) .Tools(tools => tools.Clear() //remove all tools .Bold().Italic().Underline().Strikethrough() .FontName().FontSize().FontColor().BackColor() .JustifyLeft().JustifyCenter().JustifyRight().JustifyFull() .InsertUnorderedList().InsertOrderedList().Indent().Outdent() .FormatBlock().CreateLink().Unlink() .SubScript().SuperScript().ViewHtml() ) Please let me know if there is any other way of doing this.

Categories : Kendo Ui

Change the editor for editor form field for a specific view
Simply use editor="tinymce|none" this will give a list of precedence, if tinymce should not be available it will try none. I guess your editors list can be of any length. Separate editors with pipe "|"

Categories : Joomla

change default editor (core.editor) to notepad over SSH
It is not possible to launch a GUI program in Windows over a typical ssh session. If you would like to switch the default editor to a different terminal editor such as nano, you can do that with: git config --global core.editor "nano" Source

Categories : GIT

Ace editor doesn't format the data inside the editor div
Ace doesn't support formatting the code, you can either use beautify.js or browsers built-in json formatter var val = editor.session.getValue() var o = JSON.parse(val) // may throw if json is malformed val = JSON.stringify(o, null, 4) // 4 is the indent size editor.session.setValue(val)

Categories : Javascript

Mirroring with Ace Editor. How to Remove Text of Mirrored Editor
You can use mirror class from https://github.com/ajaxorg/ace/blob/master/lib/ace/worker/mirror.js

Categories : Javascript

Event based editor like in StarCraft 2 Editor (algorithm)
Sounds like a job for jQuery UI. When the user creates a custom area in your editor all it's attributes are stored inside an object (that you can save as JSON) that would then be applied to a div as param when loading the map (using html-attributes. function create_areas(areas){ var map = $('#map_area'); for(var i=0;i<areas.length;i++){ map.append($('<div>', area[i].params)); } } whereas params would look something like this: params = { width: 100, height: 200, .... mousedown: function(){ play_music('hello'); }, keydown: function(e){ alert('you pressed ' + e.keyCode; } } also the jQuery UI tools like draggable and resizeable should ease up building your editor.

Categories : Javascript

Getting the editor content - Ext-Js html editor
You need to use the getValue method of the editor to retrieve its content. handler is an option of the button. You'll need a reference to the editor in the handler, to get its content. You can get it from the form with the findField method, or with a component query. Here's how to update your code to alert the content of the editor when clicking the save button. I've added a second save button to show you the component query method. I've tested it in this fiddle. Ext.onReady(function() { Ext.tip.QuickTipManager.init(); var top = Ext.create('Ext.form.Panel', { frame:true, title: 'HtmlEditor plugins', bodyStyle: 'padding:5px 5px 0', //width: 300, fieldDefaults: { labelAlign: 'top', msgTarg

Categories : Javascript

eclipse juno showing error editor does not contain main file, i think the editor has some error not the code
It is the code. Looks like you've got a copy/paste error. Method declarations are not permitted within the body of other methods. Remove this partial method declaration from the main method String java.io.BufferedReader.readLine() throws IOException

Categories : Java

Kendo Grid - Line Editing Using A Drop-Down List Editor (Editing Custom Editor)
Try changing the following. var Category = [ { 'CategoryName': 'Beverages', 'CategoryID': 1 }, { 'CategoryName': 'Condiments', 'CategoryID': 2 }, { 'CategoryName': 'Confections', 'CategoryID': 3 }, { 'CategoryName': 'Dairy Products', 'CategoryID': 4 }, { 'CategoryName': 'Grains/Cereals', 'CategoryID': 5 }, { 'CategoryName': 'Meat/Poultry', 'CategoryID': 6 }, { 'CategoryName': 'Produce', 'CategoryID': 7 }, { 'CategoryName': 'Seafood', 'CategoryID': 8 } ]; and as the datasource use $('<input required data-text-field="CategoryName" data-value-field="CategoryID" data-bind="value:' + options.field + '"/>') .appendTo(container) .kendoDropDownList({ autoBind: fal

Categories : Javascript

Rich Text Editor (YUI Simple Text Editor used) not sending data to next page
The saveHTML() method you used does not seem to save the value to the textarea element. And because the browser doesn't care about YUI Editor and just submits what is there already in the textarea (which is null), it submits the input as null.. You should set the value of the textarea to the editor value so the browser will submit that value instead of null.. Which can be achieved using this little line: document.getElementsById("msgpost").value = html; See this working JsFiddle I made for you. However you had HTML syntax errors too. The onSubmit attribute should be on the form element not the submit button. And listening to the event is not practical when you can simply call a function when the form submits.. (See the JsFiddle)

Categories : Javascript

How to combine two multidimensional arrays with showing duplicate keys or if duplicate, must add the values
$array1 = array( 'a1' => array(200,300,300), 'a2' => array(100,600,200)); $array2 = array( 'a1' => array('gen','gen2','gen'), 'a2' => array('gen2','gen3','gen3')); $result = array('a1' => array(), 'a2' => array()); foreach($array2 as $k => $v) { foreach ($v as $k2 => $v2){ if (array_key_exists($v2, $result[$k])){ $result[$k][$v2] += $array1[$k][$k2]; } else { $result[$k][$v2] = $array1[$k][$k2]; } } } Output: Array ( [a1] => Array ( [gen] => 500 [gen2] => 300 ) [a2] => Array ( [gen2] => 100 [gen3] => 800 ) )

Categories : PHP

Hudson server running app engine, duplicate shell script executions result in duplicate property errors
It might be the case that the dev_appserver is already running and then you run it again with hudson job. The best way will be to stop the dev_appserver instance first and then pump it up again.

Categories : Python

Which Editor is the best Ember.js editor on Mac
Sublime Text (2/3) seems to be very popular amongst Emberists. I use a combination of Sublime Text and Jetbrains Webstorm, which is a 'heavier' IDE. See their respectives sites for full details.

Categories : Ember Js

Find duplicate values in an array which creates a new array with key as duplicate keys and values as the dupes
This should do what you want. Loop over the array, and see if the value was already in there. If so, add it to the result. $arr_duplicates = array(); foreach($array as $k=>$v){ // array_search returns the 1st location of the element $first_index = array_search($v, $array); // if our current index is past the "original" index, then it's a dupe if($k != $first_index){ $arr_duplicates[$k] = $first_index; } } DEMO: http://ideone.com/Kj0dUV

Categories : PHP

why do I have 2 core.editor in git?
Git looks for configuration settings in three locations: /etc/gitconfig ~/.gitconfig .git/config These are the system-wide, per-user and per-repository settings, respectively. More specific settings override more general ones (e.g. per-repo overrides per-user). The convenient way to get/set them is to use git config --system, git config --global and git config .

Categories : GIT

How to use xul editor with javascript?
After Complicating things myself using a lot of code i finally found it, and it is really dumb to be honest, well here is how it gets done : to set text : var editor = content.document.getElementById("myEditor"); editor.contentDocument.documentElement.innerHTML += "Whatever your text is"; and get text it is obvious : editor.contentDocument.documentElement.innerHTML to think that i spent a loooot of time in this is ... well the innerHTML varies, it depends on what you gave to editortype either html or text, so in case the editortype is set to text in that case we should use innerText.

Categories : Javascript

Create a DLL using VBA editor
I assume you are using Office 2007 products. VBA is a scripting language, using which you build your macros. DLLs are compiled assemblies. VBA editor will not allow you to create a DLL. You could use Visual Basic (not Visual Basic for Applications) to create a DLL and then reference them in your macros. You can also use .NET to create an unmanaged export library as mentioned in this post and then reference it in your macros. Although not necessary, I'd recommend using Visual Studio to build a DLL. I'll state the obvious - why not invest in building a .NET application (or Java or something more enterprisy) than maintaining macros? You may be able to build a flexible configuration so that when your proprietary system changes, the application intelligently changes its parameters also. Th

Categories : Vba

Kendo Ui Editor
Check that you are including the CSS file: <link href="/styles/kendo.default.min.css" rel="stylesheet" type="text/css"/> and that you have a file called sprites.png in /styles/Default

Categories : Asp Net Mvc

Custom Editor For
You need to create an EditorTemplate. In your relevant Views folder, create a directory called EditorTemplates and in it a .cshtml file with the same name as your class. MVC will automatically look there when you call Html.EditorFor(m => m.BigModel) For more information about Editor/Display templates, see this link.

Categories : C#

From editor to excel
I do not know about Rhino, but if you have a *.txt file like the one showed then you can import it to Excel like what you want. In Excel go to File -> Open and select 'All Files(.)' in the file type and then select your input file. You will be prompted to a wizard where you can select the data format, and number of raws. Click Next and select 'Tab', 'Space' for Delimiters then select Next and Finish. You will have your data in Column, Raw format. Then you can simply copy and past on wherever you want in the same Excel sheet or in another sheet or another workbook. I hope this will help.

Categories : Excel

Loading Ace Editor from CDN
I found that using the OP's CDN also lead to problems loading different language in post facto. This lead me using the same source as ACE's kitchen sink demo: //ajaxorg.github.io/ace-builds/src-min-noconflict/ace.js which is perhaps rude, as it effectively uses github as a CDN... I built a nice little jsfiddle to demonstrate loading in different modes after initial editor construction. http://jsfiddle.net/KGhT4/ <style> #editor { position: relative; height:400px; width: 400px } </style> <select id="mode" size="1"> <option value="ace/mode/abap">abap</option> <option value="ace/mode/actionscript">actionscript</option> <option value="ace/mode/ada">ada</option> <option value="ace/mode/asciidoc">asciid

Categories : Javascript

How can i put a editor on a jfacedialog in RCP?
Yes and No. The IEditorPart is specific for the RCP platform, so it would be silly to hack it into a dialog. BUT. I'm guessing you want some widgets on a canvas, to edit an entity. You don't need an editor for that, you simply put all the stuff you need in a Composite inside your dialog.

Categories : Java

Android UI editor
I don't know if I understood the question correctly, but if you want to load and play an swf-file you should use a WebView Something like this should work: WebView webView = new WebView(this); webView.loadUrl("file:///android_asset/c.swf");

Categories : Java

Using Ace Editor with Twitter Bootstrap
ace uses size of the element to which it is attached you can do either of following make span9 position:relative make editor position:absolute;top:0;bottom:0;left:0;right:0 call ace.edit on span9 set editor size with js see https://github.com/ajaxorg/ace/blob/master/lib/ace/ace.js#L96

Categories : HTML

InApp Photo Editor ?
Yes, use the allowsEditing property of UIImagePickerController and the user will get a chance to crop the photo after they take it. It's an easy class to use. Refer to the Camera Programming Topics for code samples and info.

Categories : IOS

Parallelism in VS editor extensions
The Visual Studio editor will only ever run your taggers serialized on the thread the ITextBuffer / ITextView is affinitized to. Since Visual Studio only creates interesting ITextView / ITextBuffer instances on the main thread there isn't much of a threading concern here. I was careful to say interesting above because at one point in time the debugger did create some ITextBuffer instances on background threads. But they used a custom content type hence extensions typically didn't get bound to it. Do note the ITagger<T> API is available to any extension out there. It is technically possible for another extension to create a threading issue in a few ways Request your tagger be created on another thread. I know of no extension that does this and it would be considered bad p

Categories : Visual Studio 2012

How to use WYSIWYG editor in Phpfox?
By default, phpfox use normal tiny mce editor. you can use this code to use WYSIWYG in phpfox {literal} <script type='text/javascript'> $Behavior.commentPreLoadTinymce = function() {l} customTinyMCE_init('message'); {r} </script> {/literal}

Categories : HTML

Custom Script Editor
Here is some code: http://www.codeproject.com/Articles/161871/Fast-Colored-TextBox-for-syntax-highlighting It looks like you want 'idea[s] for [an] algorithm.' Therefore, the difference in language should not matter much.

Categories : Java

invoke an editor ( vim ) in python
Here's how git determines which editor to use. After that, you could just open a new process with the subprocess module.

Categories : Python

Matlab EDITOR under linux
Add the export EDITOR=emacs line to the .profile file in your home directory, which will be sourced when starting login shells. Or, add that line to /etc/profile to make it apply for all users.

Categories : Linux

Data not fetch on CK Editor
You load ckeditor and after you fill the textarea. No way, the ckeditor is loaded. An has not live update. You must change order. <script> function BindData() { $("#input").val('This is CK Editor Demo'); } BindData(); $(document).ready(function () { $("#input").ckeditor(); }); </script>

Categories : Javascript

Using SharedPreferences and Editor as members
Try this code. private final String LANGUAGE = "Language";//Key to identify field in sharedPrefrence file. private final String PREFS_NAME = "SharedPreferenceFile";//Shared Preference file name. public String getLanguageFromSharedPreference() { sharedPreferences = this.getSharedPreferences(PREFS_NAME, 0); return sharedPreferences.getString(LANGUAGE, "en"); } public void setLanguageToSharedPreference(String newlang) { sharedPreferences = this.getSharedPreferences(PREFS_NAME, 0); SharedPreferences.Editor editor = sharedPreferences.edit(); editor.putString(LANGUAGE, newlang); editor.commit(); }

Categories : Java

Mercury Editor with rails4
I just had the same issue. I describe it better in my own question here, but basically the issue comes from a deprecated jquery method calling 'konqueror'. I don't think it had anything to do with your app being in rails 4 btw. I'm in gem 'rails', '3.2.13' I'd up-vote the question but apparently I need more reputation. hint, hint :)

Categories : Ruby On Rails

Markdown editor with preview
tinyMCE version 4 actually works just fine on my iPhone, I've put together a small scaled down example for you on their fiddle-site: http://fiddle.tinymce.com/Ppdaab

Categories : Misc

WYSWYG web editor for Sharepoint
Most public, open source projects for Microsoft can be found at http://www.codeplex.com/. Regarding your requirement, if I understand correctly, you want to have a way to store content in SharePoint for display in a drupal or other CMS. The content should be in HTML format. If I understand you correctly, the easiest way to do this is to create a basic SharePoint list, add a multiline column and set the type of text to Enhanced rich text (Rich text with pictures, tables, and hyperlinks). When you add an item to the list, the form will include a form element that has a WYSWYG editor. I've integrated SharePoint with Linux before using Curl. It's not easy, but can be done.

Categories : Wordpress

How do I update the value in ACE editor: javascript
You can use editor.session.insert({row, column}, text) editor.session.remove({start: {row, column}, end: {row, column}}) editor.session.doc.replace(range, text) to apply each edit individually, or you can get value of the editor modify the string, and call setSalue with the modified string. see https://github.com/ajaxorg/ace/blob/master/lib/ace/document.js#L522

Categories : Javascript

Html editor not work asp.net 4.0
I think you forgot to add ignore route for .axd files to your route method: public static void RegisterRoutes(System.Web.Routing.RouteCollection routes) { routes.Ignore("{resource}.axd/{*pathInfo}");//add this line routes.MapPageRoute("", "{Name}", "~/Membersite.aspx"); } Tell the routing API to not route the files with "axd" extension (the files generated by the scriptmanager)

Categories : C#

ace editor - move to the end of the line
Try: ace_editor.setValue(ParseResponseRules(xmlhttp.responseText), -1); instead of: ace_editor.getSession().setValue(ParseResponseRules(xmlhttp.responseText)); The second parameter explained: undefined or 0 is selectAll, -1 is at the document start, and 1 is at the end Ref: http://ace.c9.io/#nav=api&api=editor

Categories : Javascript



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.