Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 94857

RadEditor EmptyMessage not working

$
0
0

Thank you for the response and example video. Unfortunately this is still not working for me. My application is also using bootstrap and runs on SharePoint. Could that possibly be a problem?

I've modified the code slightly which now looks like this:

 

<divclass="row">
 <divclass="col-10 col-xs-10 col-sm-10 col-md-10 col-lg-10 form-group">
  <labelclass="control-label">Some Label Here</label>
  <telerik:RadEditorEditModes="Design"ID="edtCustFam"runat="server"Height="150px"ToolbarMode="ShowOnFocus"EmptyMessage="Optional">
  </telerik:RadEditor>
 </div>
 </div>

 

The watermark/empty message is still not appearing. Actually, I don't even see it in the resulting HTML. Here is was the page source looks like for that field:

 

<divclass="row">
<divclass="col-10 col-xs-10 col-sm-10 col-md-10 col-lg-10 form-group">
<labelclass="control-label">
Some Label Here</label>
 
<divid="ctl00_PlaceHolderMain_edtCustFam"class="RadEditor Default reWrapper"style="width:680px;height:150px;">
<divid="ctl00_PlaceHolderMain_edtCustFam_dialogOpener"style="display:none;">
<divid="ctl00_PlaceHolderMain_edtCustFam_dialogOpener_Window"style="display:none;">
<divid="ctl00_PlaceHolderMain_edtCustFam_dialogOpener_Window_C"style="display:none;">
 
