{"id":13473077,"url":"https://github.com/kenshin54/popline","last_synced_at":"2025-04-07T18:15:19.070Z","repository":{"id":63447253,"uuid":"10449816","full_name":"kenshin54/popline","owner":"kenshin54","description":"Popline is an HTML5 Rich-Text-Editor Toolbar","archived":false,"fork":false,"pushed_at":"2023-10-20T10:42:04.000Z","size":386,"stargazers_count":1058,"open_issues_count":13,"forks_count":145,"subscribers_count":43,"default_branch":"master","last_synced_at":"2025-03-31T15:20:29.666Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"kenshin54.github.io/popline","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kenshin54.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2013-06-03T07:58:15.000Z","updated_at":"2025-03-06T15:32:29.000Z","dependencies_parsed_at":"2023-02-16T17:45:29.216Z","dependency_job_id":"219139bf-3ff6-48f4-bfb5-dbd6ab71a162","html_url":"https://github.com/kenshin54/popline","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenshin54%2Fpopline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenshin54%2Fpopline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenshin54%2Fpopline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenshin54%2Fpopline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kenshin54","download_url":"https://codeload.github.com/kenshin54/popline/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247704571,"owners_count":20982298,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T16:01:00.549Z","updated_at":"2025-04-07T18:15:19.036Z","avatar_url":"https://github.com/kenshin54.png","language":"JavaScript","funding_links":[],"categories":["Rich text editor","基于 JQuery","Editors","Editors [🔝](#readme)","JQuery Based","JavaScript","编辑器"],"sub_categories":["Runner","运行器","运行器e2e测试"],"readme":"popline\n============\n\nPopline is a non-intrusive WYSIWYG editor that shows up only after selecting a piece of text on the page, inspired by popclip.\n\n## Usage\n\nLoad jQuery and popline:\n\n```html\n\u003cscript type=\"text/javascript\" src=\"../scripts/jquery.min.js\"\u003e\u003c/script\u003e\n\u003cscript type=\"text/javascript\" src=\"../scripts/jquery.popline.min.js\"\u003e\u003c/script\u003e\n```\n\nOr Load the popline plugins which you want:\n\n```html\n\u003cscript type=\"text/javascript\" src=\"../scripts/jquery.popline.js\"\u003e\u003c/script\u003e\n\u003cscript type=\"text/javascript\" src=\"../scripts/plugins/jquery.popline.link.js\"\u003e\u003c/script\u003e\n\u003cscript type=\"text/javascript\" src=\"../scripts/plugins/jquery.popline.decoration.js\"\u003e\u003c/script\u003e\n...\n```\n\nLoad font-awesome and popline theme:\n```html\n\u003clink rel=\"stylesheet\" type=\"text/css\" href=\"../font-awesome/css/font-awesome.min.css\" /\u003e\n\u003clink rel=\"stylesheet\" type=\"text/css\" href=\"../themes/default.css\" /\u003e\n```\n\nAdd a editable div to page:\n\n```html\n\u003cdiv class='editor' contenteditable='true'\u003e\u003c/div\u003e\n```\n\nInitialize you popline for you editor:\n\n```js\n$(\".editor\").popline();\n```\n\n## View Mode\n\nPopline also support `View Mode`, you can send a twitter, a facebook message, pin an image to pinterest, search with google in `View Mode` \n\n\n```js\n$(\".editor\").popline({mode: 'view'});\n```\n\n## Popup Position\n\nPopline can popup at top of the paragraph which you selected (like Medium) or popup on the mouse pointer position.\n\n```js\n$(\".editor\").popline({position: 'fixed'});\n$(\".editor\").popline({position: 'relative'});\n```\n\nThe default option is 'fixed'.\n\n## Enable / Disable / Reorder plugins\n\nYou can enable/disable/reorder plugins when popline initialize.\n\n\n```js\n$(\".editor\").popline({enable: [\"link\", [\"justify\", [\"justifyCenter\", \"indent\"]] , \"orderedList\", \"unOrderedList\"]});\n$(\".editor\").popline({disable: [\"link\", \"blockquote\"]});\n```\n\n## Extension\n\nTodo\n\n## Theme customize\n\n#### default\n\n![default](https://raw.github.com/kenshin54/popline/master/img/default.png \"default\")\n\n#### popclip\n\n![popclip](https://raw.github.com/kenshin54/popline/master/img/popclip.png \"popclip\")\n\n\nHack the theme css and create yours.\n\n## Example\n\n\u003chttp://kenshin54.github.io/popline/\u003e\n\n## Compatibility\n\nTested on Chrome 27.0+, Safari 6.0.4+, Firefox 21.0+, Opera 15.0+, IE 8+\n\n## Sponsorer\n\nA Sepcial thanks to [Artlogic](http://www.artlogic.net/)'s sponsor for IE8+ browsers compatibility support.\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n\nLicense\n-------\n\nCopyright (c) 2014 kenshin54. Distributed under the MIT License. See LICENSE.txt for further details.\n\n\n[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/kenshin54/popline/trend.png)](https://bitdeli.com/free \"Bitdeli Badge\")\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkenshin54%2Fpopline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkenshin54%2Fpopline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkenshin54%2Fpopline/lists"}