In the previous post, the page describes the first sharing of power between the Malays and the Bugis in 1722 when the Minangkabau pretender to the Johore throne was defeated and chased back to Sumatra where he continued to fight the Bugis.
Then finally in 1855, Johore was ceded to the Bugis Temenggong Ibrahim, from whom the the current Sultan is descended from.
http://www.4dw.net/royalark/Malaysia/johor9.htm