Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8352467
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T08:58:11+00:00 2026-06-09T08:58:11+00:00

I am trying to integrate your editor to phpbb. I want to move cursor

  • 0

I am trying to integrate your editor to phpbb. I want to move cursor between empty bbcode just after insertion. for example click on a [bbbcode] button to insert [bbbcode][/bbbcode] to editor.

when I use bookmarking:

ed.selection.setContent('[bbbcode]');
p = ed.selection.getBookmark();
ed.selection.setContent('[/bbbcode]');
ed.selection.moveToBookmark(p);

this will remove last part ( [/bbbcode] ) from the final source when I POST it.
editor shows last part but when post content to server last part ( [/bbbcode] ) is missed because of bookmark moving.

is there any way to move cursor with bookmarking?

I would like to insert [bbbcode][/bbbcode] and move cursor here:
[bbbcode]here[/bbbcode]

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T08:58:12+00:00Added an answer on June 9, 2026 at 8:58 am

    You should insert something like [bbbcode]<span id="marker">.</span>[/bbbcode].
    After insertion you select and remove the span-element:

    var $marker = $(ed.getBody()).find('#marker');
    tinymce.activeEditor.selection.select($marker.get(0) );
    $marker.remove();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to integrate custom table for authentication and role into PAS.plugin.sqlalchemy. After customisation
I'm trying to integrate a Tumblr blog into a website. Specifically I want to
I am just trying to integrate mandrill mail sending with my app below is
Im trying to integrate Brad Larson's GPUImage framework to my project. The sample code
I'm trying to integrate Video4Linux in my managed application. Indeed I've declared all required
I'm trying to integrate passport into my nodejs server using connect, but can't seem
Hi I'm trying to integrate MySpace with my Android app. As I'm new to
I am currently trying to integrate Paypal's MECL in an already existing IOS project
I am trying to integrate the new Open Graph objects , actions and aggregations
I am trying to integrate a simple login for my site with php. i

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.