Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Insert text into specific editable region

Guest
Jun 07, 2007 Jun 07, 2007
I can use dom.getEditableRegionList() and dom.getSelectedEditableRegion() to write text into the selected editable region, but I would like to insert text at the start of an editable region called 'mainContent'.
How can I do this?
TOPICS
Extensions
337
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Jun 07, 2007 Jun 07, 2007
Search for that node by finding its id in the getEditableRegionList()
array, and prepend your text to its innerHTML.

emichael brandt

LeedsJohn wrote:
> I can use dom.getEditableRegionList() and dom.getSelectedEditableRegion() to
> write text into the selected editable region, but I would like to insert text
> at the start of an editable region called 'mainContent'.
> How can I do this?
>
>
Translate
LEGEND ,
Jun 07, 2007 Jun 07, 2007
LATEST
Search for that node by finding its id in the getEditableRegionList()
array, and prepend your text to its innerHTML.

emichael brandt

LeedsJohn wrote:
> I can use dom.getEditableRegionList() and dom.getSelectedEditableRegion() to
> write text into the selected editable region, but I would like to insert text
> at the start of an editable region called 'mainContent'.
> How can I do this?
>
>
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines