Advanced HTML Editor 3 Support Product Page

Solved

Adv. HTML Editor 3 issues with Data Bindings

Reported 12 Dec 2014 17:42:58
1
has this problem
12 Dec 2014 17:42:58 DuFour DuFour posted:
I am having a couple of issues with the Advanced HTML Editor 3 when I use it in conjunction with the DMXZone Data bindings.

1. Updates made in HTML view of the editor do not submit to the database when updating a database through HTML Data Bindings. Any updates done in the normal view of the editor work, however if I would then switch to the "HTML" view and make updates, then submit those updates to the database, no updates will submit.

For this issue, I believe it might be an issue with one of the script files. My files are in the following order:
<link rel="stylesheet" type="text/css" href="../../../Styles/dmxEditor.css" />
<script type="text/javascript" src="../../../ScriptLibrary/require.js"></script>
<script type="text/javascript" src="../../../ScriptLibrary/jquery-latest.pack.js"></script>
<script type="text/javascript" src="../../../ScriptLibrary/dmxDataBindings.js"></script>
<script type="text/javascript" src="../../../ScriptLibrary/dmxDataSet.js"></script>
<script type="text/javascript" src="../../../ScriptLibrary/dmxEditor.min.js"></script>
<script type="text/javascript" src="../../../ScriptLibrary/dmxDatabaseAction.js"></script>

2. By default, no text is being formatted as a paragraph when I start typing in the editor. Its only after I would hit "enter" on the keyboard, that it decides to render the text as a paragraph. When I do not use the editor in connection with the Data Bindings to update a database, when I first click i the editor the text is formatted as a paragraph by default.

After testing from a blank page, then one by one adding components, for issue #2, it seems like it no longer defaults to <p> tags once you bind the text box.

<textarea id="myText" name="myText" class="dmxEditor" style="width:600px;height:300px" data-binding-value="{{myText}}"></textarea>

Replies

Replied 16 Dec 2014 09:52:17
16 Dec 2014 09:52:17 Miroslav Zografski replied:
On the first issue:
When you change the code view and move back to WYSIWUG view add a white-space somewhere and delete it this way the Adv. HTML Editor 3 engine applies the changes in the code view to the underlying text-area unfortunately this is how it works at this point.

On the second:
Make sure you set AHE Add-on Path Browser. Also with following code check if the myText returns something and if not make it to set in an "<p></p>":

data-binding-value="{{(details && details != '') ? details :  '<p></p>' }}"


Solutions were provided on Live Support Chat session.

Regards.

Reply to this topic