Giter VIP home page Giter VIP logo

tui.editor's People

Contributors

ats1999 avatar azmeuk avatar calumk avatar capraynor avatar cksal0805 avatar d0dam avatar dependabot[bot] avatar grimalschi avatar htmlhead avatar isitar avatar jajugoguma avatar jethrolarson avatar js87zz avatar jwlee1108 avatar knightwolfjk avatar kshnurov avatar lucaslcode avatar mbwebtechmariusz avatar mmorainville avatar mmorel-35 avatar molvqingtai avatar paulschult avatar reedsun avatar seonim-ryu avatar subicura avatar thomas-netlor avatar z-950 avatar zhousg 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  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

tui.editor's Issues

Add the ability to move toolbar & hide mode switch

Would really like to be able to position the toolbar to the bottom while retaining the menu popup functionality, like: table, right click on table etc.

Additionally would like to be able to remove the toolbar containing the markdown/wysiwyg toggle button.

I've been able to do these things with css but it seems to break some of the hover effects and causes some side effects.

Add CONTRIBUTING.md file

Awesome project. I'm interested in making some PR but I'm curious the best branch to open pull requests to?

I'd like suggest for future contributions to this project, to create a CONTRIBUTING.md file with some guidelines on contributing, the Pull Request process, and code of conduct that the maintainers of this project would like.

Thanks!

characters in selecting range disapears

Version

1.0.2

Test Environment

Win8 IE11

Current Behavior

markdown editor has the same issue reported in codemirror/codemirror5#5087
Steps:

  1. write some korean words(may be multi type languages)
  2. backspace, delete some characters
  3. write korean characters again
  4. try select a range using mouse
  5. selected range deleted
  6. later on, the characters in range will be gone continually

ezgif com-add-text

Expected Behavior

Text shouldn't be removed.

i18n for your language wanted

Hello TOAST UI Editor users.

If you found your language is not supported yet.

You can help us and become a contributor. This is a good first issue.

A PR #33 made by @elamperti is a good example. Please check it out.

HTML lost in WYSIWYG mode

I've been looking for a solid WYSIWYG markdown editor for some time, and Toast looks very promising! I've just been testing with the demo and noticed an issue with HTML in markdown. As you know putting HTML code in markdown is perfectly valid, and often is the only way to achieve something beyond the capabilities of markdown (adding a class or id for example). in the Markdown mode, things look ok:

# markdown

<div class="html">HTML</div>

**more markdown**

and renders in the preview fine (even with class="html" intact):

nhn entertainment 2018-01-10 12-31-42

However, switching to WYSIWYG mode and back to Markdown causes a loss of the HTML:

nhn entertainment 2018-01-10 12-32-32

It would be great (and much safer for users) if this could be maintained between modes.

Step missing from installation instructions

Version

1.0.1

Test Environment

OSX Chrome 63.0.3239.132

Current Behavior

The README isn't very clear as to what CSS files are required to be loaded for the component to function correctly. Additional to the two more obvious editor CSS files within tui-editor, the codemirror/lib/codemirror.css file was required. This could be more explicit in the installation instructions.

Expected Behavior

Following the README installation instructions results in a fully functional component.

Suggestion: Plugin for Visual Studio Code

The WYSIWYG editor is really great. This helps a lot of people who are used to creating texts visually.

For exactly this reason, it would be great if there was a plugin for Visual Studio code for this editor. Since this is also completely written in type and JavaScript, this should not be a big act. But I think this would help a lot of people to create Markdown documents in the future.

HTML mode

Is there a way to have HTML mode?

Thx.

Is there any way to add an image or some other element to selected position?

Version

1.01

Test Environment

Chrome, Mac
React

Current Behavior

 editor.insertText('<img src='~~'/>')

Expected Behavior

Hi. Thanks for a wonderful editor! I'm trying to add an image to server and place it selected position. (not base 64 encoded image)
Since i'm using addImageBlobHook , execute above code after successfully uploading image.
I think it's not the right way.. Is there any possible way?

Pb with tui and vuejs

Hi,

I'm testing tui and it's seems pretty good. thx for releasing it :)
I have problem with loading underscorejs and tui.editor. Without underscorejs, tui.editor works fine, but with underscorejs loaded, the editor displays but does not react (unable to write, click on any button, ...).
I tried to replace underscorejs with lodash without success.

tui.editor 0.14.0 (and its dependencies loaded by bower)
jquery 2.2.4
underscorejs 1.8.3
Tested on gnu/linux debian with firefox 52 and chrome 60

Any hint ?

Use NPM for toMark dependency

Hi !

Test Environment

Windows 7

Current Behavior

I'm trying to npm install --save tui-editor.

I'm getting this error :

npm ERR! Error while executing:
npm ERR! C:\Program Files\Git\cmd\git.EXE ls-remote -h -t ssh://[email protected]/nhnent/toMark.git
npm ERR!
npm ERR! FATAL ERROR: Network error: Connection refused
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
npm ERR!
npm ERR! exited with error code: 128

It seems to be a proxy issue but git and npm are already configured for my proxy.

I tried to run git ls-remote independently :
git ls-remote -h -t ssh://[email protected]/nhnent/toMark.git : same error
git ls-remote -h -t https://github.com/nhnent/toMark.git : the command never ends

Could you npm publish toMark and change package.json to use it that way ? I think that would solve my issue.

Translation

Hello,

Is it possible that we can get the language strings in an stand alone file in the project. So we can translate easily the editor?

how to get text value? how to convert MD to plain text or html text?

๊ด€๋ฆฌ์ž์—์„œ ์—๋””ํ„ฐ๋ฅผ ํ†ตํ•˜์—ฌ ๊ฒŒ์‹œ๊ธ€์„ ์ž‘์„ฑํ•˜์—ฌ DB์— ๋“ฑ๋กํ•˜๊ณ 
ํ”„๋ก ํŠธ์—์„œ DB์— ๋“ฑ๋ก๋œ ๊ฒŒ์‹œ๊ธ€์„ ์กฐํšŒํ•˜์—ฌ ์ „์‹œํ•˜๋Š” ๊ตฌ์กฐ์˜ ํ”„๋กœ๊ทธ๋žจ ๊ฐœ๋ฐœ์ค‘์ž…๋‹ˆ๋‹ค.
ํ”„๋กœํŠธ ๋ชจ๋“ˆ ์ž‘์„ฑ ์‹œ ์งˆ๋ฌธ์‚ฌํ•ญ ์ƒ๊ฒจ์„œ ๋ฌธ์˜ ๋“œ๋ฆฝ๋‹ˆ๋‹ค.

  1. ๊ฒŒ์‹œ๊ธ€์„ ์ „์‹œํ•˜๋ ค๋ฉด ์–ด๋–ป๊ฒŒ ํ•ด์•ผํ•˜๋‚˜์š”?
  2. ๋งˆํฌ๋‹ค์šด ํ…์ŠคํŠธ๋ฅผ ์ผ๋ฐ˜ ํ…์ŠคํŠธ(plain text) ๋กœ ๋ณ€ํ™˜ํ•  ์ˆ˜ ์—†๋‚˜์š”?
  3. ๋งˆํฌ๋‹ค์šด ํ…์ŠคํŠธ๋ฅผ html ํ…์ŠคํŠธ(plain text) ๋กœ ๋ณ€ํ™˜ํ•  ์ˆ˜ ์—†๋‚˜์š”?

ํ™•์ธ ๋ถ€ํƒ๋“œ๋ฆฝ๋‹ˆ๋‹ค. ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค.

Live Preview Switching Bug: Adding auto code tags.

Version: v 1.0.2

Test Environment

Chrome: 63.0.3239.132, Windows 10

Current Behavior

Hi. I used tui.editor to try it on this link: https://nhnent.github.io/tui.editor/.

I added code tags like that:

 javascript
console.log(123); 

After I click WYSIWYG and then again I switched markdown tab tui.editor added extra ` tags and deleted programming language that I declared. For example:

console.log(123);  

Expected Behavior

It should stay without any data loss and when I navigate between tabs. I added this:

javascript
console.log(123); 

I expected this:


` ` ` javascript
console.log(123); 
` ` `

Publish to npm

Hi.
Do you have in plan to publish your package to npm? bower is a little outdated for now and It would be great if I can get it from npm as all other packages.

Canยดt make the editor work

Version

Version 1.1 from "Production" Branch

Test Environment

Client: Chrome 63.0.3239.13, Windows 10 64 Bits
Server: Ubuntu 16.04 LTS, NGINX, PHP-FPM, PHP 7.2, Laravel 5.5

Current Behavior

I canยดt load the editor, using the file "tui-editor-Editor-all.min.js": gives me this error:
Uncaught TypeError: Cannot read property 'WwCodeBlockManager' of undefined
With this file: "tui-editor-Editor.min.js" it gives me this error:
Uncaught TypeError: (0 , r.default) is not a function

Code example

<script src="{{ asset('/plugins/tui-editor/dist/tui-editor-Editor-all.min.js') }}" type="text/javascript"></script>    
    <link href="{{ asset('/plugins/tui-editor/dist/tui-editor.min.css') }}" rel="stylesheet" type="text/css" />
    <link href="{{ asset('/plugins/tui-editor/dist/tui-editor-contents.min.css') }}" rel="stylesheet" type="text/css" />

<div id="editSection"></div>

<script>
        $('#editSection').tuiEditor({
            initialEditType: 'markdown',
            previewStyle: 'vertical',
            height: '300px'
          });
        });
</script>

Expected Behavior

Show the Editor in the div selected.

about es6 import support browser refresh

Version

tui-editor: v1.0.1 webpack: v2.6.1

Test Environment

chrome windows*64

Current Behavior

// Write example code
const Editor = require('tui-editor');
require('tui-editor/dist/tui-editor.min.css');
require('tui-editor/dist/tui-editor-contents.min.css');
require('codemirror/lib/codemirror.css');
require('tui-editor/dist/tui-editor-extScrollSync.min.js');
require('tui-editor/dist/tui-editor-extColorSyntax.min.js');
require('tui-color-picker/dist/tui-color-picker.min.css');
require('tui-editor/dist/tui-editor-extTable.min.js');
require('tui-editor/dist/tui-editor-extUML.min.js');
require('plantuml-encoder/dist/plantuml-encoder.js');
require('raphael/raphael.js');
require('tui-chart/dist/tui-chart.min.js');
require('tui-editor/dist/tui-editor-extChart.min.js');
require('tui-chart/dist/tui-chart.min.css');
// or 
import Editor from 'tui-editor';
import('tui-editor/dist/tui-editor.min.css');
import('tui-editor/dist/tui-editor-contents.min.css');
import('codemirror/lib/codemirror.css');
import('tui-editor/dist/tui-editor-extScrollSync.min.js');
import('tui-editor/dist/tui-editor-extColorSyntax.min.js');
import('tui-color-picker/dist/tui-color-picker.min.css');
import('tui-editor/dist/tui-editor-extTable.min.js');
import('tui-editor/dist/tui-editor-extUML.min.js');
import('plantuml-encoder/dist/plantuml-encoder.js');
import('raphael/raphael.js');
import('tui-chart/dist/tui-chart.min.js');
import('tui-editor/dist/tui-editor-extChart.min.js');
import('tui-chart/dist/tui-chart.min.css');

//init
		const editor = new Editor({
				el: document.querySelector('#editSection'),
				initialEditType: 'markdown',
				initialValue: this.content || '',
				previewStyle: 'vertical',
				height: '300px',
				language: 'zh_CN',
				exts: ['scrollSync', 'colorSyntax', 'table', 'uml', 'chart'],
				useCommandShortcut: true
			});

Expected Behavior

this is first enter this page:
y 6pgwg jl7b5vbkge 42 j

when I use es6 import , I refresh๏ผˆF5๏ผ‰ page then these Extensions: Scrolling ๏ผŒColor picker๏ผŒTable(merge) useless
y9aiz g4r5hbmb3v 1tvood

But using CommonJS is valid. I didn't find out what caused it?

How do I enter media link?

Version

Test Environment

Current Behavior

How do I enter media link?

๋™์˜์ƒ ๋งํฌ๋ฅผ ์ž…๋ ฅํ• ๋ ค๋ฉด ์–ด๋–ป๊ฒŒ ํ•ด์•ผํ•˜๋‚˜์š”?



Expected Behavior

jquery

Version

1.0.1

Test Environment

All

Current Behavior

image

Expected Behavior

jquery update to version ^3.1.0

setting i-beam pointer on empty space in markdown will make better UX

Version

v1.0.1

Test Environment

Chrome 63, Firefox developer edition 58

Current Behavior

ํ…์ŠคํŠธ ๋ฐ•์Šค ์ƒ์—์„œ ํ…์ŠคํŠธ๋ฅผ ์ž‘์„ฑํ•œ ํ–‰ ์œ„์— ์ปค์„œ๋ฅผ ์˜ฌ๋ฆฌ๋ฉด ibeam ์ปค์„œ๊ฐ€ ๋‚˜ํƒ€๋‚˜์ง€๋งŒ, ํ…์ŠคํŠธ๋ฅผ ์ž‘์„ฑํ•˜์ง€ ์•Š์€ ๋นˆ ๊ณต๊ฐ„์— ์ปค์„œ๋ฅผ ์˜ฌ๋ฆฌ๋ฉด ๊ธฐ๋ณธ arrow ์ปค์„œ๊ฐ€ ๋‚˜ํƒ€๋‚ฉ๋‹ˆ๋‹ค.

Expected Behavior

๋Œ€๋ถ€๋ถ„์˜ ์—๋””ํ„ฐ๊ฐ€ ํŽธ์ง‘ ์„น์…˜์—๋Š” ๊ธฐ๋ณธ์ ์œผ๋กœ ibeam ์ปค์„œ๋ฅผ ๋‚˜ํƒ€๋‚˜๊ฒŒ ํ•˜๊ณ  ์žˆ๋Š” ๋งŒํผ, ์‚ฌ์šฉ์ž ๊ฒฝํ—˜ ์ธก๋ฉด์—์„œ ๋นˆ ๊ณต๊ฐ„์—๋„ ibeam ์ปค์„œ๋ฅผ ๋‚˜ํƒ€๋‚˜๊ฒŒ ํ•˜๋Š” ๊ฒŒ ๋” ๋‚ซ์ง€ ์•Š์„๊นŒ ์ƒ๊ฐํ•ฉ๋‹ˆ๋‹ค.

Question : Can we load a dictionnary (French one f.i.) ?

By looking the HTML of the editor, I see that you've already foresee a "spellcheck" attribute

<div contenteditable="true" class="tui-editor-contents" ....  spellcheck="false" ....>

Is it possible to specify the language for the spellcheck ? (french, dutch, english, ...)

Many thanks

exception occurs on both setValue and imageBlobCallback

์•ˆ๋…•ํ•˜์„ธ์š”. ๋„ค๋ฌด์†Œํ”„ํŠธ ๊น€์ง€ํ˜œ์ž…๋‹ˆ๋‹ค.

Toast Cloud Blog ๊ฐœ๋ฐœ ๊ด€๋ จํ•˜์—ฌ Dooray editor์„ ์‚ฌ์šฉํ•˜๊ณ  ์žˆ๋Š”๋ฐ์š”.
๋‹ค์Œ๊ณผ ๊ฐ™์€ ์ด์Šˆ๊ฐ€ ๋ฐœ์ƒํ•˜์—ฌ ๋ฌธ์˜ ๋“œ๋ฆฌ์˜ค๋‹ˆ ํ™•์ธ ๋ถ€ํƒ๋“œ๋ฆฝ๋‹ˆ๋‹ค.

  1. ๊ฐ’ ์…‹ํŒ…์‹œ null ์ฒ˜๋ฆฌ
    null ๊ฐ’ ์…‹ํŒ…์‹œ ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค.
    ๋‹จ, ์ž„์˜์ ์œผ๋กœ blank๋ฅผ ๋„ฃ์œผ๋ฉด ์ •์ƒ์ž‘๋™ํ•ฉ๋‹ˆ๋‹ค.
  2. image ๊ฒฝ๋กœ callback์‹œ ํŠน์ˆ˜๋ฌธ์ž ์ฒ˜๋ฆฌ
    image ์„œ๋ฒ„์™€ ์—ฐ๋™ ํ›„ ์ด๋ฏธ์ง€ ๊ฒฝ๋กœ๋ฅผ ์—๋””ํ„ฐ์— ์‹œํŒ…์‹œ ํŠน์ˆ˜๋ฌธ์ž๊ฐ€ ๋“ค์–ด๊ฐ€๋ฉด
    console์ฐฝ์— 404(Not Found) ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ•ฉ๋‹ˆ๋‹ค.
    ๋ฌผ๋ก  ์ด๋ฏธ์ง€๋„ ๋ณด์ด์ง€ ์•Š๊ตฌ์š”..

๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค.

Code blocks causing issues when toggling modes

Like the previous issue I posted, switching between Markdown and WYSIWYG modes also causes issues for codeblocks. Take the example code:

nhn entertainment 2018-01-10 12-35-33

Toggling to WYSIWYG and back to Markdown causes the code to be wrapped in backticks:

nhn entertainment 2018-01-10 12-36-07

Repeating this process results in more backticks:

nhn entertainment 2018-01-10 12-36-50

Everything is based on 'px', is unscalable and doesn't respect the current color scheme. Preprocessors?

Version

1.0.2

Test Environment

Firefox Developer Edition (latest), nw.js (webkit latest).

Current Behavior

It is extremely hard to blend the editor with a real environment (I mean web page design), as it has inconsistent use of inline PNGs and SVGs, hard-coded 'px' units and all the other unfancy stuff. Honestly, the code smells. Like, stinks. It's a pity that such great FOSS project has ugly insides ๐Ÿ˜ข

There are no CSS variables or preprocessor codes to compile, and no way to style the editor except by manual editing of CSS files. I have a dark app with large typography and existing button & input styles, and I had to wipe out literally a half of all the CSS code of ToastUI editor. The other half is tweaked till now and is converted to stylus.

Expected Behavior

There are several ways to solve this problem:

  • use preprocessor with variables so users can config editor to their size, color, style requirements;
  • create multiple themes, at least dark one (this will be much easier with preprocessors, though);
  • allow to config colors and scale via js (hard to do and seems to be irrational ๐Ÿ˜)

Besides that, I believe that no one should use px in 2018, but rem`em` instead of that. You could also add source icons in SVG to the repo.

Please forgive me if I sound rude, I have a really tough time with ToastUI editor :/

Suggestion: use Blob + Window.URL instead of base64

Very appreciate your work with such amazing editor.

I've noticed TUI editor supports IE10+, which means it can use blob and window.URL instead of base64 when uploading images. It will reduce those verbose and unreadable base64 data when users switch to Markdown mode. Also, the performance of parsing content would be better.

How do you think about it?

review readme

Because English is not my first language, I need someone who can do it smoother.
Make a PR and be a committer.

pasting excel table in ww makes wrong table

Version

1.0.2

Test Environment

All

Current Behavior

image
image
switch to markdown

|  |  |  |
| --- | --- | --- |
<colgroup><col width="87" span="3"></colgroup>|  |  |  |
| a | b | c |
| 1 | 2 | 3 |

image

Expected Behavior

remove colgroup.

It's a little uncomfortable to import dependencies

Version

v1.0.1

Test Environment

OS: Windows 10
Browsers: Google Chrome

Current Behavior

The developers who want to use tui editor have to install lots of dependencies. Using package manager, they can install the dependencies easily, of course.
However, I think it is a little uncomfortable to import the dependencies, like this.

import 'markdown-it';
import 'toMark';
import 'codemirror';
import 'squire-rte';
import 'codemirror/lib/codemirror.css';
import 'tui-editor/dist/tui-editor.min.css';
import 'tui-editor/dist/tui-editor-contents.min.css';
import Editor from 'tui-editor';

let editor = new Editor({
  el: document.querySelector('#editor'),
  initialEditType: 'markdown',
  previewStyle: 'vertical',
  height: '300px'
});

In addition, it is difficult to find the documents that explain about the dependencies.

Expected Behavior

I'd like to import all of dependencies at a time, but I don't know if that's possible. I'm sorry.
Also, I suggest updating getting-started.md. It confuses beginners, because the codes on the document are too simple. I think it should explain about importing the dependencies.

Question : how to save ?

Hi !

Not an issue but a question : I've not yet installed tui.editor and I'm really interested too try it but ... how can we save the content on the server ?

I'm actually using Simple MDE, we can attach on the toolbar a "save" button, retrieve the content of the

and send it to the server with Ajax f.i.

Can we does something like that with tui.editor ? Can you provide tips or documentation ?

Many thanks !!!

Christophe

docs: need docs for npm + bundler usage

Version

tui-editor v1.0.1

Test Environment

chrome win10*64

Current Behavior

// html
<div id="editSection">
    </div>
    <script src="./index.js"></script>

// js
var Editor = require('tui-editor');
require('tui-editor/dist/tui-editor-extScrollSync.js');
//require('tui-editor/dist/tui-editor.css');
//require('tui-editor/dist/tui-editor-contents.css');
//require('codemirror/lib/codemirror.css')
//require('highlight.js/styles/github.css');
var editor = new Editor({
    el: document.querySelector('#editSection'),
    initialEditType: 'markdown',
    previewStyle: 'vertical',
    height: '300px',
    exts: ['scrollSync'],
    useCommandShortcut: true,
});

Expected Behavior

docs example Basic
When I don't use this.

require('tui-editor/dist/tui-editor.css');
require('tui-editor/dist/tui-editor-contents.css');
require('codemirror/lib/codemirror.css')

I cant use online edit markdown editor and ui style is disordered

Request: Webdav support

Hi, Iโ€™d like to request Webdav support, which is supported by all operating systems (MacOS, Windows, FreeBSD, Linux) and usable through apps on mobile devices.

This would allow the editor to integrate with other pieces of software mentioned on issue #50, which is also referenced on Joplin issue #176.

No syntax highlighting in WYSIWYG mode

Version

1.0.2

Test Environment

Mozilla Firefox Dev Edition (latest), nw.js (latest webkit)

Current Behavior

Open https://nhnent.github.io/tui.editor/

Write some code, like

```css
 .tui-editor-defaultUI .te-tab button {
    box-sizing: border-box;
    line-height: 100%;
    position: relative;
    cursor: pointer;
    z-index: 1;
}
```

While in Markdown mode, the preview code is colored. While in WUSIWYG, it is not.

Expected Behavior

Code should be colored in both views.

Retina (@2x) icons

It would be great if Retina/High-resolution icons were built in natively.

Disabling bold / italics with toolbar spawns more `*` if inner text is selected, not outer

Version

1.0.2

Test Environment

Firefox Developer Edition (latest), nw.js (webkit latest).

Current Behavior

  1. Go to https://nhnent.github.io/tui.editor/ , find an editor with a code input.
  2. Write **bold**
  3. Double-click the bold. Note that only bold gets selected, not **bold**.
  4. Click a Bold button on a toolbar.
  5. Now you have ****bold****.

These __bolds__ are selected with underscores on double-clicking, and their formatting is removed correctly. But if exactly bolds are selected, it creates more symbols as well.

The same affects *italics*.

Expected Behavior

You should get bold on step 5. Code editor should check for surrounding asterisks.

about use async xhq render viewer ToastUIEditorViewer by vue tips

Version

tui-editor: v1.0.1 axios: v0.17.1 vue: v2.5.0 vuex: v3.0.1

Test Environment

chrome win7*64

Current Behavior

// Write example code
const 	tuiViewer = new Viewer({
				el: document.querySelector('#viewerSection'),
				height: '500px',
				initialValue: this.content || '',
				language: 'zh_CN',
				exts: ['table', 'uml', 'chart'],
				hooks: {
					previewBeforeHook(content) {
						console.log(arguments);
						// tuiViewer;
						debugger;
					}
				}
			});

Expected Behavior

I need to render the view and set initialValue after the axios request.
use hook previewBeforeHook debug when async req success then render the editor view and begin initialValue
When exist multiple xhq trigger the initialValue , can be cause some problem, then should use watch props๏ผˆinitialValue ๏ผ‰
then ToastUIEditorViewer.setValue(newValue)๏ผŒ Ensure that the obtained values are correct.;
These tips can help people who use data binding.

this my code by vue 2.x๏ผš

<template>
  <div>
    <div id="viewerSection"></div>
  </div>
</template>

<script>
var Viewer = require('tui-editor/dist/tui-editor-Viewer');
require('tui-editor/dist/tui-editor.min.css');
require('tui-editor/dist/tui-editor-contents.min.css');
require('codemirror/lib/codemirror.css');
require('tui-editor/dist/tui-editor-extScrollSync.min.js');
require('tui-editor/dist/tui-editor-extColorSyntax.min.js');
require('tui-color-picker/dist/tui-color-picker.min.css');
require('tui-editor/dist/tui-editor-extTable.min.js');
require('tui-editor/dist/tui-editor-extUML.min.js');
require('plantuml-encoder/dist/plantuml-encoder.js');
require('raphael/raphael.js');
require('tui-chart/dist/tui-chart.min.js');
require('tui-editor/dist/tui-editor-extChart.min.js');
require('tui-chart/dist/tui-chart.min.css');
var tuiViewer;
export default {
	name: 'TuiViewer',
	props: {
		content: String
	},
	methods: {
		setContent() {
			tuiViewer.setMarkdown(this.content);
		}
	},
	watch: {
		content: function(newValue) {
			debugger;
			tuiViewer.setValue(newValue);
		}
	},
	mounted() {
		this.$nextTick(function() {
			tuiViewer = new Viewer({
				el: document.querySelector('#viewerSection'),
				height: '500px',
				initialValue: this.content || '',
				language: 'zh_CN',
				exts: ['table', 'uml', 'chart'],
				hooks: {
					previewBeforeHook(content) {
						console.log(arguments);
						// debugger;
					}
				}
			});
			// debugger;
		});
	}
};
</script>

<style scoped>

</style>

Markdown code formatting is different from output formatting

Version

1.0.2

Test Environment

Firefox Developer Edition (latest), nw.js (webkit latest).

Current Behavior

Go to https://nhnent.github.io/tui.editor/
Write

****text****
**text**

First 'text' is not bold in a code view but is rendered as bold. The second 'text' is ok. So the markdown syntax highlighting in code view is buggy.

The same affects four underscores (____text____).

Expected Behavior

Text formatting should be correct for both views (****text**** should be shown as a bold text).

Make git branching model simple

many ppl confused on default branch was production branch,
which is just for compiling distribution files before it is published.

This was because many people still want to download distribution files by green download button on main page on repo.

we will change default branch to master.

and develop branch has been removed because we now can't rebase develop branch as forked repo increases.

WYSIWYG: Add 3+ horizontal lines, try to erase them, get +2 line breaks and same lines

Version

1.0.2

Test Environment

Mozilla Firefox Developer Edition (latest), nw.js (webkit latest).

Current Behavior

  1. Open https://nhnent.github.io/tui.editor/
  2. Find a WYSIWYG example
  3. Insert 3 or more horizontal rows in, erm, in a row
  4. Start erasing them with Backspace key. Notice as new paragraphs appear between the lines when you try to erase the second one.

It happens on any horizontal line number greater than two. Extra paragraphs appear exactly after trying to remove the second line at the bottom.

Expected Behavior

No additional paragraphs or line breaks should appear.

should show image not base64 code

tui.editor๋ฅผ ์ด์šฉํ•˜์—ฌ QnA ๊ฒŒ์‹œํŒ์„ ๋งŒ๋“ค์—ˆ์Šต๋‹ˆ๋‹ค.

์™ผ์ชฝ์— ์งˆ์˜์‚ฌํ•ญ์„ ๋ณด์ด๊ณ  ์˜ค๋ฅธ์ชฝ์— ๋‹ต๋ณ€์‚ฌํ•ญ์„ ํŽธ์ง‘ํ•˜๋Š”๋ฐ,

๋‹ต๋ณ€์‚ฌํ•ญ์—์„œ ์ด๋ฏธ์ง€ ๋ถ™์—ฌ๋„ฃ๊ธฐํ•œ ํ›„์— ์ €์žฅํ•˜๊ณ ,

๋‹ค์‹œ ์—ด๋ฉด ์ด๋ฏธ์ง€๊ฐ€ byte ๋ฌธ์ž์—ด๋กœ ๋ณด์ž…๋‹ˆ๋‹ค.

ํ™•์ธ ๋ถ€ํƒ๋“œ๋ฆฝ๋‹ˆ๋‹ค.

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.