簡體   English   中英

如何避免Rappid中的TextEditor行顛簸

[英]How to avoid TextEditor line jerk in Rappid

我正在研究JointJS / Rappid。 在Rappid QAD示例中,我嘗試雙擊內容來編輯包裝的文本。

  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)

;

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM