ASP.NET HTML Editor - Knowledge Base

« Back to Knowledge Base list

Customize popup dialogue


For one of our product, we want to customize the obout editor popup.
Please see the following screenshot, we have highlighted the parts of the dialogue which we want to customize.


Let's do it on example of the 'Spell checker' popup.
  1. Edit the Editor_data\ed_styles\special\popup.css file, it describes some common classes used for all popup windows.
    We should edit the 'header' class - add background color and remove background image:

    .header {padding:6px 8px;font-weight:bold;cursor:move;
    border-bottom:1px solid #A0A0A0; background-color: #00FFFF;} /* background color of the popup's header */

  2. Edit the Editor_data\ed_scripts\__spellCheck.aspx file, it is a template for the popup window.
    We'll change style of 'OK' and 'Cancel' buttons - make rounded edges, add background color and remove background image:

    div class='box'>
    div id='ok' style="border-radius:5px;background-color:#00FFFF;..."class='button'>
    <%= filler.Get("ok","OK") %></div>
    < /
    < /
    div class='box'>
    div id='cancel' style="border-radius:5px;background-color:#00FFFF;..."class='button'>
    <%= filler.Get("cancel","Cancel") %></div>
    < /
    < /
    < /

  3. Edit the Editor_data\ed_styles\style.css file.
    We'll change classes for this popup - add rounded edges:

        width: 490px;
        border-radius: 10px;
        border-radius: 10px;
        width: 490px;
        border-radius: 10px;

  4. Now we need to change the default image for the 'Close' button in the top right corner of the popup window.
    We can do it in the client-side only. We'll change the image just after Editor loaded, add the following code block into your page:

    <script type="text/javascript">
        function EditorOnLoad(editor) {
           // you can use any other URL
           editor._images_list[7] = "Editor_data/ed_icons/emoticons/angel.gif";

After all this changes we will see the following 'Spell checker' popup window: Home
HTML Editor Home
HTML Editor Home
Why the best?
Site Map
Examples - 80
Appearance - 10
Full button set
Lite button set
Custom button set
Design-mode textbox
How to fit into small space
Page maker
Default font
Initially without toolbar
Preview mode
"Read only" mode New
Content - 16
Read-only and custom tags
Shadow for Image
External image gallery
Upload images
Copy/paste formatting
Preview Document appearance
Keys used for editing
.NET validation
Documents Generator
Upload documents
Convert to PDF
Editor and database
Spell Checker - 3
Spell checking
Spell Checker dictionaries
Several dictionaries
Localization - 2
RTL support
Integration - 9
Inside Flyout
Inside Grid
Inside Window
With Color PickerNew
Google AJAX Language API New
Inside AJAX Page
Inside CallbackPanel
ASP.NET AJAX ControlToolkit - 5
Collapsible panel
Editor in each TabPanel New
Modal popup
Server-Side API - 13
Content counters
Plain text length control
Show plain text
Enable editor on focus
Set caret position on load
Add CSS files New
Hide HTML Editor until needed
CSS file for quick format
Set HTML view on load
Enable browse button for images
Enable browse button for URLs
Disable Wait message New
Server-Side Events - 5
ClickSubmit event
ClickCancel event
ContentChanged event
Client-Side API - 10
Working with selected text
Set design/HTML view on load
Show/hide HTML Editor
Get/set content
Surround HTML
Insert HTML
Style selected content
Exec command
Query command
'Not Set' in dropdowns New
Customize - 17
Custom editor toolbar in VS
Custom fonts
Custom font sizes
How to add icons
Custom Popup Windows
Custom Buttons
Custom Context Menu
Popup Properties Disabling
Default Table Properties
Custom toggle button
Custom select button
Textarea popup
Custom 'Quote' button New
Show/hide submit button
Show/hide Design/HTML view
Show/hide quick format panel
Width & Height
Knowledge Base - 1
Knowledge Base
Documentation - 23
Server side
HTML Editor properties & events
HTML Editor inner properties
Custom toolbar
Custom fonts
Custom font sizes
Custom Context Menu
Dictionaries for spell checker
Hot keys definition
Disabling Context Menu items
Additional CSS files New
Client side
Main functions and interfaces
Custom Context Menu support
Custom Popup Window support
Top toolbar buttons' methods
State functions
Suppress Context Menu
Spelling dictionary
Dictionary structure
Affix rules
Phonetic rules
Generate phonetic code
How to add new word
Supported browsers
Tutorials - 6
Using the correct path
Autosave implementation
Full custom buttons set
Editor_data for several sites
Use with database
Template XML file use New