Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #29648 > unrolled thread

how to select images from a dialog and embed in the textarea

Started byMohammed Suleman khan <salmankhan0921@gmail.com>
First post2016-02-22 02:46 -0800
Last post2016-02-22 04:59 -0800
Articles 4 — 2 participants

Back to article view | Back to comp.lang.javascript


Contents

  how to select images from a dialog and embed in the textarea Mohammed Suleman khan <salmankhan0921@gmail.com> - 2016-02-22 02:46 -0800
    Re: how to select images from a dialog and embed in the textarea Stefan Weiss <krewecherl@gmail.com> - 2016-02-22 12:45 +0100
      Re: how to select images from a dialog and embed in the textarea Mohammed Suleman khan <salmankhan0921@gmail.com> - 2016-02-22 03:56 -0800
      Re: how to select images from a dialog and embed in the textarea Mohammed Suleman khan <salmankhan0921@gmail.com> - 2016-02-22 04:59 -0800

#29648 — how to select images from a dialog and embed in the textarea

FromMohammed Suleman khan <salmankhan0921@gmail.com>
Date2016-02-22 02:46 -0800
Subjecthow to select images from a dialog and embed in the textarea
Message-ID<d0d8412f-0886-4482-87a3-400482e0ec7b@googlegroups.com>
I am using markdown editor to add or edit the content I have added a button to the panel when I click the button it is prompted the bootbox dialog with the list of images in it, from this dialog I want to select the images and embed the link in the editor. can anyone tell me how to make the images selectable on the bootbox dialog and embed the links in the editor ?

here is my code bootbox dialog that shows list of images on it.


additionalButtons:[
       [{
        name: "groupCustom",
        data: [{
          name: "cmdMyImage",
          toggle: true,
          title: "Image",
          icon: "glyphicon glyphicon-upload",
          className: "modal2",
          callback: function(e){
              $.ajax({
                  url : '/admin/image/gallery', 
                  type : 'GET',
                  dataType : 'json',
                  contentType : "application/json",
                  data : JSON.stringify(),
                  success : function(data) {
                      var imgTag = '';
                      $.each(data, function(idx, value) {
                        imgTag+='<img src='+ value.replace('src/main/resources/static', '') +'></img> '
                      });
              bootbox.dialog({
                  title: "This is a form in a modal.",
                  size: "large",
                  message: imgTag,

                  buttons: {
                      success: {
                          label: "Insert",
                          className: "btn-success",
                          type: "submit",
                          callback: function () {
                              var uploadedImages = $('#images').val();
                              // $.each(uploadedImages, function(idx, value) {
                                $('#content').append(uploadedImages);
                              // });
                          }
                      }
                  }
              }
          );
          },
          error : function(data) {
           console.log("There are some errors")
          }
         });
          }
        }]
       }]
      ],

[toc] | [next] | [standalone]


#29650

FromStefan Weiss <krewecherl@gmail.com>
Date2016-02-22 12:45 +0100
Message-ID<naesdc$ode$1@news.albasani.net>
In reply to#29648
On 02/22/2016 11:46, Mohammed Suleman khan wrote:
> I am using markdown editor to add or edit the content I have added a
> button to the panel when I click the button it is prompted the bootbox
> dialog with the list of images in it, from this dialog I want to select
> the images and embed the link in the editor. can anyone tell me how to
> make the images selectable on the bootbox dialog and embed the links in
> the editor ?
[...]

That's copypasta from here: http://stackoverflow.com/questions/35489040
(0 votes, 0 comments, 0 answers)

You'll find that you're more likely to get answers if you actually
mention the name of the software you're having trouble with (hint: it's
not "markdown editor").

In general, this group is not a good place to ask for user support with
specific scripts. While you didn't tell us its name, my magic 8-ball
says signs point to yes that there is an issue tracker for your editor
on GitHub.

- stefan

[toc] | [prev] | [next] | [standalone]


#29651

FromMohammed Suleman khan <salmankhan0921@gmail.com>
Date2016-02-22 03:56 -0800
Message-ID<c8abf730-1b61-484f-ae97-ccede60b95e1@googlegroups.com>
In reply to#29650
On Monday, February 22, 2016 at 5:15:54 PM UTC+5:30, Stefan Weiss wrote:
> On 02/22/2016 11:46, Mohammed Suleman khan wrote:
> > I am using markdown editor to add or edit the content I have added a
> > button to the panel when I click the button it is prompted the bootbox
> > dialog with the list of images in it, from this dialog I want to select
> > the images and embed the link in the editor. can anyone tell me how to
> > make the images selectable on the bootbox dialog and embed the links in
> > the editor ?
> [...]
> 
> That's copypasta from here: http://stackoverflow.com/questions/35489040
> (0 votes, 0 comments, 0 answers)
> 
> You'll find that you're more likely to get answers if you actually
> mention the name of the software you're having trouble with (hint: it's
> not "markdown editor").
> 
> In general, this group is not a good place to ask for user support with
> specific scripts. While you didn't tell us its name, my magic 8-ball
> says signs point to yes that there is an issue tracker for your editor
> on GitHub.
> 
> - stefan

Stefan thanks for your response, I have added the button on Markdown editor panel when I click this button I get the dialog with a list of images on it what I want to do is from those list of images I want to select the images and embed their links in the editor.

[toc] | [prev] | [next] | [standalone]


#29653

FromMohammed Suleman khan <salmankhan0921@gmail.com>
Date2016-02-22 04:59 -0800
Message-ID<f660cb3e-143d-4e2a-b941-d2134ef82bde@googlegroups.com>
In reply to#29650
On Monday, February 22, 2016 at 5:15:54 PM UTC+5:30, Stefan Weiss wrote:
> On 02/22/2016 11:46, Mohammed Suleman khan wrote:
> > I am using markdown editor to add or edit the content I have added a
> > button to the panel when I click the button it is prompted the bootbox
> > dialog with the list of images in it, from this dialog I want to select
> > the images and embed the link in the editor. can anyone tell me how to
> > make the images selectable on the bootbox dialog and embed the links in
> > the editor ?
> [...]
> 
> That's copypasta from here: http://stackoverflow.com/questions/35489040
> (0 votes, 0 comments, 0 answers)
> 
> You'll find that you're more likely to get answers if you actually
> mention the name of the software you're having trouble with (hint: it's
> not "markdown editor").
> 
> In general, this group is not a good place to ask for user support with
> specific scripts. While you didn't tell us its name, my magic 8-ball
> says signs point to yes that there is an issue tracker for your editor
> on GitHub.
> 
> - stefan

I am using bootstrap markdown editor from codingdrama.com here is the link http://www.codingdrama.com/bootstrap-markdown/

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.javascript


csiph-web