Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

need chart extension options #192

Closed
kyuwoo-choi opened this issue Jun 5, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@kyuwoo-choi
Copy link
Member

commented Jun 5, 2018

Version

all

Test Environment

all

Current Behavior

Currently, default chart height is determined according to the width.
It results in a pretty tall chart.
Having an option to set min/max width/height will help.

Expected Behavior

var editor = new tui.Editor({
        el: document.querySelector('#editSection'),
        previewStyle: 'vertical',
        height: '400px',
        initialEditType: 'markdown',
        useCommandShortcut: true,
        initialValue: content,
        exts: [
          {
            name: 'chart',
            minWidth: 100,
            maxWidth: 600,
            minHeight: 100,
            maxHeight: 300
          },
          'scrollSync',
          'colorSyntax',
          'uml',
          'mark',
          'table'
        ]
      });

@kyuwoo-choi kyuwoo-choi self-assigned this Jun 5, 2018

kyuwoo-choi added a commit that referenced this issue Jun 5, 2018

kyuwoo-choi added a commit that referenced this issue Jun 5, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.