HOW TO: Include symbols in rich text editor in MOSS 2007

Published May 01 2019 03:30 PM 149 Views
Microsoft

First published on TECHNET on Sep 07, 2012

This post is a contribution from Jaishree Thiyagarajan, an engineer with the SharePoint Developer Support team.

Note: The below walk-through is based off of a publishing site.

We can include symbols in rich text editor in MOSS 2007 in just 3 easy steps.

Step1

Copy the image (symbol.jpg) to C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\Symbol (where *Symbol* is a new folder). [You can use any name for the image and the folder, but make sure to provide the correct path in Step3 below (line number 2 in the second code snippet below)].

Step2

Navigate to master page gallery.  Within editing menu folder, you can find RTE2ToolbarExtension.xml, update the file as shown below [ensure that you checkin and approve this file after the modification is done].

<?xml version="1.0" encoding="utf-8" ?>


<RTE2ToolbarExtensions>


<RTE2ToolbarExtraButton id="symbolInsertion" src="RTESymbolInsertion.js"/>


</RTE2ToolbarExtensions>



Step3



Create a javascript file named “RTESymbolInsertion.js” to C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\1033 and add the below script.



Note:



a. I have added 3 symbols to the array (line number 17 in the below code snippet) .  You can add many more symbols to the array.  The first parameter is the “symbol” & the second is the “tooltip”.



b. You can arrange the menu items in columns.  I have added the symbols in the first column (line number 23 in the below code snippet) .  The first parameter for the function RTE_DD_GenerateMenuItemScriptHtml is the column number.





1: RTE2_RegisterToolbarButton("symbolInsertion",


2: "_layouts/symbol/symbol.jpg",


3: "Symbols",


4: "Insert symbols",


5: SymButtonOnClick,


6: SymButtonOnResetState,


7: new Array());


8:


9: function SymButtonOnClick(strBaseElementID, arguments) {


10:


11: var docEditor = RTE_GetEditorDocument(strBaseElementID);


12: if (docEditor == null) { return; }


13:


14: var selectedRange = docEditor.selection.createRange();


15:


16: //Array of symbols


17: var symbols = [['\u00A9', 'Copyright'], ['\&#151;', 'Emdash'], ['\&#174;', 'Rights']];


18: p = symbols.length;


19:


20: var sHTML = RTE_DD_GenerateMenuOpenHtml();


21:


22: for (i = 0; i < p; i++) {


23: sHTML = sHTML + RTE_DD_GenerateMenuItemScriptHtml("1", i, "var docEditor = RTE_GetEditorDocument('" + strBaseElementID + "'); var s=docEditor.selection.createRange();s.text='" + symbols[i][0] + "';RTE_DD_CloseMenu();", symbols[i][0], symbols[i][1], "", "", "");


24: }


25:


26: sHTML = sHTML + RTE_DD_GenerateMenuCloseHtml();


27: RTE_DD_OpenMenu(strBaseElementID, "symbolInsertion", sHTML, "1");


28: return true;


29: }


30:


31: // The method that is called when the button's state is reset.


32: function SymButtonOnResetState(strBaseElementID, arguments) {


33:


34: var docEditor = RTE_GetEditorDocument(strBaseElementID);


35: if (docEditor == null) { return; }


36:


37: if (!RTE2_PopupMode(strBaseElementID)) {


38: RTE_RestoreSelection(strBaseElementID);


39:


40: }


41: if (!RTE2_IsSourceView(strBaseElementID)) {


42: RTE_TB_SetEnabledFromCondition(strBaseElementID, true, "symbolInsertion");


43: return true;


44: }


45: else {


46: RTE_TB_SetEnabledFromCondition(strBaseElementID, false, "symbolInsertion");


47: }


48: }



Once this is done, I can edit my publishing page (screen shots are from a collaboration site where publishing feature is enabled) and point to a content section I want to edit.  This will bring up the rich text editor.  I’ll be able to see the new menu strip and the symbols I added will be usable.







More Information



Some details about the functions used.



1. RTE2_RegisterToolbarButton : Used to register new Button to RTE



2. SymButtonOnClick : This method will be called when you click the Symbol image/button



3. SymButtonOnResetState : The method is called when the button's state is reset



4. RTE_DD_GenerateMenuOpenHtml : This method will construct the opening tag for menu.



