• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
(WebKit) Encapsulate nodes around selected text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(WebKit) Encapsulate nodes around selected text


  • Subject: (WebKit) Encapsulate nodes around selected text
  • From: Wolfgang Schreurs <email@hidden>
  • Date: Mon, 26 Sep 2005 19:18:50 +0200

I'm busy creating a WYSIWYG web editor. I want it to be easy for the
end user to use this application, so I'm creating a web editor that
looks/works like a text editor (i.e.: Nisus Writer, Word, etc...).

I have some difficulties in creating a method that encapsulates tags
around selected text. A user must be able to make a selection and
press a 'Bold' or 'Italic' button to transform the style. I figured I
should get a selection and the insert a tag before and after the
selection. I've tried using the DOM from Cocoa and from JavaScript
(with the [webview evaluateWebScript] method), but both without
succes.

The DOM model is quite new to me, so any help is greatly appreciated.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: (WebKit) Encapsulate nodes around selected text
      • From: James Housley <email@hidden>
  • Prev by Date: Re: Replacing the view in NSTabView
  • Next by Date: updating a data file to a new version
  • Previous by thread: Re: CD: subclassing NSArrayController
  • Next by thread: Re: (WebKit) Encapsulate nodes around selected text
  • Index(es):
    • Date
    • Thread