inserthorizontalrule function in htmlarea.php

inserthorizontalrule function in htmlarea.php

ដោយ Wim Eling នៅ
ចំនួនតប៖ 3

Hello,

does anyone know were the function of inserthorizontalrule is ?, i  cant find it. The function is not present at HTMLArea.prototype.execCommand.

មធ្យមភាគនៃរង្វាយតម្លៃ: -
ឆ្លើយតបទៅកាន់ Wim Eling

Re: inserthorizontalrule function in htmlarea.php

ដោយ Janne Mikkonen នៅ
Hi Wim,

It's nowhere, since it's one of those functions that browser it self provides aka it's implemented in browsers "editable mode".

Do google on word "execCommand +javascript"

- Janne -
មធ្យមភាគនៃរង្វាយតម្លៃ: -
ឆ្លើយតបទៅកាន់ Janne Mikkonen

Re: inserthorizontalrule function in htmlarea.php

ដោយ Wim Eling នៅ

Can you use de execCommand like this ? View.document.execCommand('inserthorizontalrule', false, null);

មធ្យមភាគនៃរង្វាយតម្លៃ: -
ឆ្លើយតបទៅកាន់ Wim Eling

Re: inserthorizontalrule function in htmlarea.php

ដោយ Janne Mikkonen នៅ
Basically yes, in practice no. Document desingMode must be on first.
មធ្យមភាគនៃរង្វាយតម្លៃ: -