Coder Social home page Coder Social logo

popline's People

Contributors

bitdeli-chef avatar eridleyj avatar foo9 avatar huwence avatar kenshin54 avatar larryzhao avatar onesandtwos avatar roryok avatar timgates42 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

popline's Issues

isBarOrChild is bugged

I don't understand (yet ;-) the "isBarOrChild" but it's the origin of a little bug.

When you select a line (a whole line) with the mouse from left to right, the menu appears.
But when you do from the right (the end of line) to the left (beginning of the line), the menu is not showing.

It's because the isTargetOrChild and isBarOrChild are false, so the bar is not showing up.

I don't know how to fix it yet (well, forcing isBarorChild to true, but I guess this is not the solution ;-)

Make popline editor buttons and view buttons totaly optional

The concept of having a bubble appear on text-select is pure genius, jQuery-wise.
But in my case I have a powerful WYSIWYG already, and don't need the one that popline provides.

In the popline.js I killed

//makeButtons.call(this, this.bar, $.popline.buttons);

And did this

  init: function() {
    this.bar = $("#tinymceWrapperBubbleNP").addClass("popline");

Now I have a beautiful Tinymce 4 real floating toolbar for contenteditables

Popline appears off-screen for highlights at the top of a document

This is reproducible on the demo page. Simply reduce the window to a size where scrolling is required (or alternatively add more content so that scrolling is required) and scroll part of the way down the page. Select the sentence at the top of the window. Popline appears out of screen bounds
2014-10-24 09_22_50-popline - an html5 rich-text-editor toolbar

Add link to text is broken

I tested all functions on the menu.

All functions work well except creating link on selected text. It is broken I think.

Can you investigate on this one?

Image upload please?

Hi, its a great plugin. Thanks for creating it.

Can you please add image upload also?

get image innerHTML

sorry, this is not an issue.
Just wondering how to get the the source code if the text contains an image.

I created a custom button in the social section like so:

    custom: {
      iconClass: "fa fa-comments",
      mode: "view",
      action: function(event) {
        $('#customformcontainer').removeClass('hide');
        $('#customtextarea').text($.popline.utils.selection().text()); 
      }
    }

Im returning the text inside a commentBox/contactForm ... Just experimenting with your awesome code :-)
But if the text contains an image it is ignored.

Im wondering how can I return the html value like so:
<img src="https://github.com/image.png">

oh, btw Great job on the code ! Looks really great !

It does not work on the ajax loaded text

Hi, its a great plugin!

  1. When the page is loaded, when you select text plugin works. When changing text on the page using ajax, plugin also works.
  2. When the page is loaded, and then the text changes using ajax - when you select text to change the text of the plugin does not work.

How can I fix this?

No Buttons?? - makeButtons doesn't seem to be working

I have installed popline (epub.amadreason.co.uk to see test code (scroll to bottom and highlight lorem ipsum)) and though the ul loads and pops up when text is highlighted there are no buttons (li elements) within the ul.

Any help with this would be greatly appreciated.

Can't change url color

Hi,
when I mark part of the text as a link, and try to change the color it doesn't effect it. It's true that it wraps link with font tag but it can't override link's style.

Example:
<font color="#ff0000"> <a href="http://google.com">Text</a> </font>
a { color: #2E8CFA; }

Inline CSS

Hey @kenshin54,

I will request if you can or have a way to add inline css from what ever user is doing in editor it will translate inside tag as a inline css.

This will be very useful in Email solutions, where you need inline css on each tag in order to theme it.

Enter key introduces new paragraph

When inside a paragraph, hitting the enter key introduces a new paragraph instead of introducing a new line. Please refer to the attachment.

feb-06-2017 12-02-51

IE6

how can i make it work with IE6?

thx

Android Editing

Hello, could I set a button on the page somewhere that will pop the editor up? Is there a jQuery command I could use to show the toolbar? I would like to be able to make this usable on Android but the toolbar does not show when Android takes over the selection.

Thanks, this is perfect, every other editor is so crazy bloated.

Asking to merge new features (from forking repo)

I have been using your plugins and it works very well. So, I decided to add new features to menu such as "Insert image", "Insert table" on my forking repo.

I would like to ask you, is it possible to merge my code to your main repo (kenshin54/popline). I think it might be useful for everyone to use these features.

cheers

Popline appears even on non-contenteditable element

Hello,

I have a floating window composed of an unordered list each containing a div that when double-clicked upon becomes editable. I then call on Popline by creating an instance clickedDiv.popline({position: "fixed"}). However when clicked outside the div, it ceases to be editable, but there is no documented mechanism to destroy the generated instance.
Then when clicked on another div (i.e. in another li element), Popline pops up, although the div does not have the "content editable" attribute.
I beileve this could be solved if there was a way to dynamically create Popline instance and destroy them as necessary.

Thank you!

Not working in textarea

Hi,

I was try to use this plugin with textarea but I have no success. I do not want to give text editor to website users while adding any details. I am saving details to database by picking up from the textarea. I would like to give limited text formating functionalities to website user. I found this plugin useful but it is not working with textarea.

Kind regards,
Harjit Singh

Can't set bold on "h" tags in Firefox

Hi, the tool is great, but I encountered one issue. When I mark text as h1-h6 and then bold it, it doesn't apply. For this case italic and underline work. I even tried this on your demo page and it's the same. Any suggestions how to solve this?

Feature request: process currently selected text

Hello,

This is a feature request rather than an issue, but I do not know where to log it. Sorry for possible inconvenience.
I have elements whose contenteditable attribute change and gets activated when they are double-clicked. When double-clicking a text is selected, and in the process a Popline instance gets created.
For Popline to process the currently selected text, I must re-select it.
What I would like is for Popline to fire up and process the currently selected text.
Thank you!

Placeholder feature

Hi, really like this editor with a concept like Medium. However, how could I add a placeholder in the editable element? This might be very useful ๐Ÿ‘

Thank you

any plan on image manipulation?

Thanks for creating this plugin ,it is tiny but functional well satisfied my general needs.

however,I noticed that in popline it seemed that image has less maneuverability than test.I can call out popline's tool bar easy by select a bit of text,but it wouldn't happen if I select a single image instead.It confuse me alot.

beside,I wonder if popline can support some basic image manipulation method Like resize.It is unnecessary to achieve somekind of complicated word-like drag auto-resize,I think two simple editable blocks about width and height will be well satisfied.
I know things always complicated than we thought,so here i'm only wondering if it's in the develop plan,thanks~~

and at the end,sorry about my odd english and thanks try to understand it....

Color disappearing

Hi,

the color of selected text disappears when I perform next steps:
-set H1
-set color
-change heading to let's say H2

Any suggestions how to solve this?

Thanks in advance

Link selection does not always work in Firefox

Scenario:

  1. Text is selected and then linked via the link button.
  2. Selecting the text thereafter does not always show the unlink button, instead it shows the link button. This is intermittent, at times it works and at other times it doesn't work even though only the text that is linked is selected. Selecting portions of the linked text and not the entire linked text seems to always show the unlink button.

In checking the code I see there is a different function that is called when Firefox is being used (ie. firefoxSelectionIsLink()).

I am using the latest version of Firefox at the time of writing - 82.0

I found a link on Stack Overflow (https://stackoverflow.com/questions/47232304/check-if-selection-contains-link) that deals with this and have replaced the existing function with the answer from "user670839". This seems to be working.

IE 9?

How can I make it work with IE 9?

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.