如何避免Rappid中的TextEditor行颠簸

时间:2018-11-15 03:28:48

标签: javascript jointjs rappid

我正在研究JointJS / Rappid。在Rappid QAD 示例中,我尝试双击内容来编辑换行文本。

  1. 问题1:
  

如果大句文本在确切的容器中损坏,请尝试进行编辑   句子的一半内容只有平衡文本消失。

  1. 问题2:
  

如果编辑内容,则光标不能正确移至下一个   放置或尝试单击双倍空格光标移至文本顶部

Example text for question :Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged

this.on('change:question', function () {
var wraptext = joint.util.breakText(this.get('question'), {
    width: 200,
    height: 70
});
 this.attr('.question-text/text', wraptext || '');                
}, this)

;

0 个答案:

没有答案