5. RTE_DD_CloseMenu: This method will close the curent menu which is in open state



6. RTE_DD_GenerateMenuItemScriptHtml: This method expects “menu html” as the parameter. This will dynamically constructs the menuhtml with all necessary  functions (such as onclick,onmouseover,onmouseout) included.



7. RTE_DD_GenerateMenuCloseHtml : This method will construct the closing tag for menu



8. RTE_GetEditorDocument : This method will return the textarea of the editor.



9. RTE2_PopupMode : This method will return “true” when the editor is in popupmode



10. RTE2_IsSourceView: This method will return “true” when the editor is in HtmlSourceView



11. RTE_RestoreSelection: This method will restore the selected text in selection state.



12. RTE_TB_SetEnabledFromCondition: Via this method we can either enable/disable a button in RTE.



Hope this post was helpful.

%3CLINGO-SUB%20id%3D%22lingo-sub-509677%22%20slang%3D%22en-US%22%3EHOW%20TO%3A%20Include%20symbols%20in%20rich%20text%20editor%20in%20MOSS%202007%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-509677%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSTRONG%3E%20First%20published%20on%20TECHNET%20on%20Sep%2007%2C%202012%20%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EThis%20post%20is%20a%20contribution%20from%20Jaishree%20Thiyagarajan%2C%20an%20engineer%20with%20the%20SharePoint%20Developer%20Support%20team.%3C%2FP%3E%0A%3CP%3ENote%3A%20The%20below%20walk-through%20is%20based%20off%20of%20a%20publishing%20site.%3C%2FP%3E%0A%3CP%3EWe%20can%20include%20symbols%20in%20rich%20text%20editor%20in%20MOSS%202007%20in%20just%203%20easy%20steps.%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E%20Step1%20%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3ECopy%20the%20image%20(symbol.jpg)%20to%20C%3A%5CProgram%20Files%5CCommon%20Files%5CMicrosoft%20Shared%5Cweb%20server%20extensions%5C12%5CTEMPLATE%5CLAYOUTS%5CSymbol%20(where%20*Symbol*%20is%20a%20new%20folder).%20%3CEM%3E%20%5BYou%20can%20use%20any%20name%20for%20the%20image%20and%20the%20folder%2C%20but%20make%20sure%20to%20provide%20the%20correct%20path%20in%20Step3%20below%20(line%20number%202%20in%20the%20second%20code%20snippet%20below)%5D.%20%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E%20Step2%20%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3ENavigate%20to%20master%20page%20gallery.%26nbsp%3B%20Within%20editing%20menu%20folder%2C%20you%20can%20find%20RTE2ToolbarExtension.xml%2C%20update%20the%20file%20as%20shown%20below%20%5Bensure%20that%20you%20checkin%20and%20approve%20this%20file%20after%20the%20modification%20is%20done%5D.%3C%2FP%3E%0A%3CDIV%20id%3D%22codeSnippetWrapper%22%3E%0A%3CDIV%20id%3D%22codeSnippet%22%3E%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CRTE2TOOLBAREXTENSIONS%3E%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CRTE2TOOLBAREXTRABUTTON%20id%3D%22%26quot%3BsymbolInsertion%26quot%3B%22%20src%3D%22%26quot%3BRTESymbolInsertion.js%26quot%3B%2F%22%3E%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FRTE2TOOLBAREXTRABUTTON%3E%3C%2FRTE2TOOLBAREXTENSIONS%3E%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3CP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E%20Step3%20%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CP%3ECreate%20a%20javascript%20file%20named%20%E2%80%9CRTESymbolInsertion.js%E2%80%9D%20to%20C%3A%5CProgram%20Files%5CCommon%20Files%5CMicrosoft%20Shared%5Cweb%20server%20extensions%5C12%5CTEMPLATE%5CLAYOUTS%5C1033%20and%20add%20the%20below%20script.%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CP%3ENote%3A%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CP%3Ea.%20I%20have%20added%203%20symbols%20to%20the%20array%20%3CEM%3E%20(line%20number%2017%20in%20the%20below%20code%20snippet)%20%3C%2FEM%3E%20.%26nbsp%3B%20You%20can%20add%20many%20more%20symbols%20to%20the%20array.%26nbsp%3B%20The%20first%20parameter%20is%20the%20%E2%80%9Csymbol%E2%80%9D%20%26amp%3B%20the%20second%20is%20the%20%E2%80%9Ctooltip%E2%80%9D.%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CP%3Eb.%20You%20can%20arrange%20the%20menu%20items%20in%20columns.%26nbsp%3B%20I%20have%20added%20the%20symbols%20in%20the%20first%20column%20%3CEM%3E%20(line%20number%2023%20in%20the%20below%20code%20snippet)%20%3C%2FEM%3E%20.%26nbsp%3B%20The%20first%20parameter%20for%20the%20function%20RTE_DD_GenerateMenuItemScriptHtml%20is%20the%20column%20number.%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CDIV%20id%3D%22codeSnippetWrapper%22%3E%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippet%22%3E%3CBR%20%2F%3E1%3A%20RTE2_RegisterToolbarButton(%22symbolInsertion%22%2C%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E2%3A%20%22_layouts%2Fsymbol%2Fsymbol.jpg%22%2C%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E3%3A%20%22Symbols%22%2C%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E4%3A%20%22Insert%20symbols%22%2C%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E5%3A%20SymButtonOnClick%2C%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E6%3A%20SymButtonOnResetState%2C%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E7%3A%20new%20Array())%3B%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E8%3A%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E9%3A%20function%20SymButtonOnClick(strBaseElementID%2C%20arguments)%20%7B%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E10%3A%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E11%3A%20var%20docEditor%20%3D%20RTE_GetEditorDocument(strBaseElementID)%3B%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E12%3A%20if%20(docEditor%20%3D%3D%20null)%20%7B%20return%3B%20%7D%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E13%3A%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E14%3A%20var%20selectedRange%20%3D%20docEditor.selection.createRange()%3B%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E15%3A%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E16%3A%20%2F%2FArray%20of%20symbols%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E17%3A%20var%20symbols%20%3D%20%5B%5B'%5Cu00A9'%2C%20'Copyright'%5D%2C%20%5B'%5C%26amp%3B%23151%3B'%2C%20'Emdash'%5D%2C%20%5B'%5C%26amp%3B%23174%3B'%2C%20'Rights'%5D%5D%3B%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E18%3A%20p%20%3D%20symbols.length%3B%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E19%3A%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E20%3A%20var%20sHTML%20%3D%20RTE_DD_GenerateMenuOpenHtml()%3B%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E21%3A%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E22%3A%20for%20(i%20%3D%200%3B%20i%20%26lt%3B%20p%3B%20i%2B%2B)%20%7B%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E23%3A%20sHTML%20%3D%20sHTML%20%2B%20RTE_DD_GenerateMenuItemScriptHtml(%221%22%2C%20i%2C%20%22var%20docEditor%20%3D%20RTE_GetEditorDocument('%22%20%2B%20strBaseElementID%20%2B%20%22')%3B%20var%20s%3DdocEditor.selection.createRange()%3Bs.text%3D'%22%20%2B%20symbols%5Bi%5D%5B0%5D%20%2B%20%22'%3BRTE_DD_CloseMenu()%3B%22%2C%20symbols%5Bi%5D%5B0%5D%2C%20symbols%5Bi%5D%5B1%5D%2C%20%22%22%2C%20%22%22%2C%20%22%22)%3B%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E24%3A%20%7D%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E25%3A%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E26%3A%20sHTML%20%3D%20sHTML%20%2B%20RTE_DD_GenerateMenuCloseHtml()%3B%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E27%3A%20RTE_DD_OpenMenu(strBaseElementID%2C%20%22symbolInsertion%22%2C%20sHTML%2C%20%221%22)%3B%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E28%3A%20return%20true%3B%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E29%3A%20%7D%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E30%3A%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E31%3A%20%2F%2F%20The%20method%20that%20is%20called%20when%20the%20button's%20state%20is%20reset.%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E32%3A%20function%20SymButtonOnResetState(strBaseElementID%2C%20arguments)%20%7B%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E33%3A%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E34%3A%20var%20docEditor%20%3D%20RTE_GetEditorDocument(strBaseElementID)%3B%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E35%3A%20if%20(docEditor%20%3D%3D%20null)%20%7B%20return%3B%20%7D%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E36%3A%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E37%3A%20if%20(!RTE2_PopupMode(strBaseElementID))%20%7B%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E38%3A%20RTE_RestoreSelection(strBaseElementID)%3B%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E39%3A%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E40%3A%20%7D%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E41%3A%20if%20(!RTE2_IsSourceView(strBaseElementID))%20%7B%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E42%3A%20RTE_TB_SetEnabledFromCondition(strBaseElementID%2C%20true%2C%20%22symbolInsertion%22)%3B%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E43%3A%20return%20true%3B%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E44%3A%20%7D%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E45%3A%20else%20%7B%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E46%3A%20RTE_TB_SetEnabledFromCondition(strBaseElementID%2C%20false%2C%20%22symbolInsertion%22)%3B%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E47%3A%20%7D%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E48%3A%20%7D%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3CP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CP%3EOnce%20this%20is%20done%2C%20I%20can%20edit%20my%20publishing%20page%20%3CEM%3E%20(screen%20shots%20are%20from%20a%20collaboration%20site%20where%20publishing%20feature%20is%20enabled)%20%3C%2FEM%3E%20and%20point%20to%20a%20content%20section%20I%20want%20to%20edit.%26nbsp%3B%20This%20will%20bring%20up%20the%20rich%20text%20editor.%26nbsp%3B%20I%E2%80%99ll%20be%20able%20to%20see%20the%20new%20menu%20strip%20and%20the%20symbols%20I%20added%20will%20be%20usable.%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20852px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F111407iC07C77F4C4757E08%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E%20More%20Information%20%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CP%3ESome%20details%20about%20the%20functions%20used.%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CP%3E1.%20RTE2_RegisterToolbarButton%20%3A%20Used%20to%20register%20new%20Button%20to%20RTE%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CP%3E2.%20SymButtonOnClick%20%3A%20This%20method%20will%20be%20called%20when%20you%20click%20the%20Symbol%20image%2Fbutton%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CP%3E3.%20SymButtonOnResetState%20%3A%20The%20method%20is%20called%20when%20the%20button's%20state%20is%20reset%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CP%3E4.%20RTE_DD_GenerateMenuOpenHtml%20%3A%20This%20method%20will%20construct%20the%20opening%20tag%20for%20menu.%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CP%3E5.%20RTE_DD_CloseMenu%3A%20This%20method%20will%20close%20the%20curent%20menu%20which%20is%20in%20open%20state%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CP%3E6.%20RTE_DD_GenerateMenuItemScriptHtml%3A%20This%20method%20expects%20%E2%80%9Cmenu%20html%E2%80%9D%20as%20the%20parameter.%20This%20will%20dynamically%20constructs%20the%20menuhtml%20with%20all%20necessary%26nbsp%3B%20functions%20(such%20as%20onclick%2Conmouseover%2Conmouseout)%20included.%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CP%3E7.%20RTE_DD_GenerateMenuCloseHtml%20%3A%20This%20method%20will%20construct%20the%20closing%20tag%20for%20menu%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CP%3E8.%20RTE_GetEditorDocument%20%3A%20This%20method%20will%20return%20the%20textarea%20of%20the%20editor.%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CP%3E9.%20RTE2_PopupMode%20%3A%20This%20method%20will%20return%20%E2%80%9Ctrue%E2%80%9D%20when%20the%20editor%20is%20in%20popupmode%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CP%3E10.%20RTE2_IsSourceView%3A%20This%20method%20will%20return%20%E2%80%9Ctrue%E2%80%9D%20when%20the%20editor%20is%20in%20HtmlSourceView%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CP%3E11.%20RTE_RestoreSelection%3A%20This%20method%20will%20restore%20the%20selected%20text%20in%20selection%20state.%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CP%3E12.%20RTE_TB_SetEnabledFromCondition%3A%20Via%20this%20method%20we%20can%20either%20enable%2Fdisable%20a%20button%20in%20RTE.%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CP%3EHope%20this%20post%20was%20helpful.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-509677%22%20slang%3D%22en-US%22%3E%3CP%3EFirst%20published%20on%20TECHNET%20on%20Sep%2007%2C%202012%20This%20post%20is%20a%20contribution%20from%20Jaishree%20Thiyagarajan%2C%20an%20engineer%20with%20the%20SharePoint%20Developer%20Support%20team.%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-509677%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Version history
Last update:
‎Sep 01 2020 03:42 PM
Updated by: