nhn / tui.editor

🍞📝 Markdown WYSIWYG Editor. GFM Standard + Chart & UML Extensible.
http://ui.toast.com/tui-editor
MIT License
17.12k stars 1.74k forks source link

placeholder is not working in browser environment #2669

Open Mangcho opened 2 years ago

Mangcho commented 2 years ago

Describe the bug

안녕하세요. 부족한 영어실력으로 인해 한국어로 적게 되었습니다. 웹사이트에 에디터를 적용중에 있는데 다른 옵션은 다 적용되지만 placeholder만 로딩모양과 함께 정상 적용이 되질 않습니다. 하단에 작성한 코드와 gif 첨부하였습니다. 좋은 에디터 감사합니다!

To Reproduce

Steps to reproduce the behavior:

  1. Add the placeholder
  2. move the cursur over the placeholder view

Screenshots

ezgif com-gif-maker

Desktop (please complete the following information):

Additional context

// Import
  <link rel="stylesheet" href="https://uicdn.toast.com/editor/latest/toastui-editor.min.css" />
  <script src="https://uicdn.toast.com/editor/latest/toastui-editor-all.min.js"></script>
  <script src="https://uicdn.toast.com/editor/latest/i18n/ko-kr.js"></script>
// Toast UI Editor
const editor = new toastui.Editor({
      el: document.querySelector('.content'),
      initialEditType: 'wysiwyg',
      language: 'ko',
      previewStyle: 'vertical',
      toolbarItems: [
        ['heading', 'bold', 'italic', 'strike'],
        ['hr', 'quote'],
        ['ul', 'ol', 'task', 'indent', 'outdent'],
        ['link']
      ],
      placeholder: 'hello',
      usageStatistics: false
});
FN-FAL113 commented 2 years ago

can confirm this, it's not loading the placeholder text using the latest cdn script

Mangcho commented 2 years ago

@FN-FAL113 Will try Thanks

FN-FAL113 commented 2 years ago

@FN-FAL113 Will try Thanks

I mean I'm having the same problem why did u close xD

Mangcho commented 2 years ago

@FN-FAL113 :) i was malfunctioning..