steveathon / bootstrap-wysiwyg

Tiny bootstrap-compatible WYSIWYG rich text editor
MIT License
661 stars 1.71k forks source link

Autocomplete for links #37

Open bobcaprice opened 9 years ago

bobcaprice commented 9 years ago

Hi there,

Is there any way of providing a list of options for autocomplete of hyperlink addresses? I'm working on a site where links will point at other data types within the application, so it would be useful to provide a list of possibilities as the user types the address for links.

I'm also wondering which to choose between steveathon/bootstrap-wysiwyg and mindmup/bootstrap-wysiwyg - is either one more suitable for the above?

Thanks,

George

codewithtyler commented 9 years ago

Hi, could you elaborate a bit more on what you're trying to do? I'm not sure I understand what you're trying to do.

This repo is the most up to date. The Mindmup repo is just a fork of this repo and a bit out of date I might add.

bobcaprice commented 9 years ago

Hi,

Thanks for getting back to me. I want to use this component to in a web app used by internal users of a company who provide content. When they create a link, it will always point to a piece of internal data, rather than any web page etc, so the href attribute will only contain a database ID.

So what I was wondering was whether I could somehow provide an autocomplete facility for when the user is starting to type the address for the hyperlink when using this component (in other words, make it display a list of all database IDs that start with what the user has typed).

I had also been wondering about images - is there any way of presenting a user with a choice of images that are on the server that the web app is running on when they want to embed an image (rather than the user uploading the image)?

Thanks for your help!

George

Date: Wed, 27 May 2015 06:59:20 -0700 From: notifications@github.com To: bootstrap-wysiwyg@noreply.github.com CC: bobcaprice@hotmail.com Subject: Re: [bootstrap-wysiwyg] Autocomplete for links (#37)

Hi, could you elaborate a bit more on what you're trying to do. I'm not sure I understand what you're trying to do.

This repo is the most up to date. The Mindmup repo is just a fork of this repo and a bit out of date I might ad.ld.

— Reply to this email directly or view it on GitHub.

codewithtyler commented 9 years ago

To my knkwledge (@steveathon could verify this better than I can) I don't believe there is any feature currently that could help you do that. However, you might can combine the editor with something like Knockout or Durandal in combination with something like Breeze.js in order to accomplish your goals.

bobcaprice commented 9 years ago

Ok great, thanks very much.

Do you know if there is any way of disabling the component?

Date: Wed, 27 May 2015 10:47:57 -0700 From: notifications@github.com To: bootstrap-wysiwyg@noreply.github.com CC: bobcaprice@hotmail.com Subject: Re: [bootstrap-wysiwyg] Autocomplete for links (#37)

To my knkwledge (@steveathon could verify this better than I can) I don't believe there is any feature currently that could help you do that. However, you might can combine the editor with something like Knockout or Durandal in combination with something like Breeze.js in order to accomplish your goals.

— Reply to this email directly or view it on GitHub.

codewithtyler commented 9 years ago

Disabling the editor itself? Not that I know of but if you want to make a request for that I'm sure someone would be happy to add that feature.

bobcaprice commented 9 years ago

Ok cool will do, thanks.

--- Original Message ---

From: "Tyler Hughes" notifications@github.com Sent: 28 May 2015 12:09 To: "steveathon/bootstrap-wysiwyg" bootstrap-wysiwyg@noreply.github.com Cc: "bobcaprice" bobcaprice@hotmail.com Subject: Re: [bootstrap-wysiwyg] Autocomplete for links (#37)

Disabling the editor itself? Not that I know of but if you want to make a request for that I'm sure someone would be happy to add that feature.


Reply to this email directly or view it on GitHub: https://github.com/steveathon/bootstrap-wysiwyg/issues/37#issuecomment-106260350

codewithtyler commented 8 years ago

@bobcaprice were you able to figure it out?

bobcaprice commented 8 years ago

I didn't, no, just found a workaround in my application code.

--- Original Message ---

From: "Tyler Hughes" notifications@github.com Sent: 28 August 2015 01:29 To: "steveathon/bootstrap-wysiwyg" bootstrap-wysiwyg@noreply.github.com Cc: "bobcaprice" bobcaprice@hotmail.com Subject: Re: [bootstrap-wysiwyg] Autocomplete for links (#37)

@bobcaprice were you able to figure it out?


Reply to this email directly or view it on GitHub: https://github.com/steveathon/bootstrap-wysiwyg/issues/37#issuecomment-135583675

codewithtyler commented 8 years ago

@steveathon since the OP has found a workaround I believe this can be closed unless you have plans to add some type of feature like this in the future.