Hi dfree79,
The Rich TextEditor dialogs are generated by our own frame jsml. If you need to use the same style dialog, you can try the way below.
1. Create your own dialog file, for example name it to "mydialog.xml" under \richtexteditor\dialogs\mydialog.xml with the code below.
the code below means use the base dialog settings/styles of rte.
<include src="{folder}dialogs/browsedialogbase.xml?{timems}" />
the code below use to set the custom style and title.
<execute> dialog.set_back_color("#F9F9F9"); dialog.set_title(editor.GetLangText("custom dialog")); </execute>
the code below use to generate a panel by jsml format code. you can use this format to generate the button/text field/dorpdown list etc.
<panel jsml-class="insertimagedialog" jsml-base="browsedialogbase" dock="fill" margin="3"> </panel>
- <?xml version="1.0" encoding="utf-8" ?>
- <jsml xmlns="http://cutesoft.net/jsml"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://cutesoft.net/jsml ../core/jsml.xsd">
-
- <include src="{folder}dialogs/browsedialogbase.xml?{timems}" />
-
- <execute>
- dialog.set_back_color("#F9F9F9");
- dialog.set_title(editor.GetLangText("custom dialog"));
- </execute>
-
-
- <!-- # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
- class insertimagedialog
- # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # -->
- <panel jsml-class="insertimagedialog" jsml-base="browsedialogbase" dock="fill" margin="3">
- </panel>
- </jsml>
2. Open the custom dialog by the code below. Method "ShowXmlDialog" use to open the dialog. newoption is the settings of this dialog.
- var newoption = { width: 640, height: 420 };
- newoption.nestedmode = true;
- newoption.callback = function () {
- self.bubble_event("reloadvalue");
- }
- editor.ShowXmlDialog(editor.BuildDialogUrl("mydialog.xml"), newoption);
Regards,
Ken