</div><inputid="ctl00_PlaceHolderMain_edtCustFam_dialogOpener_Window_ClientState"name="ctl00_PlaceHolderMain_edtCustFam_dialogOpener_Window_ClientState"type="hidden"/>
</div><inputid="ctl00_PlaceHolderMain_edtCustFam_dialogOpener_ClientState"name="ctl00_PlaceHolderMain_edtCustFam_dialogOpener_ClientState"type="hidden"/>
</div><divclass="reRibbonBarWrapper"></div><tableid="ctl00_PlaceHolderMain_edtCustFamWrapper"class="reLayoutWrapper"style="width:100%;height:150px;">
<captionstyle="display:none;">
RadEditor - HTML WYSIWYG Editor. MS Word-like content editing experience thanks to a rich set of formatting tools, dropdowns, dialogs, system modules and built-in spell-check.
</caption><theadstyle="display:none;">
<tr>
<thscope="col"><span>RadEditor's components - toolbar, content area, modes and modules</span></th>
</tr>
</thead><tbody>
<tr>
<thscope="row"style="display:none;"><span></span></th><tdclass="reWrapper_corner reCorner_top_left"> </td><tdclass="reWrapper_center reCenter_top"colspan="3"> </td><tdclass="reWrapper_corner reCorner_top_right"> </td>
</tr><tr>
<thscope="row"style="display:none;"><span>Toolbar's wrapper</span></th><tdclass="reLeftVerticalSide"rowspan="4"> </td><tdrowspan="4"id="ctl00_PlaceHolderMain_edtCustFamLeft"class="reTlbVertical"></td><tdid="ctl00_PlaceHolderMain_edtCustFamTop"class="reToolCell"style="width:100%;"><divclass="Default reToolbarWrapper"style="visibility:hidden;overflow:hidden;height:0px;">
<ulclass="reToolbar Default">
<liclass="reGrip grip_first"> </li><li><atitle="Print (CTRL+P / CMD+P)"class="reTool"href="#"><spanclass="Print"> </span></a></li><li><atitle="AJAX Spellchecker"class="reTool"href="#"><spanclass="AjaxSpellCheck"> </span></a></li><li><atitle="Find And Replace (CTRL+F / CMD+F)"class="reTool"href="#"><spanclass="FindAndReplace"> </span></a></li><li><atitle="Select All (CTRL+A / CMD+A)"class="reTool"href="#"><spanclass="SelectAll"> </span></a></li><li><atitle="Cut (CTRL+X / CMD+X)"class="reTool"href="#"><spanclass="Cut"> </span></a></li><li><atitle="Copy (CTRL+C / CMD+C)"class="reTool"href="#"><spanclass="Copy"> </span></a></li><li><atitle="Paste (CTRL+V / CMD+V)"class="reTool"href="#"><spanclass="Paste"> </span></a></li><li><atitle="Paste Options"class="reTool reSplitButton"href="#"><spanclass="PasteStrip"> </span><spanclass="split_arrow"> </span></a></li><liclass="reSeparator"> </li><li><atitle="Undo (CTRL+Z / CMD+Z)"class="reTool reSplitButton"href="#"><spanclass="Undo"> </span><spanclass="split_arrow"> </span></a></li><li><atitle="Redo (CTRL+Y / CMD+Y)"class="reTool reSplitButton"href="#"><spanclass="Redo"> </span><spanclass="split_arrow"> </span></a></li><liclass="reGrip grip_last"> </li>
</ul><ulclass="reToolbar Default">
<liclass="reGrip grip_first"> </li><li><atitle="Image Manager (CTRL+G / CMD+G)"class="reTool"href="#"><spanclass="ImageManager"> </span></a></li><li><atitle="Document Manager"class="reTool"href="#"><spanclass="DocumentManager"> </span></a></li><li><atitle="Flash Manager"class="reTool"href="#"><spanclass="FlashManager"> </span></a></li><li><atitle="Media Manager"class="reTool"href="#"><spanclass="MediaManager"> </span></a></li><li><atitle="Template Manager"class="reTool"href="#"><spanclass="TemplateManager"> </span></a></li><liclass="reSeparator"> </li><li><atitle="Hyperlink Manager (CTRL+K / CMD+K)"class="reTool"href="#"><spanclass="LinkManager"> </span></a></li><li><atitle="Remove Link (CTRL+SHIFT+K / CMD+SHIFT+K)"class="reTool"href="#"><spanclass="Unlink"> </span></a></li><liclass="reGrip grip_last"> </li>
</ul><ulclass="reToolbar Default">
<liclass="reGrip grip_first"> </li><li><atitle="SuperScript"class="reTool"href="#"><spanclass="Superscript"> </span></a></li><li><atitle="Subscript"class="reTool"href="#"><spanclass="Subscript"> </span></a></li><li><atitle="New Paragraph"class="reTool"href="#"><spanclass="InsertParagraph"> </span></a></li><li><atitle="Insert Groupbox"class="reTool"href="#"><spanclass="InsertGroupbox"> </span></a></li><li><atitle="Horizontal Rule"class="reTool"href="#"><spanclass="InsertHorizontalRule"> </span></a></li><li><atitle="Insert Date"class="reTool"href="#"><spanclass="InsertDate"> </span></a></li><li><atitle="Insert Time"class="reTool"href="#"><spanclass="InsertTime"> </span></a></li><liclass="reSeparator"> </li><li><atitle="Format Code Block"class="reTool"href="#"><spanclass="FormatCodeBlock"> </span></a></li><liclass="reGrip grip_last"> </li>
</ul><ulclass="reToolbar Default">
<liclass="reGrip grip_first"> </li><li><atitle="Paragraph Style"class="reDropdown"href="#"><spanclass="FormatBlock"style="width:80px;">Paragraph Style</span></a></li><li><atitle="Font Name (CTRL+SHIFT+F / CMD+SHIFT+F)"class="reDropdown"href="#"><spanclass="FontName"style="width:80px;">Font Name</span></a></li><li><atitle="Real font size (CTRL+SHIFT+P / CMD+SHIFT+P)"class="reDropdown"href="#"><spanclass="RealFontSize"style="width:34px;">Real font size</span></a></li><liclass="reGrip grip_last"> </li>
</ul><ulclass="reToolbar Default">
<liclass="reGrip grip_first"> </li><li><atitle="Set Absolute Position"class="reTool"href="#"><spanclass="AbsolutePosition"> </span></a></li><liclass="reSeparator"> </li><li><atitle="Bold (CTRL+B / CMD+B)"class="reTool"href="#"><spanclass="Bold"> </span></a></li><li><atitle="Italic (CTRL+I / CMD+I)"class="reTool"href="#"><spanclass="Italic"> </span></a></li><li><atitle="Underline (CTRL+U / CMD+U)"class="reTool"href="#"><spanclass="Underline"> </span></a></li><li><atitle="Strikethrough"class="reTool"href="#"><spanclass="StrikeThrough"> </span></a></li><liclass="reSeparator"> </li><li><atitle="Align Left"class="reTool"href="#"><spanclass="JustifyLeft"> </span></a></li><li><atitle="Align Center"class="reTool"href="#"><spanclass="JustifyCenter"> </span></a></li><li><atitle="Align Right"class="reTool"href="#"><spanclass="JustifyRight"> </span></a></li><li><atitle="Justify"class="reTool"href="#"><spanclass="JustifyFull"> </span></a></li><li><atitle="Remove alignment"class="reTool"href="#"><spanclass="JustifyNone"> </span></a></li><liclass="reSeparator"> </li><li><atitle="Indent"class="reTool"href="#"><spanclass="Indent"> </span></a></li><li><atitle="Outdent"class="reTool"href="#"><spanclass="Outdent"> </span></a></li><liclass="reSeparator"> </li><li><atitle="Numbered List"class="reTool"href="#"><spanclass="InsertOrderedList"> </span></a></li><li><atitle="Bullet List"class="reTool"href="#"><spanclass="InsertUnorderedList"> </span></a></li><liclass="reSeparator"> </li><li><atitle="Show/Hide Border"class="reTool"href="#"><spanclass="ToggleTableBorder"> </span></a></li><li><atitle="XHTML Validator"class="reTool"href="#"><spanclass="XhtmlValidator"> </span></a></li><liclass="reGrip grip_last"> </li>
</ul><ulclass="reToolbar Default">
<liclass="reGrip grip_first"> </li><li><atitle="Foreground Color"class="reTool reSplitButton"href="#"><spanclass="ForeColor"> </span><spanclass="split_arrow"> </span></a></li><li><atitle="Background Color"class="reTool reSplitButton"href="#"><spanclass="BackColor"> </span><spanclass="split_arrow"> </span></a></li><li><atitle="Apply CSS Class"class="reDropdown"href="#"><spanclass="ApplyClass"style="width:80px;">Apply CSS Class</span></a></li><li><atitle="Format Stripper"class="reTool reSplitButton"href="#"><spanclass="FormatStripper"> </span><spanclass="split_arrow"> </span></a></li><liclass="reGrip grip_last"> </li>
</ul><ulclass="reToolbar Default">
<liclass="reGrip grip_first"> </li><li><atitle="Insert Symbol"class="reTool reSplitButton"href="#"><spanclass="InsertSymbol"> </span><spanclass="split_arrow"> </span></a></li><li><atitle="Insert Table"class="reTool reSplitButton"href="#"><spanclass="InsertTable"> </span><spanclass="split_arrow"> </span></a></li><li><atitle="Insert Form Element"class="reTool reSplitButton"href="#"><spanclass="InsertFormElement"> </span><spanclass="split_arrow"> </span></a></li><li><atitle="Insert Code Snippet"class="reTool reSplitButton"href="#"><spanclass="InsertSnippet"> </span><spanclass="split_arrow"> </span></a></li><li><atitle="Image Map Editor"class="reTool"href="#"><spanclass="ImageMapDialog"> </span></a></li><li><atitle="Custom Links (CTRL+ALT+K / CMD+ALT+K)"class="reDropdown"href="#"><spanclass="InsertCustomLink"style="width:80px;">Custom Links</span></a></li><liclass="reSeparator"> </li><li><atitle="Convert to lower case"class="reTool"href="#"><spanclass="ConvertToLower"> </span></a></li><li><atitle="Convert to upper case"class="reTool"href="#"><spanclass="ConvertToUpper"> </span></a></li><liclass="reSeparator"> </li><li><atitle="Zoom"class="reDropdown"href="#"><spanclass="Zoom"style="width:44px;">Zoom</span></a></li><li><atitle="Module Manager"class="reTool reSplitButton"href="#"><spanclass="ModuleManager"> </span><spanclass="split_arrow"> </span></a></li><li><atitle="Toggle Full Screen Mode (F11)"class="reTool"href="#"><spanclass="ToggleScreenMode"> </span></a></li><li><atitle="About RadEditor"class="reTool"href="#"><spanclass="AboutDialog"> </span></a></li><liclass="reGrip grip_last"> </li>
</ul>
</div></td><tdrowspan="4"id="ctl00_PlaceHolderMain_edtCustFamRight"class="reTlbVertical"></td><tdrowspan="4"class="reRightVerticalSide"> </td>
</tr><tr>
<thscope="row"style="display:none;"><span>Content area wrapper</span></th><tdid="ctl00_PlaceHolderMain_edtCustFamCenter"class="reContentCell"style="height:100%;"><labelfor="ctl00_PlaceHolderMain_edtCustFamContentHiddenTextarea"style="display:none;">RadEditor hidden textarea</label><textareaid="ctl00_PlaceHolderMain_edtCustFamContentHiddenTextarea"name="ctl00$PlaceHolderMain$edtCustFam"rows="4"cols="20"style="display:none;">%3cbr /%3e
%3cbr /%3e
%3cbr /%3e
%3cbr /%3e
%3cbr /%3e</textarea></td>
</tr><tr>
<thscope="row"style="display:none;"><span>RadEditor's bottom area: Design, Html and Preview modes, Statistics module and resize handle.</span></th><tdclass="reToolZone"><tableclass="reBottomTable"id="ctl00_PlaceHolderMain_edtCustFam_BottomTable"style="width:100%;">
<captionstyle="display:none;">
It contains RadEditor's Modes/views (HTML, Design and Preview), Statistics and Resizer
</caption><theadstyle="display:none;">
<tr>
<thscope="col"><span>Editor Mode buttons</span></th><thscope="col"><span>Statistics module</span></th><thscope="col"><span>Editor resizer</span></th>
</tr>
</thead><tbody>
<trstyle="display:none;">
<tdclass="reEditorModesCell"><divclass="reEditorModes"id="ctl00_PlaceHolderMain_edtCustFam_ModesWrapper">
 
</div></td><tdclass="reBottomZone"id="ctl00_PlaceHolderMain_edtCustFamBottom"> </td><tdclass="reResizeCell"style="width:15px;"><divid="ctl00_PlaceHolderMain_edtCustFamBottomResizer">
      
</div></td>
</tr>
</tbody>
</table><noscript>
<p>RadEditor - please enable JavaScript to use the rich text editor.</p>
</noscript></td>
</tr><tr>
<thscope="row"style="display:none;"><span>RadEditor's Modules - special tools used to provide extra information such as Tag Inspector, Real Time HTML Viewer, Tag Properties and other.</span></th><tdid="ctl00_PlaceHolderMain_edtCustFamModule"class="reToolZone"></td>
</tr><tr>
<thscope="row"style="display:none;"><span></span></th><tdclass="reWrapper_corner reCorner_bottom_left"> </td><tdclass="reWrapper_center reCenter_bottom"colspan="3"> </td><tdclass="reWrapper_corner reCorner_bottom_right"> </td>
</tr>
</tbody>
</table><inputid="ctl00_PlaceHolderMain_edtCustFam_ClientState"name="ctl00_PlaceHolderMain_edtCustFam_ClientState"type="hidden"/>
</div>
</div>
</div>

 

Interestingly, I don't have any of the RadEditor tools defined but looks like it puts them in there anyways. I'm guessing this is normal. (?). But the "Optional" is still not displaying.

Also - this application is running on SharePoint. Could that be a problem with it? But I would at least expect to see something in the source code...

Many thanks again


Viewing all articles
Browse latest Browse all 94857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>