0
私はテキストボックスを持っており、テキストが書かれています。今、誰かがテキストボックス内をクリックすると、htmlエディタ(http://docs.sencha.com/ext-js/3-4/#!/api/Ext.form.HtmlEditor)を開き、テキストボックス内に書かれたテキストをhtmlエディタに入れて、簡単に編集して保存できるようにします。同様に、htmlエディタを開くと、htmlエディタでカラーボックス内の値とfont-sizeとfont-valueを更新したいと思います。私はテキストボックスからこれらの値を取得できると仮定します。私はそれを検索しようとしましたが、これを行う方法を見つけることができませんでした。extJs htmleditorのプロパティを設定してください
Ext.QuickTips.init(); // enable tooltips
new Ext.Panel({
renderTo: 'text-editor',
id: 'html-editor',
width: 440,
height: 100,
frame: true,
layout: 'fit',
items: [
{
xtype: 'htmleditor',
enableColors: true,
enableAlignments: true
}
]
});
$('#selected-text-box').click(function() {
showEditor(this.id);
//TODO: Write code here to set the properties of editor with the properties set in textbox
});
今、私は尋ねたいです。どのようにhtmlエディタのフィールドにアクセスし、その値を設定します。
グーグルは良いです。あなたはコードが動くまで何を試しましたか? – sha
コードを更新しました。私が直面している主な問題は、テキストボックスのフォントサイズに応じてhtmleditorのフォントサイズを設定することです。 – sachinjain024