Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8559529
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T16:04:16+00:00 2026-06-11T16:04:16+00:00

I have problem with dijit.Editor. After removing it’s DOM from document and re-appending it,

  • 0

I have problem with dijit.Editor. After removing it’s DOM from document and re-appending it, it’s value is cleared.

The test for this is in this fiddle:
According to commented alerts in example, the value is being cleared after appending. It is still in memory after removing editor.

I tried to add “reloading” code to onLoadDeferred. But it is not called when reappending editor.

I cannot easily call reload on it by myself, because I am re-appending whole form in my app. I don’t know anything about form’s contents.

Also, I am quite sure that this is dijit.Editor’s issue. I tested reappending javascript generated Iframe (example here) and it is working.

Thanks for any help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T16:04:17+00:00Added an answer on June 11, 2026 at 4:04 pm

    I modified your iframe javascript test so it writes to iframe document only once and it seems to behave the same way the Dijit Editor does.

    I think you will have to set value of the Editor every time you placeAt it, but you do not have to do it manually, you can use one of these:

    1. dojo/aspect:

      aspect.after(editor, "placeAt", lang.hitch(editor, function() {
          this.set("value", this.get("value"));
      }));
      
    2. dojo/declare:

      var Editor = declare([DijitEditor], {
          placeAt: function() {
              this.inherited(arguments);
              this.set("value", this.get("value"));
          }
      });
      

    See it in action at jsFiddle: http://jsfiddle.net/phusick/PXZk5/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a problem with dijit editor of dojo: I used execCommand to insert
I have a problem... I tried to remove the selected items from dijit.form.MultiSelect when
I have problem with my query on C, I’m using the oci8 driver. This
I have problem with repopulating form_upload after validation. Other input fields or selectboxes are
I have problem with UIWebView delay when the load image from url. In my
Hello i have the this problem, i need your help to figure out what
I have a form containing many dijit.form elements and also a dijit.Editor. The form
I have this problem I'm using DataGrid + dojo.store.JsonRest as store. I want to
I have a problem with writting this program I need to read a csv
I have the following code: dijit.byId('patient').onchange(function(event){ var term=dijit.byId('patient').get('value'); patientList.url = .calendar/search-patient?term=+term; patientList.close(); }) What

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.