Text Editor -options
Hi,
I have been using text editor control.
In this when we click load file button...an open prompt window appears..
there we will be finding Files of type... dropdown..containing values like text(.txt) file and All file types..
Is there any way to restrict this dropdown to single value..i mean to .txt file..should only be viewed omitting
All files option in dropdown..
i am using CL_GUI_TEXTEDIT..control...
Is there any option to do it...
Please Help me out.
Thanks & Regards,
Sandy.
Hi Sandy,
I don't think there is any method for this. As the dialog box opened is depending on your OS.
But, you can cross check the uploaded file for " .txt " using CP (contains pattern) function of string.
DATA: xl type string.
xl = '*.txt'.
IF not P_FILE CP xl. "P_FILE is name of file you will get.
"Error"
ENDIF.
Sachin
Similar Messages
-
I am working on a project that needs a Rich-Text Editor with
ability to insert tables, images, and more complex editing features
such as what FCKEditor provides but ideally that was built with
Flex in mind. Is there such an editor available? I have seen a few
options but nothing that really matched the functionality of
FCKEditor for example.
ThanksHello,
I was looking for flex version of the FCK Editor,
unfortantly, I could not find a fully complete solution, but I
found the following which might help you:
1.
http://flashtexteditor.com/flexdemo/full/
2.
http://drumbeatinsight.com/examples/htmlcomponent/editor/HTMLWithRTE.html
L.L. -
Rich Text Editor Option for Custom Metadata
Hi,
We have created custom profiles for our clients. In one such profile which was created for news updates, client wants to have rich text editor in case of certain custom metadata fields such as description similar to comments.
As far i as i understand this can be achieved by creating region defintion which gives the option to create a web asset which can edited using site studio api. But is it possible to bring in rich text editor features for custom metadata fields in profiles ?
Regards,
Boopathy PI'd suggest looking into the profile rule's "Use custom include" option.
You need to build the new control on your own, but you'll be able to plug it in via the "Use custom include" profile rule option. It's on the "Edit Rule Field" page.
You can also override the template, but I believe that's a lil' too hardcoded for best practices. This way, you can create a ckeditor textarea and apply it to any metadata you wish (of course, it's up to you to make sure the datatypes match).
Let us know if this helps!
-ryan -
Options -> Text Editor -> C/C++ missing intellisense entry. Intellisense not working. Solutions to turn options for the editor off and on are not working. The intellisense entry is present for other languages,
such as C#, but not C/C++.
By not working, I mean the intellisense right click menu items are grayed out, and intellisense files are not produced.Hi JerroldBrody,
Thank you for posting in MSDN forum.
>>I mean the intellisense right click menu items are grayed out, and intellisense files are not produced.
Based on your issue, could you please share me a screen shot about the intellisense right click menu items are grayed out?
Generally, I know that it is default that we can enable the intellisense for C/C++ by going to the TOOLS->Options -> Text Editor -> C/C++ ->Advanced-> IntelliSense like the following screen shot.
So please try to check if you set Disable Intellisense property as False in the VS IDE.
Best Regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Rich text editor (apex 4.0)
using blue gray theme and a page with a rich text editor. Expanding the rich text options displays the text body p below the text area that persists even if you close the rich text options. Anybody know how to get rid of that behavior?
I think your mixing 2 technologies.
At 1 side you have xml in combination with xsl (style sheets used in BI Publisher and FOP) to generate your pdf. And at the other side you have HTML...
XML and HTML are 2 entirely different technologies which you can not mix this simple. I investigated the same problem as you had, and in the end I ended up using jasperreports instead of FOP.
Maybe BI Publisher has some html regions which you could insert into your word document but I doubt it cause more people have asked the same question on this board...
So my advice: use jasperreports (also it is free for commercial usage)
Success
Br,
Nico -
Set top and bottom inset spacing values in Text Frame Options via jsx script
I am looking for a way to set the top and bottom inset spacing values only to 2 points in Text Frame Options via a .jsx scrpt.
For years, I have used a script that sets Preferences, such as:
with(app.storyPreferences){
opticalMarginAlignment = false;
opticalMarginSize = 12; // pts
I would like to add the code to this same script that would make Top = 0p2 and Bottom 0p2 but leave Left and Right as 0p0.
Any help would be greatly appreciated.Here is the full .jsx file that we now use to set preferences.
Ideally, this could be modified to include setting any text frame created to have 0p2 inset Top and Bottom, but 0p0 Left and Right:
//ApplicationTextDefaults
//An InDesign CS2 JavaScript
//Sets the application text defaults, which will become the text defaults for all
//new documents. Existing documents will remain unchanged.
with(app.textDefaults){
alignToBaseline = false; // align to baseline grid
try {
// appliedFont = app.fonts.item("Times New Roman");
appliedFont = app.fonts.item("Helvetica");
catch (e) {}
try {
fontStyle = "Medium";
catch (e) {}
autoleading = 100;
balanceRaggedLines = false;
baselineShift = 0;
capitalization = Capitalization.normal;
composer = "Adobe Paragraph Composer";
desiredGlyphScaling = 100;
desiredLetterSpacing = 0;
desiredWordSpacing = 100;
dropCapCharacters = 0;
if (dropCapCharacters != 0) {
dropCapLines = 3;
//Assumes that the application has a default character style named "myDropCap"
//dropCapStyle = app.characterStyles.item("myDropCap");
fillColor = app.colors.item("Black");
fillTint = 100;
firstLineIndent = "0pt";
// firstLineIndent = "14pt";
gridAlignFirstLineOnly = false;
horizontalScale = 100;
hyphenateAfterFirst = 3;
hyphenateBeforeLast = 4;
hyphenateCapitalizedWords = false;
hyphenateLadderLimit = 1;
hyphenateWordsLongerThan = 5;
hyphenation = true;
hyphenationZone = "3p";
hyphenWeight = 9;
justification = Justification.leftAlign;
keepAllLinesTogether = false;
keepLinesTogether = true;
keepFirstLines = 2;
keepLastLines = 2;
keepWithNext = 0;
kerningMethod = "Optical";
kerningValue = 0;
leading = 6.3;
// leading = 14;
leftIndent = 0;
ligatures = true;
maximumGlyphScaling = 100;
maximumLetterSpacing = 0;
maximumWordSpacing = 160;
minimumGlyphScaling = 100;
minimumLetterSpacing = 0;
minimumWordSpacing = 80;
noBreak = false;
otfContextualAlternate = true;
otfDiscretionaryLigature = true;
otfFigureStyle = OTFFigureStyle.proportionalOldstyle;
otfFraction = true;
otfHistorical = true;
otfOrdinal = false;
otfSlashedZero = true;
otfSwash = false;
otfTitling = false;
overprintFill = false;
overprintStroke = false;
pointSize = 6.3;
// pointSize = 11;
position = Position.normal;
rightIndent = 0;
ruleAbove = false;
if(ruleAbove == true){
ruleAboveColor = app.colors.item("Black");
ruleAboveGapColor = app.swatches.item("None");
ruleAboveGapOverprint = false;
ruleAboveGapTint = 100;
ruleAboveLeftIndent = 0;
ruleAboveLineWeight = .25;
ruleAboveOffset = 14;
ruleAboveOverprint = false;
ruleAboveRightIndent = 0;
ruleAboveTint = 100;
ruleAboveType = app.strokeStyles.item("Solid");
ruleAboveWidth = RuleWidth.columnWidth;
ruleBelow = false;
if(ruleBelow == true){
ruleBelowColor = app.colors.item("Black");
ruleBelowGapColor = app.swatches.item("None");
ruleBelowGapOverprint = false;
ruleBelowGapTint = 100;
ruleBelowLeftIndent = 0;
ruleBelowLineWeight = .25;
ruleBelowOffset = 0;
ruleBelowOverprint = false;
ruleBelowRightIndent = 0;
ruleBelowTint = 100;
ruleBelowType = app.strokeStyles.item("Solid");
ruleBelowWidth = RuleWidth.columnWidth;
singleWordJustification = SingleWordJustification.leftAlign;
skew = 0;
spaceAfter = 0;
spaceBefore = 0;
startParagraph = StartParagraph.anywhere;
strikeThru = false;
if(strikeThru == true){
strikeThroughColor = app.colors.item("Black");
strikeThroughGapColor = app.swatches.item("None");
strikeThroughGapOverprint = false;
strikeThroughGapTint = 100;
strikeThroughOffset = 3;
strikeThroughOverprint = false;
strikeThroughTint = 100;
strikeThroughType = app.strokeStyles.item("Solid");
strikeThroughWeight = .25;
strokeColor = app.swatches.item("None");
strokeTint = 100;
strokeWeight = 0;
tracking = 0;
underline = false;
if(underline == true){
underlineColor = app.colors.item("Black");
underlineGapColor = app.swatches.item("None");
underlineGapOverprint = false;
underlineGapTint = 100;
underlineOffset = 3;
underlineOverprint = false;
underlineTint = 100;
underlineType = app.strokeStyles.item("Solid");
underlineWeight = .25
verticalScale = 100;
//Units & Increments preference panel
//Must do this to make sure our units that we set are in points. The vert and horiz
//units that get set default to the current measurement unit. We set it to points
//so we can be sure of the value. We'll reset it later to the desired setting.
with(app.viewPreferences){
horizontalMeasurementUnits = MeasurementUnits.points; // Ruler Units, horizontal
verticalMeasurementUnits = MeasurementUnits.points; // Ruler Units, vertical
//General preference panel
with(app.generalPreferences){
pageNumbering = PageNumberingOptions.section; // Page Numbering, View
toolTips = ToolTipOptions.normal; // Tool Tips
// Not supported in CS4
// toolsPalette = ToolsPaletteOptions.doubleColumn; // Floating Tool Palette
completeFontDownloadGlyphLimit = 2000; // Always Subset Fonts...
try {
//Wrapped in try/catch in case it is run with CS4 and earlier to avoid the error
preventSelectingLockedItems = false; // Needed for CS5+
catch (e) {}
//Type preference panel
with (app.textEditingPreferences){
tripleClickSelectsLine = true; // Triple Click to Select a Line
smartCutAndPaste = true; // Adjust Spacing Automatically when Cutting and Pasting Words
dragAndDropTextInLayout = false; // Enable in Layout View
allowDragAndDropTextInStory = true; // Enable in Story Editor
with(app.textPreferences){
typographersQuotes = true; // Use Typographer's Quotes
useOpticalSize = true; // Automatically Use Correct Optical Size
scalingAdjustsText = true; // Adjust Text Attributes when Scaling
useParagraphLeading = false; // Apply Leading to Entire Paragraphs
linkTextFilesWhenImporting = false; // Create Links when Placing Text and Spreadsheet Files
// Missing following (Font Preview Size, Past All Information/Text Only)
//Advanced Type preference panel
with(app.textPreferences){
superscriptSize = 58.3; // Superscript, size
superscriptPosition = 33.3; // Superscript, position
subscriptSize = 58.3; // Subscript, size
subscriptPosition = 33.3; // Subscript, position
smallCap = 70; // Smallcap
with(app.imePreferences){
inlineInput = false; // Use Inline Input for Non-Latin Text
//Composition preference panel
with(app.textPreferences){
highlightKeeps = false; // Keep Violations
highlightHjViolations = false; // H&J Violations
highlightCustomSpacing = false; // Custom Tracking/Kerning
highlightSubstitutedFonts = true; // Substituted Fonts
highlightSubstitutedGlyphs = false; // Substituted Glyphs
justifyTextWraps = false; // Justify Text Next to an Object
abutTextToTextWrap = true; // Skip by Leading
zOrderTextWrap = false; // Text Wrap Only Affects Text Beneath
//Units & Increments preference panel
with(app.viewPreferences){
rulerOrigin = RulerOrigin.spreadOrigin; // Ruler Units, origin
// These are set at the end of the script after all the changes have been made
// horizontalMeasurementUnits = MeasurementUnits.points; // Ruler Units, horizontal
// verticalMeasurementUnits = MeasurementUnits.inches; // Ruler Units, vertical
pointsPerInch = 72; // Point/Pica Size, Points/Inch
cursorKeyIncrement = 1; // Keyboard Increment, Cursor Key
with(app.textPreferences){
baselineShiftKeyIncrement = 2; // Keyboard Increment, Baseline Shift
leadingKeyIncrement = 2; // Keyboard Increment, Size/Leading
kerningKeyIncrement = 20; // Keyboard Increment, Kerning
//Grids preference panel
with(app.gridPreferences){
baselineColor = UIColors.lightBlue; // Baseline Grid, Color
baselineStart = 48; // Baseline Grid, Start
baselineDivision = 6; // Baseline Grid, Increment Every
baselineViewThreshold = 50; // Baseline Grid, View Threshold
baselineGridRelativeOption = BaselineGridRelativeOption.topOfPageOfBaselineGridRelativeOption; // Baseline Grid, Relative To
gridColor = UIColors.lightGray; // Document Grid, Color
horizontalGridlineDivision = 12; // Document Grid, Horizontal, Gridline Every
horizontalGridSubdivision = 12; // Document Grid, Horizontal, Subdivisions
verticalGridlineDivision = 12; // Document Gird, Vertical, Gridline Every
verticalGridSubdivision = 12; // Document Grid, Vertical, Subdivisions
gridsInBack = true; // Grids in Back
documentGridSnapto = false; // snap to grid or not
documentGridShown = false; // show document grid
//Guides & Pasteboard preference panel
with(app.documentPreferences){
marginGuideColor = UIColors.violet; // Color, Margins
columnGuideColor = UIColors.magenta; // Color, Columns
with(app.pasteboardPreferences){
bleedGuideColor = UIColors.fiesta; // Color, Bleed
slugGuideColor = UIColors.gridBlue; // Color, Slug
previewBackgroundColor = UIColors.lightGray; // Color, Preview Background
minimumSpaceAboveAndBelow = 72; // Minimum Vertical Offset
with(app.viewPreferences){
guideSnaptoZone = 4; // Snap to Zone
with(app.guidePreferences){
guidesInBack = false; // Guides in Back
//Dictionary preference panel
with(app.dictionaryPreferences){
composition = ComposeUsing.both; // Hyphenatin Exceptions, Compose Using
mergeUserDictionary = false; // Merge User Dictionary into Document
recomposeWhenChanged = true; // Recompose All Stories When Modified
// Missing (Lang, Hyph, Spelling, Double Quotes, Single Quotes)
//Spelling preference panel
with(app.spellPreferences){
checkMisspelledWords = true; // Find, Misspelled Words
checkRepeatedWords = true; // Find, Repeated Words
checkCapitalizedWords = true; // Find, Uncapitalized Words
checkCapitalizedSentences = true; // Find, Uncapitalized Sentences
dynamicSpellCheck = true; // Enable Dynamic Spelling
misspelledWordColor = UIColors.red; // Color, Misspelled Words
repeatedWordColor = UIColors.green; // Color, Repeated Words
uncapitalizedWordColor = UIColors.green; // Color, Uncapitalized Words
uncapitalizedSentenceColor = UIColors.green; // Color, Uncapitalized Sentences
//Autocorrect preference panel
with(app.autoCorrectPreferences){
autoCorrect = true; // Enable Autocorrect
autoCorrectCapitalizationErrors = false; // Autocorrect Capitalization
// Missing (Language, Misspelled word pairs)
//Display Performance preference panel
with(app.displayPerformancePreferences){
defaultDisplaySettings = ViewDisplaySettings.typical; // Preserve Object-Level
persistLocalSettings = false;
// Missing (antialiasiing, greek below
//Story Editor Display preference panel
with(app.galleyPreferences){
textColor = InCopyUIColors.black; // Text Color
backgroundColor = InCopyUIColors.white; // Background
smoothText = true; // Enable Anti-Aliasing
antiAliasType = AntiAliasType.grayAntialiasing; // Type
cursorType = CursorTypes.standardCursor; // Cursor Type
blinkCursor = true; // Blink
// Missing (Font, Size, Line Spacing & Theme)
//File Handling preference panel
with(app.generalPreferences){
includePreview = true; // Always Save Preview Images with Doc
previewSize = PreviewSizeOptions.medium; // Preview Size
with(app.clipboardPreferences){
preferPDFWhenPasting = false; // Prefer PDF When Pasting
copyPDFToClipboard = true; // Copy PDF to Clipboard
preservePdfClipboardAtQuit = false; // Preserve PDF Data at Quit
// Missing (Enable Version Cue)
// Optical margin (hanging punctuation, outside margins)
with(app.storyPreferences){
opticalMarginAlignment = false;
opticalMarginSize = 12; // pts
//Wrap Up (do at end of script)
//Units & Increments preference panel
//Must do this to make sure our units that we set are in points. The vert and horiz
//units that get set default to the current measurement unit. We set it to points
//so we can be sure of the value. We'll reset it later to the desired setting.
with(app.viewPreferences){
horizontalMeasurementUnits = MeasurementUnits.picas; // Ruler Units, horizontal
verticalMeasurementUnits = MeasurementUnits.inches; // Ruler Units, vertical
// These two flags are turned off to avoid the error message about
// missing image links when InDesign opens an ad. This can especially
// be a problem when doing batch processes.
with(app.linkingPreferences){
checkLinksAtOpen = false; // checkbox: true/false
findMissingLinksAtOpen = false; // checkbox: true/false -
Text Editor using cl_gui_textedit
Hi,
I need a text editor box on selection screen in display mode. and I'm using cl_gui_textedit class to get it.. but for some reason its not working.
Here is the code below -
report YLTEST1
no standard page heading line-size 255.
DATA: g_text_editor TYPE REF TO cl_gui_textedit,
g_text_container TYPE REF TO cl_gui_custom_container,
g_gen_text_editor TYPE REF TO cl_gui_textedit,
g_gen_text_container TYPE REF TO cl_gui_custom_container.
DATA: WORDWRAP_POSITION LIKE CL_GUI_TEXTEDIT=>M_WORDWRAP_POSITION.
data: g_gen_txt_container TYPE scrfname VALUE 'GENERAL_TEXT_FOR_REPS'.
DATA: TEXT_TAB TYPE STANDARD TABLE OF LINE.
parameters: p_check.
at selection-screen output.
Create sales Text container
WORDWRAP_POSITION = 100.
IF G_GEN_TEXT_CONTAINER IS INITIAL.
CREATE OBJECT:
G_GEN_TEXT_CONTAINER EXPORTING CONTAINER_NAME = G_GEN_TXT_CONTAINER,
G_GEN_TEXT_EDITOR EXPORTING PARENT = G_GEN_TEXT_CONTAINER
WORDWRAP_MODE = CL_GUI_TEXTEDIT=>WORDWRAP_AT_FIXED_POSITION
WORDWRAP_POSITION = WORDWRAP_POSITION
WORDWRAP_TO_LINEBREAK_MODE = CL_GUI_TEXTEDIT=>TRUE.
ENDIF.
IF not G_GEN_TEXT_CONTAINER IS INITIAL.
Set container options
CALL METHOD: G_GEN_TEXT_EDITOR->SET_TOOLBAR_MODE
EXPORTING TOOLBAR_MODE = 0,
G_GEN_TEXT_EDITOR->SET_READONLY_MODE
EXPORTING READONLY_MODE = 1,
G_GEN_TEXT_EDITOR->SET_STATUSBAR_MODE
EXPORTING STATUSBAR_MODE = 0,
G_GEN_TEXT_EDITOR->SET_AUTOINDENT_MODE
EXPORTING AUTO_INDENT = 1.
Pass the text to the sales text container
CALL METHOD G_GEN_TEXT_EDITOR->SET_TEXT_AS_STREAM
EXPORTING
TEXT = TEXT_TAB.
endif.Try this way:
DATA: lo_dock TYPE REF TO cl_gui_docking_container.
DATA: lo_text_editor TYPE REF TO cl_gui_textedit.
DATA: lt_tab TYPE STANDARD TABLE OF char80.
DATA: la_tab LIKE LINE OF lt_tab.
DATA: w_carrid TYPE sflight-carrid.
** Selection Screen
SELECTION-SCREEN: BEGIN OF BLOCK blk1 WITH FRAME TITLE aaa.
SELECT-OPTIONS: s_carrid FOR w_carrid.
SELECTION-SCREEN: END OF BLOCK blk1.
INITIALIZATION.
* Docking container
CHECK lo_dock IS INITIAL.
CREATE OBJECT lo_dock
EXPORTING
repid = sy-cprog
dynnr = sy-dynnr
ratio = 80
side = cl_gui_docking_container=>dock_at_bottom
name = 'DOCK_CONT'.
IF sy-subrc <> 0.
MESSAGE 'Error in the Docking control' TYPE 'S'.
ENDIF.
* Text Editor
CREATE OBJECT lo_text_editor
EXPORTING
parent = lo_dock
EXCEPTIONS
error_cntl_create = 1
error_cntl_init = 2
error_cntl_link = 3
error_dp_create = 4
gui_type_not_supported = 5
OTHERS = 6
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
* Set text
la_tab = 'This is test'.
APPEND la_tab TO lt_tab.
CALL METHOD lo_text_editor->set_text_as_r3table
EXPORTING
table = lt_tab
EXCEPTIONS
error_dp = 1
error_dp_create = 2
OTHERS = 3.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Regards,
Naimesh Patel -
Need to have a Rich Text Editor
I require to use a Rich Text Editor where in I can copy both text and attachments (word/excel/pdf) from an email (Outlook or Lotus Notes) and have that stored into an Oracle table.
The text that is copied must go into a CLOB column in the database whereas the attachments should be stored as a BLOB.
My preference is copying the complete data (text and attachments) in one go but if that is not possible then copying the text and attachments separately would do.
Also there is no limit on the number of attachments that might be there.
Any solution using Java / Oracle would be greatly appreciated.Hi,
We are trying to connect to Lotus Notes mailbox using JavaMail using the IMAP protocol. We are successfully able to ping our mail server but are not able to connect to the mailbox. We tried the default port option for IMAP (143) but were not able to ping the server as well but with port 25 we are able to ping the mail server.
Please find below the error we are getting on the console -
Exception in thread "main" javax.mail.MessagingException: 220 SERVERNAME Hello!;
nested exception is:
com.sun.mail.iap.ConnectionException: 220 SERVERNAME Hello!
at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:477)
at javax.mail.Service.connect(Service.java:275)
at jmail.javamail.main(javamail.java:51)
Caused by: com.sun.mail.iap.ConnectionException: 220 SERVERNAME Hello!
at com.sun.mail.imap.protocol.IMAPProtocol.processGreeting(IMAPProtocol.java:201)
at com.sun.mail.iap.Protocol.<init>(Protocol.java:91)
at com.sun.mail.imap.protocol.IMAPProtocol.<init>(IMAPProtocol.java:87)
at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:446)
... 2 more
Please let us know if we need to perform any additional authentication check needed before connecting to the server.
Any help is appreciated. -
Using Text Editor control in Visual Compose
Hello,
I have added Text Editor control in a input form with certain dimensions, but when I preview the form the text edit field has different height than my layout view.
Do you know what am I doing wrong?
MarceloHello marcelo,
When you check the configuration panel (on the upper- right side). There's an option in layout "fit content" this might be on auto, you could change it to actual size.
Regards -
Hi,
I'm using stellent 7.5.1.
I cannot upload pics and/or update text via the rich text editor .. The editor field opens, but just stays grey, i.e. they don’t have any option of entering or saving text.
I have even checked Java version its fine.
Do i need to change any config setting to enable to editor again?
ThanksThe 7.5 editor uses an ActiveX plugin, so it only works in Internet Explorer. There may also be security settings in Internet Explorer that might interfere with the way it works.
If you get it going, try this article for some enhancements to the editor.
http://webmonkeymagic.blogspot.com/2007/12/get-enhanced-contributor-editing.html -
We've upgraded our computers to Win7/IE 11 but now when I try to edit our MOSS 2007 Content Editor Web Parts, the option to choose either the Rich Text Editor or Source Editor is gone, and all I get is a tiny HTML window. What do I need to do to get back
the Rich Text edit option?Glad that it worked. One thing you need to be aware of Compatibility View is that it adds the entire domain to the View not just the URL. So if your website is
http://sample.mycompany.com it adds entire mycompany.com to the list.
This implies if you have another site in the same domain http://onemoresite.mycompany.com , then Compatibility View is applicable even for that site. This might cause issues if your other 'breaks' when
rendered in Compatibility Mode. -
Rich Text Editor functionality for a DIV tag in a publishing page in SharePoint online
Hi,
We are having a requirement where we need RTE behavior of SharePoint 2013 Rich Html Field for a custom DIV. The scenario goes like this:
1. I have a publishing page
2. I dropped the content editor web part and to that content editor web part I will point to an HTML file that needs to be rendered in that content editor web part
3. I have one DIV in the above mentioned HTML files and I want that div to be editable and I need to RTE options for that DIV.
How to accomplish the above behavior?Hi,
According to your post, my understanding is that you wanted to create html rich text editor for a DIV tag in a publishing page in SharePoint online.
You can create your own Rich Text Editor.
Here are some great blogs for your reference:
An Example to Use HTML Rich Text Editor
Example: Using the Editor's instance
Rich Text Editor control in SharePoint 2010
Regarding SharePoint Online, for quick and accurate answers to your questions, it is recommended that you initial a new thread in Office 365 forum.
Office 365 forum
http://community.office365.com/en-us/forums/default.aspx
Best Regards,
Linda Li
Linda Li
TechNet Community Support -
Pasting from the clipboard using SharePoint 2010 rich text editor
Currently we are using Microsoft SharePoint 2010. In the Rich Text Editor their is a Paste option in which a user can copy from say a Word document and paste it in their content place holder. Right now I recieve an error message when trying to use the paste button " Your browser is not configured to allow access to your computer’s clipboard. Use Control+X for Cut, Control+C for Copy, and Control+V for paste". I cannot use the paste button for whatever reason. I have tried to change my javascript file within FireFox and it still doesnt work. After working with Microsoft on the problem they informed me that it was FireFox causing the problem and suggested I contact you for information or possible fixes.
See:
*http://kb.mozillazine.org/Granting_JavaScript_access_to_the_clipboard
*https://addons.mozilla.org/firefox/addon/allowclipboard-helper/ - AllowClipboard Helper -
I have created an applet editor that will enable a user to break a text file down into a series of smaller html files. This does serve a purpose that is not really important at the moment and I don't want to bore you all.
The problem I am having is that upon clicking the open button and the 2 save buttons, the applet opens file chooser where you can select a file. The problem is that once the file is open, the applet, for some reason starts the openfile() method again. The same happens when using the the 2 saveFile() methods. Can anyone help?
package tagger;
import java.awt.*;
import java.applet.*;
import javax.swing.JComboBox;
import javax.swing.JPanel;
import javax.swing.JButton;
import javax.swing.text.Document;
import javax.swing.JTextArea;
import javax.swing.JTextField;
import javax.swing.JScrollPane;
import javax.swing.SwingConstants;
import javax.swing.JLabel;
import java.io.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.net.*;
import java.net.URL;
import java.io.IOException;
import java.io.DataInputStream;
import javax.swing.filechooser.FileFilter;
* <p>Title: Cheshire Parish Register Database Note Tagging System</p>
* <p>Description: An online Text Editor and Note Creation Tool for use with
* CPRDB</p>
* <p>Copyright: </p>
* <p>Company: The University Of Liverpool</p>
* @author Mike Melling
* @version 1.0
public class NoteTagger extends Applet {
public String fileName = null;
boolean isStandalone = false;
BorderLayout borderLayout1 = new BorderLayout();
JPanel jPanel1 = new JPanel();
BorderLayout borderLayout2 = new BorderLayout();
JPanel jPanel2 = new JPanel();
JPanel jPanel3 = new JPanel();
JPanel jPanel4 = new JPanel();
JPanel jPanel5 = new JPanel();
JPanel jPanel6 = new JPanel();
BorderLayout borderLayout3 = new BorderLayout();
BorderLayout borderLayout4 = new BorderLayout();
BorderLayout borderLayout6 = new BorderLayout();
BorderLayout borderLayout7 = new BorderLayout();
JScrollPane jScrollPane1 = new JScrollPane();
JTextArea jTextArea1 = new JTextArea();
JScrollPane jScrollPane2 = new JScrollPane();
JTextArea jTextArea4 = new JTextArea();
BorderLayout borderLayout8 = new BorderLayout();
JPanel jPanel7 = new JPanel();
JPanel jPanel8 = new JPanel();
JPanel jPanel9 = new JPanel();
JPanel jPanel10 = new JPanel();
JPanel jPanel11 = new JPanel();
JPanel jPanel13 = new JPanel();
JPanel jPanel14 = new JPanel();
BorderLayout borderLayout9 = new BorderLayout();
JPanel jPanel15 = new JPanel();
JPanel jPanel16 = new JPanel();
JPanel jPanel17 = new JPanel();
JPanel jPanel18 = new JPanel();
JPanel jPanel19 = new JPanel();
BorderLayout borderLayout10 = new BorderLayout();
JButton jButton2 = new JButton();
JButton jButton1 = new JButton();
JPanel jPanel22 = new JPanel();
BorderLayout borderLayout12 = new BorderLayout();
JScrollPane jScrollPane5 = new JScrollPane();
JTextArea jTextArea3 = new JTextArea();
JLabel jLabel1 = new JLabel();
BorderLayout borderLayout13 = new BorderLayout();
BorderLayout borderLayout14 = new BorderLayout();
FlowLayout flowLayout1 = new FlowLayout();
BorderLayout borderLayout15 = new BorderLayout();
JPanel jPanel27 = new JPanel();
Document document1 = jTextArea1.getDocument();
Document document2 = jTextArea3.getDocument();
JFileChooser jFileChooser1 = new JFileChooser();
String currFileName = null; // Full path and filename. null means new/untitled.
JPanel jPanel20 = new JPanel();
java.awt.BorderLayout borderLayout16 = new BorderLayout();
JPanel jPanel24 = new JPanel();
JTextField jTextField1 = new JTextField();
JPanel jPanel25 = new JPanel();
java.awt.BorderLayout borderLayout18 = new BorderLayout();
JTextField jTextField2 = new JTextField();
JPanel jPanel26 = new JPanel();
JPanel jPanel12 = new JPanel();
JPanel jPanel21 = new JPanel();
JPanel jPanel23 = new JPanel();
JPanel jPanel28 = new JPanel();
java.awt.BorderLayout borderLayout5 = new BorderLayout();
JButton jButton6 = new JButton();
JButton jButton7 = new JButton();
JFileChooser jFileChooser2 = new JFileChooser();
String currFileName2 = null; //Full path and filename. null means new/untitled
JButton jButton3 = new JButton();
public String getParameter(String key, String def) {
return isStandalone ? System.getProperty(key, def) :
(getParameter(key) != null ? getParameter(key) : def);
//Construct the applet
public NoteTagger() {
try {
jbInit();
} catch (Exception ex) {
ex.printStackTrace();
//Initialize the applet
public void init() {
try {
jbInit();
} catch (Exception e) {
e.printStackTrace();
//Component initialization
private void jbInit() throws Exception {
jPanel1.setLayout(borderLayout2);
jPanel5.setLayout(borderLayout3);
jPanel2.setLayout(borderLayout13);
jPanel6.setLayout(borderLayout14);
jPanel3.setLayout(borderLayout6);
jPanel4.setLayout(borderLayout7);
jTextArea1.setLineWrap(true);
jPanel3.setPreferredSize(new Dimension(700, 100));
jPanel4.setBackground(Color.lightGray);
jPanel4.setPreferredSize(new Dimension(700, 50));
jTextArea4.setPreferredSize(new Dimension(700, 100));
jTextArea4.setEditable(false);
jTextArea4.setText("");
jScrollPane2.setVerticalScrollBarPolicy(JScrollPane.
VERTICAL_SCROLLBAR_ALWAYS);
jScrollPane2.setPreferredSize(new Dimension(700, 100));
this.setLayout(borderLayout8);
jPanel2.setBackground(Color.lightGray);
jPanel2.setPreferredSize(new Dimension(700, 850));
jPanel7.setBackground(Color.lightGray);
jPanel8.setBackground(Color.lightGray);
jPanel9.setBackground(Color.lightGray);
jPanel10.setBackground(Color.lightGray);
jPanel11.setBackground(Color.lightGray);
jScrollPane1.setVerticalScrollBarPolicy(JScrollPane.
VERTICAL_SCROLLBAR_ALWAYS);
jScrollPane1.setMinimumSize(new Dimension(300, 470));
jScrollPane1.setPreferredSize(new Dimension(470, 470));
jPanel13.setBackground(Color.lightGray);
jPanel14.setBackground(Color.lightGray);
jPanel14.setLayout(borderLayout9);
jPanel15.setBackground(Color.lightGray);
jPanel15.setLayout(borderLayout10);
jPanel16.setBackground(Color.lightGray);
jPanel16.setPreferredSize(new Dimension(10, 7));
jPanel19.setBackground(Color.lightGray);
jPanel18.setBackground(Color.lightGray);
jPanel18.setPreferredSize(new Dimension(280, 33));
jPanel18.setLayout(flowLayout1);
jPanel17.setBackground(Color.lightGray);
jButton2.setBackground(Color.lightGray);
jButton2.setPreferredSize(new Dimension(83, 23));
jButton2.setHorizontalAlignment(SwingConstants.CENTER);
jButton2.setHorizontalTextPosition(SwingConstants.CENTER);
jButton2.setText("Open");
jButton2.addActionListener(new NoteTagger_jButton2_actionAdapter(this));
jPanel5.setPreferredSize(new Dimension(500, 560));
jPanel6.setBackground(Color.lightGray);
jPanel6.setMinimumSize(new Dimension(217, 550));
jPanel6.setPreferredSize(new Dimension(500, 560));
jPanel22.setBackground(Color.lightGray);
jPanel22.setLayout(borderLayout15);
jScrollPane5.setHorizontalScrollBarPolicy(JScrollPane.
HORIZONTAL_SCROLLBAR_AS_NEEDED);
jScrollPane5.setVerticalScrollBarPolicy(JScrollPane.
VERTICAL_SCROLLBAR_ALWAYS);
jScrollPane5.setMaximumSize(new Dimension(32767, 245));
jScrollPane5.setMinimumSize(new Dimension(300, 470));
jScrollPane5.setPreferredSize(new Dimension(300, 470));
jLabel1.setFont(new java.awt.Font("Dialog", Font.PLAIN, 20));
jLabel1.setToolTipText("");
jLabel1.setHorizontalAlignment(SwingConstants.CENTER);
jLabel1.setHorizontalTextPosition(SwingConstants.CENTER);
jLabel1.setText("Cheshire Parish Register Database Note Tagging System");
jPanel27.setBackground(Color.lightGray);
jTextArea3.setMaximumSize(new Dimension(2147483647, 2147483647));
jTextArea1.setDocument(document1);
jTextArea3.setMaximumSize(new Dimension(2147483647, 2147483647));
jTextArea3.setDocument(document2);
jButton1.setBackground(Color.lightGray);
jButton1.setPreferredSize(new Dimension(83, 23));
jButton1.setHorizontalAlignment(SwingConstants.CENTER);
jButton1.setHorizontalTextPosition(SwingConstants.CENTER);
jButton1.setText("Save");
jButton1.addActionListener(new NoteTagger_jButton1_actionAdapter(this));
jButton1.setEnabled(false);
this.setBackground(Color.lightGray);
jPanel1.setBorder(BorderFactory.createRaisedBevelBorder());
jPanel1.setPreferredSize(new Dimension(1000, 750));
jPanel20.setLayout(borderLayout16);
jTextField1.setPreferredSize(new Dimension(62, 25));
jTextField1.setText("");
jPanel24.setBackground(Color.lightGray);
jPanel24.setMaximumSize(new Dimension(10, 10));
jPanel25.setLayout(borderLayout18);
jTextField2.setMaximumSize(new Dimension(62, 25));
jTextField2.setPreferredSize(new Dimension(62, 25));
jTextField2.setText("");
jPanel26.setBackground(Color.lightGray);
jPanel26.setMaximumSize(new Dimension(10, 10));
jPanel25.setPreferredSize(new Dimension(470, 505));
jPanel12.setPreferredSize(new Dimension(300, 40));
jPanel12.setLayout(borderLayout5);
jPanel28.setBackground(Color.lightGray);
jPanel21.setBackground(Color.lightGray);
jPanel23.setBackground(Color.lightGray);
jButton6.setBackground(Color.lightGray);
jButton6.setPreferredSize(new Dimension(83, 23));
jButton6.setText("Save");
jButton6.setEnabled(false);
jButton6.addActionListener(new NoteTagger_jButton6_actionAdapter(this));
jButton7.setBackground(Color.lightGray);
jButton7.setPreferredSize(new Dimension(83, 23));
jButton7.setText("Query");
jButton7.addActionListener(new NoteTagger_jButton7_actionAdapter(this));
jFileChooser1.addChoosableFileFilter( new FileFilter1() );
jFileChooser1.setAcceptAllFileFilterUsed( false );
jFileChooser1.setMultiSelectionEnabled( false );
jFileChooser1.setSelectedFile( null );
jFileChooser2.addChoosableFileFilter( new FileFilter2() );
jFileChooser2.setAcceptAllFileFilterUsed( false );
jFileChooser2.setMultiSelectionEnabled( false );
jFileChooser2.setSelectedFile( null );
jButton3.setMaximumSize(new Dimension(83, 23));
jButton3.setMinimumSize(new Dimension(83, 23));
jButton3.setPreferredSize(new Dimension(83, 23));
jButton3.setText("New");
jButton3.addActionListener(new NoteTagger_jButton3_actionAdapter(this));
jPanel1.add(jPanel2, java.awt.BorderLayout.CENTER);
jPanel1.add(jPanel3, java.awt.BorderLayout.SOUTH);
jScrollPane2.getViewport().add(jTextArea4);
this.add(jPanel1, java.awt.BorderLayout.CENTER);
jPanel3.add(jScrollPane2, java.awt.BorderLayout.CENTER);
jPanel3.add(jPanel8, java.awt.BorderLayout.SOUTH);
jPanel3.add(jPanel9, java.awt.BorderLayout.WEST);
jPanel3.add(jPanel10, java.awt.BorderLayout.EAST);
jPanel3.add(jPanel11, java.awt.BorderLayout.NORTH);
jPanel5.add(jPanel7, java.awt.BorderLayout.WEST);
jPanel5.add(jPanel13, java.awt.BorderLayout.EAST);
jPanel5.add(jPanel20, java.awt.BorderLayout.CENTER);
jPanel14.add(jPanel16, java.awt.BorderLayout.SOUTH);
jPanel14.add(jPanel15, java.awt.BorderLayout.NORTH);
jPanel15.add(jPanel19, java.awt.BorderLayout.WEST);
jPanel15.add(jPanel17, java.awt.BorderLayout.EAST);
jPanel15.add(jPanel18, java.awt.BorderLayout.CENTER);
jPanel4.add(jLabel1, java.awt.BorderLayout.CENTER);
jPanel18.add(jButton2);
jPanel18.add(jButton1);
jPanel20.add(jTextField1, java.awt.BorderLayout.NORTH);
jPanel5.add(jPanel14, java.awt.BorderLayout.NORTH);
jScrollPane1.getViewport().add(jTextArea1);
jPanel25.add(jScrollPane5, java.awt.BorderLayout.SOUTH);
jPanel25.add(jTextField2, java.awt.BorderLayout.NORTH);
jPanel25.add(jPanel26, java.awt.BorderLayout.CENTER);
jPanel6.add(jPanel12, java.awt.BorderLayout.NORTH);
jScrollPane5.getViewport().add(jTextArea3);
jPanel6.add(jPanel27, java.awt.BorderLayout.EAST);
jPanel1.add(jPanel4, java.awt.BorderLayout.NORTH);
jPanel1.add(jPanel5, java.awt.BorderLayout.WEST);
jPanel1.add(jPanel6, java.awt.BorderLayout.EAST);
jPanel6.add(jPanel22, java.awt.BorderLayout.WEST);
jPanel6.add(jPanel25, java.awt.BorderLayout.CENTER);
jPanel12.add(jPanel28, java.awt.BorderLayout.WEST);
jPanel21.add(jButton7);
jPanel21.add(jButton6);
jPanel21.add(jButton3);
jPanel12.add(jPanel23, java.awt.BorderLayout.EAST);
jPanel12.add(jPanel21, null);
jPanel20.add(jPanel24, java.awt.BorderLayout.CENTER);
jPanel20.add(jScrollPane1, java.awt.BorderLayout.SOUTH);
//Start the applet
public void start() {
//Stop the applet
public void stop() {
//Destroy the applet
public void destroy() {
//Get Applet information
public String getAppletInfo() {
return "Applet Information";
//Get parameter info
public String[][] getParameterInfo() {
return null;
// Open named file; read text from file into jTextArea1; report to statusBar.
void openFile(String fileName) {
try {
// Open a file of the given name.
File file = new File(fileName);
// Get the size of the opened file.
int size = (int) file.length();
// Set to zero a counter for counting the number of
// characters that have been read from the file.
int chars_read = 0;
// Create an input reader based on the file, so we can read its data.
// FileReader handles international character encoding conversions.
FileReader in = new FileReader(file);
// Create a character array of the size of the file,
// to use as a data buffer, into which we will read
// the text data.
char[] data = new char[size];
// Read all available characters into the buffer.
while (in.ready()) {
// Increment the count for each character read,
// and accumulate them in the data buffer.
chars_read += in.read(data, chars_read, size - chars_read);
in.close();
// Create a temporary string containing the data,
// and set the string into the JTextArea.
jTextArea1.setText(new String(data, 0, chars_read));
// Cache the currently opened filename for use at save time...
this.currFileName = fileName;
jButton1.setEnabled(true);
jTextArea4.append('\n'+"Opnened "+ currFileName);
catch (IOException e) {
jTextArea4.append('\n'+"Error opening "+fileName);
// Save current file; handle not yet having a filename; report to statusBar.
boolean saveFile() {
// Handle the case where we don't have a file name yet.
if (currFileName == null) {
return saveAsFile();
try {
// Open a file of the current name.
File file = new File (currFileName);
// Create an output writer that will write to that file.
// FileWriter handles international characters encoding conversions.
FileWriter out = new FileWriter(file);
String text = jTextArea1.getText();
out.write(text);
out.close();
jButton1.setEnabled(false);
return true;
catch (IOException e) {
jTextArea4.append('\n'+"Error saving "+ currFileName);
return false;
// Save current file; handle not yet having a filename; report to statusBar.
boolean saveFile2() {
// Handle the case where we don't have a file name yet.
if (currFileName2 == null) {
return saveAsFile2();
try {
// Open a file of the current name.
File file = new File (currFileName2);
// Create an output writer that will write to that file.
// FileWriter handles international characters encoding conversions.
FileWriter out = new FileWriter(file);
String text = jTextArea3.getText();
out.write(text);
out.close();
jButton7.setEnabled(false);
return true;
catch (IOException e) {
jTextArea4.append('\n'+"Error saving "+ currFileName2);
return false;
// Save current file, asking user for new destination name.
// Report to statusBar.
boolean saveAsFile() {
// Use the SAVE version of the dialog, test return for Approve/Cancel
if (JFileChooser.APPROVE_OPTION == jFileChooser1.showSaveDialog(this)) {
// Set the current file name to the user's selection,
// then do a regular saveFile
currFileName = jFileChooser1.getSelectedFile().getPath();
//repaints menu after item is selected
this.repaint();
return saveFile();
else {
this.repaint();
return false;
// Save current file, asking user for new destination name.
// Report to statusBar.
boolean saveAsFile2() {
// Use the SAVE version of the dialog, test return for Approve/Cancel
if (JFileChooser.APPROVE_OPTION == jFileChooser2.showSaveDialog(this)) {
// Set the current file name to the user's selection,
// then do a regular saveFile
currFileName2 = jFileChooser2.getSelectedFile().getPath();
//repaints menu after item is selected
this.repaint();
return saveFile();
else {
this.repaint();
return false;
public void jButton1_actionPerformed(ActionEvent e) {
saveFile();
// Display the name of the saved directory+file in the statusBar.
jTextArea4.append('\n'+"Saved to " + currFileName);
public void jButton7_actionPerformed(ActionEvent e) {
try{
getAppletContext().showDocument(new URL("http://www.csc.liv.ac.uk/~cprdb/Live/v3.3/database.html"), "_blank" );
catch (MalformedURLException ex)
ex.printStackTrace();
jButton6.setEnabled(true);
public void jButton6_actionPerformed(ActionEvent e) {
saveFile2();
// Display the name of the saved directory+file in the statusBar.
jTextArea4.append('\n'+"Saved to " + currFileName2);
public void jButton3_actionPerformed(ActionEvent e) {
// Handle the File|New menu item.
// Clears the text of the text area.
jTextArea3.setText("");
currFileName2 = null;
jButton6.setEnabled(true);
jButton7.setEnabled(false);
public void jButton2_actionPerformed(ActionEvent e) {
// Use the OPEN version of the dialog, test return for Approve/Cancel
if (JFileChooser.APPROVE_OPTION == jFileChooser1.showOpenDialog(this)) {
// Call openFile to attempt to load the text from file into TextArea
openFile(jFileChooser1.getSelectedFile().getPath());
this.repaint();
class NoteTagger_jButton3_actionAdapter implements ActionListener {
private NoteTagger adaptee;
NoteTagger_jButton3_actionAdapter(NoteTagger adaptee) {
this.adaptee = adaptee;
public void actionPerformed(ActionEvent e) {
adaptee.jButton3_actionPerformed(e);
class NoteTagger_jButton6_actionAdapter implements ActionListener {
private NoteTagger adaptee;
NoteTagger_jButton6_actionAdapter(NoteTagger adaptee) {
this.adaptee = adaptee;
public void actionPerformed(ActionEvent e) {
adaptee.jButton6_actionPerformed(e);
class NoteTagger_jButton7_actionAdapter implements ActionListener {
private NoteTagger adaptee;
NoteTagger_jButton7_actionAdapter(NoteTagger adaptee) {
this.adaptee = adaptee;
public void actionPerformed(ActionEvent e) {
adaptee.jButton7_actionPerformed(e);
class NoteTagger_jButton2_actionAdapter implements ActionListener {
private NoteTagger adaptee;
NoteTagger_jButton2_actionAdapter(NoteTagger adaptee) {
this.adaptee = adaptee;
public void actionPerformed(ActionEvent e) {
adaptee.jButton2_actionPerformed(e);
class NoteTagger_jButton1_actionAdapter implements ActionListener {
private NoteTagger adaptee;
NoteTagger_jButton1_actionAdapter(NoteTagger adaptee) {
this.adaptee = adaptee;
public void actionPerformed(ActionEvent e) {
adaptee.jButton1_actionPerformed(e);
class FileSelectorUtils {
public static String getExtension( File file ) {
return getExtension( file.getName() );
private static String getExtension( String str ) {
String ext = null;
int i = str.lastIndexOf( '.' );
if( i > 0 && i < str.length() - 1) {
ext = str.substring( i + 1 ).toLowerCase();
return ext;
public static File ensureExtension( File file, String ext ) {
if( getExtension( file ) == null ) {
file = new File( file.getAbsolutePath() + "." + ext );
return file;
class FileFilter1 extends FileFilter {
// Valid File Extension
public final static String txt = "txt";
public boolean accept( File f ) {
// Display Directory
if( f.isDirectory() ) { return true; }
// Get File's Extension
String extension = FileSelectorUtils.getExtension( f );
// Accept Select File Extensions
if( extension != null ) {
if( extension.equals( FileFilter1.txt ) ) { return true; } // Accept *.ann
// Else Deny File
return false;
public String getDescription() {
return "Text Doument (*.txt)";
class FileFilter2 extends FileFilter {
// Valid File Extension
public final static String html = "html";
public boolean accept( File f ) {
// Display Directory
if( f.isDirectory() ) { return true; }
// Get File's Extension
String extension = FileSelectorUtils.getExtension( f );
// Accept Select File Extensions
if( extension != null ) {
if( extension.equals( FileFilter2.html ) ) { return true; } // Accept *.ann
// Else Deny File
return false;
public String getDescription() {
return "HTML Document (*.html)";
}Any ideas? I could do with help ASAP if anybody has any ideas... Thanks
MikeThe apps listed at java-tips.org are just some of those that happen to be written in Java. If you want an editor that does syntax highlighting and other programming-specific tasks, you have dozens more options. A few Windows editors that spring to mind are EditPad, Crimson Editor, Scite, UltraEdit and Notetab. Then there are the old Unix standys, Emacs and vi, which have Windows versions as well. I use EditPad Pro, which isn't free like many of the others, but is worth the money anyway, IMO.
-
Hi,
i am stuck in the failsafe mode or if i even try to login from the single user mode i need a text editor all the editors in solaris 10 are useless they are graphical but i am stuck in command line please guide me something simple such as vim in linux because vim in solaris has problem even with the back space and other keys it really is not a good option i was using gedit but now my computer has got a problem and i need command line.
i am a newbie to solaris and was using linux so it was much easier please help if you know how to get one good editor to work on command line.
best regds
aliyou can use delete in suns vi instead of backspace. Also just remember to hit esc before trying to move the cursor. Once you get on your feet check out pkg-get at either sunfreeware.org or blastwave.org. If you install the pkg-get utility you can grab apps like vim from the command line when you need them.
Maybe you are looking for
-
I don't comprehend this trend at Apple to make everything monotone. Mavericks is worse than ever. The older consumers, the ones with the money who buy your expensive products, have the most have great difficulty reading tiny writing esconced in undef
-
I updated my 2012 iMac to Maverick as I wanted the dictation app in it. However, it contains a wierd version of iPhoto and I originally lost all my 6500 photos! I read some threads and managed to retrieve 4500 but have lost all the latest from 2012 o
-
How do I swap the data (completely) between two Macbooks?
I am trying to swap my computer with my mums as hers is newer and has more memory; and I have run out! Is it possible to do this without losing everything?
-
Rejection of Item deletion in Approval workflow?
Hi, How to handle rejection and approval in the following situation? - when I delete an item , it will send a mail to PM(Project manager) and If PM approved , it will allow to delete that item. Incase he rejected his request then item should not be
-
MF4700n having IP address issues
I have been using the Image Class MF4700n for 3 months and yesterday it decided to stop communicating with the networked computers. It continues to work as a fax machine, but it won't automatically reassign the IP address, or allow us to manually ass